telos-framework 0.1.4 โ†’ 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/.claude/agents/behavioral-transformation-agent.md +144 -0
  2. package/.claude/agents/command-system-agent.md +335 -0
  3. package/.claude/agents/completion-gate.md +71 -0
  4. package/.claude/agents/component-implementation-agent.md +174 -0
  5. package/.claude/agents/devops-agent.md +128 -0
  6. package/.claude/agents/dynamic-agent-creator.md +103 -0
  7. package/.claude/agents/enhanced-project-manager-agent.md +145 -0
  8. package/.claude/agents/enhanced-quality-gate.md +54 -0
  9. package/.claude/agents/feature-implementation-agent.md +148 -0
  10. package/.claude/agents/functional-testing-agent.md +51 -0
  11. package/.claude/agents/hook-integration-agent.md +204 -0
  12. package/.claude/agents/infrastructure-implementation-agent.md +175 -0
  13. package/.claude/agents/lib/research-analyzer.js +470 -0
  14. package/.claude/agents/metrics-collection-agent.md +374 -0
  15. package/.claude/agents/npx-package-agent.md +246 -0
  16. package/.claude/agents/polish-implementation-agent.md +151 -0
  17. package/.claude/agents/prd-agent.md +76 -0
  18. package/.claude/agents/prd-mvp.md +101 -0
  19. package/.claude/agents/prd-research-agent.md +482 -0
  20. package/.claude/agents/quality-agent.md +128 -0
  21. package/.claude/agents/readiness-gate.md +104 -0
  22. package/.claude/agents/research-agent.md +173 -0
  23. package/.claude/agents/routing-agent.md +108 -0
  24. package/.claude/agents/task-checker.md +163 -0
  25. package/.claude/agents/task-executor.md +107 -0
  26. package/.claude/agents/task-orchestrator.md +343 -0
  27. package/.claude/agents/tdd-validation-agent.md +187 -0
  28. package/.claude/agents/testing-implementation-agent.md +151 -0
  29. package/.claude/agents/van-maintenance-agent.md +64 -0
  30. package/.claude/agents/workflow-agent.md +87 -0
  31. package/.claude/commands/autocompact.md +41 -0
  32. package/.claude/commands/continue-handoff.md +98 -0
  33. package/.claude/commands/mock.md +45 -0
  34. package/.claude/commands/reset-handoff.md +59 -0
  35. package/.claude/commands/telos/init.md +326 -0
  36. package/.claude/commands/telos/quick.md +90 -0
  37. package/.claude/commands/telos/reset.md +100 -0
  38. package/.claude/commands/telos/status.md +170 -0
  39. package/.claude/commands/telos/validate.md +143 -0
  40. package/.claude/commands/tm/add-dependency/add-dependency.md +55 -0
  41. package/.claude/commands/tm/add-subtask/add-subtask.md +76 -0
  42. package/.claude/commands/tm/add-subtask/convert-task-to-subtask.md +71 -0
  43. package/.claude/commands/tm/add-task/add-task.md +78 -0
  44. package/.claude/commands/tm/analyze-complexity/analyze-complexity.md +121 -0
  45. package/.claude/commands/tm/clear-subtasks/clear-all-subtasks.md +93 -0
  46. package/.claude/commands/tm/clear-subtasks/clear-subtasks.md +86 -0
  47. package/.claude/commands/tm/complexity-report/complexity-report.md +117 -0
  48. package/.claude/commands/tm/expand/expand-all-tasks.md +51 -0
  49. package/.claude/commands/tm/expand/expand-task.md +49 -0
  50. package/.claude/commands/tm/fix-dependencies/fix-dependencies.md +81 -0
  51. package/.claude/commands/tm/generate/generate-tasks.md +121 -0
  52. package/.claude/commands/tm/help.md +81 -0
  53. package/.claude/commands/tm/init/init-project-quick.md +46 -0
  54. package/.claude/commands/tm/init/init-project.md +50 -0
  55. package/.claude/commands/tm/learn.md +103 -0
  56. package/.claude/commands/tm/list/list-tasks-by-status.md +39 -0
  57. package/.claude/commands/tm/list/list-tasks-with-subtasks.md +29 -0
  58. package/.claude/commands/tm/list/list-tasks.md +43 -0
  59. package/.claude/commands/tm/models/setup-models.md +51 -0
  60. package/.claude/commands/tm/models/view-models.md +51 -0
  61. package/.claude/commands/tm/next/next-task.md +66 -0
  62. package/.claude/commands/tm/parse-prd/parse-prd-with-research.md +48 -0
  63. package/.claude/commands/tm/parse-prd/parse-prd.md +49 -0
  64. package/.claude/commands/tm/remove-dependency/remove-dependency.md +62 -0
  65. package/.claude/commands/tm/remove-subtask/remove-subtask.md +84 -0
  66. package/.claude/commands/tm/remove-task/remove-task.md +107 -0
  67. package/.claude/commands/tm/set-status/to-cancelled.md +55 -0
  68. package/.claude/commands/tm/set-status/to-deferred.md +47 -0
  69. package/.claude/commands/tm/set-status/to-done.md +44 -0
  70. package/.claude/commands/tm/set-status/to-in-progress.md +36 -0
  71. package/.claude/commands/tm/set-status/to-pending.md +32 -0
  72. package/.claude/commands/tm/set-status/to-review.md +40 -0
  73. package/.claude/commands/tm/setup/install-taskmaster.md +117 -0
  74. package/.claude/commands/tm/setup/quick-install-taskmaster.md +22 -0
  75. package/.claude/commands/tm/show/show-task.md +82 -0
  76. package/.claude/commands/tm/status/project-status.md +64 -0
  77. package/.claude/commands/tm/sync-readme/sync-readme.md +117 -0
  78. package/.claude/commands/tm/tm-main.md +146 -0
  79. package/.claude/commands/tm/update/update-single-task.md +119 -0
  80. package/.claude/commands/tm/update/update-task.md +72 -0
  81. package/.claude/commands/tm/update/update-tasks-from-id.md +108 -0
  82. package/.claude/commands/tm/utils/analyze-project.md +97 -0
  83. package/.claude/commands/tm/validate-dependencies/validate-dependencies.md +71 -0
  84. package/.claude/commands/tm/workflows/auto-implement-tasks.md +97 -0
  85. package/.claude/commands/tm/workflows/command-pipeline.md +77 -0
  86. package/.claude/commands/tm/workflows/smart-workflow.md +55 -0
  87. package/.claude/commands/van.md +150 -0
  88. package/.claude/docs/README.md +214 -0
  89. package/.claude/docs/TROUBLESHOOTING.md +126 -0
  90. package/.claude/hooks/block-destructive-commands.sh +243 -0
  91. package/.claude/hooks/collective-metrics.sh +291 -0
  92. package/.claude/hooks/directive-enforcer.sh +117 -0
  93. package/.claude/hooks/load-behavioral-system.sh +49 -0
  94. package/.claude/hooks/routing-executor.sh +4 -0
  95. package/.claude/hooks/test-driven-handoff.sh +653 -0
  96. package/.claude/settings.json +125 -0
  97. package/README.md +39 -15
  98. package/lib/commands/init-state.js +102 -0
  99. package/lib/commands/init.js +58 -95
  100. package/lib/installers/memory-files.js +77 -0
  101. package/lib/installers/slash-commands.js +77 -0
  102. package/package.json +7 -2
  103. package/templates/AGENTS.md +79 -0
  104. package/templates/CLAUDE.md +54 -0
@@ -0,0 +1,97 @@
1
+ Advanced project analysis with actionable insights and recommendations.
2
+
3
+ Arguments: $ARGUMENTS
4
+
5
+ ## Comprehensive Project Analysis
6
+
7
+ Multi-dimensional analysis based on requested focus area.
8
+
9
+ ### 1. **Analysis Modes**
10
+
11
+ Based on $ARGUMENTS:
12
+ - "velocity" โ†’ Sprint velocity and trends
13
+ - "quality" โ†’ Code quality metrics
14
+ - "risk" โ†’ Risk assessment and mitigation
15
+ - "dependencies" โ†’ Dependency graph analysis
16
+ - "team" โ†’ Workload and skill distribution
17
+ - "architecture" โ†’ System design coherence
18
+ - Default โ†’ Full spectrum analysis
19
+
20
+ ### 2. **Velocity Analytics**
21
+
22
+ ```
23
+ ๐Ÿ“Š Velocity Analysis
24
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
25
+ Current Sprint: 24 points/week โ†—๏ธ +20%
26
+ Rolling Average: 20 points/week
27
+ Efficiency: 85% (17/20 tasks on time)
28
+
29
+ Bottlenecks Detected:
30
+ - Code review delays (avg 4h wait)
31
+ - Test environment availability
32
+ - Dependency on external team
33
+
34
+ Recommendations:
35
+ 1. Implement parallel review process
36
+ 2. Add staging environment
37
+ 3. Mock external dependencies
38
+ ```
39
+
40
+ ### 3. **Risk Assessment**
41
+
42
+ **Technical Risks**
43
+ - High complexity tasks without backup assignee
44
+ - Single points of failure in architecture
45
+ - Insufficient test coverage in critical paths
46
+ - Technical debt accumulation rate
47
+
48
+ **Project Risks**
49
+ - Critical path dependencies
50
+ - Resource availability gaps
51
+ - Deadline feasibility analysis
52
+ - Scope creep indicators
53
+
54
+ ### 4. **Dependency Intelligence**
55
+
56
+ Visual dependency analysis:
57
+ ```
58
+ Critical Path:
59
+ #12 โ†’ #15 โ†’ #23 โ†’ #45 โ†’ #50 (20 days)
60
+ โ†˜ #24 โ†’ #46 โ†—
61
+
62
+ Optimization: Parallelize #15 and #24
63
+ Time Saved: 3 days
64
+ ```
65
+
66
+ ### 5. **Quality Metrics**
67
+
68
+ **Code Quality**
69
+ - Test coverage trends
70
+ - Complexity scores
71
+ - Technical debt ratio
72
+ - Review feedback patterns
73
+
74
+ **Process Quality**
75
+ - Rework frequency
76
+ - Bug introduction rate
77
+ - Time to resolution
78
+ - Knowledge distribution
79
+
80
+ ### 6. **Predictive Insights**
81
+
82
+ Based on patterns:
83
+ - Completion probability by deadline
84
+ - Resource needs projection
85
+ - Risk materialization likelihood
86
+ - Suggested interventions
87
+
88
+ ### 7. **Executive Dashboard**
89
+
90
+ High-level summary with:
91
+ - Health score (0-100)
92
+ - Top 3 risks
93
+ - Top 3 opportunities
94
+ - Recommended actions
95
+ - Success probability
96
+
97
+ Result: Data-driven decisions with clear action paths.
@@ -0,0 +1,71 @@
1
+ Validate all task dependencies for issues.
2
+
3
+ ## Dependency Validation
4
+
5
+ Comprehensive check for dependency problems across the entire project.
6
+
7
+ ## Execution
8
+
9
+ ```bash
10
+ task-master validate-dependencies
11
+ ```
12
+
13
+ ## Validation Checks
14
+
15
+ 1. **Circular Dependencies**
16
+ - A depends on B, B depends on A
17
+ - Complex circular chains
18
+ - Self-dependencies
19
+
20
+ 2. **Missing Dependencies**
21
+ - References to non-existent tasks
22
+ - Deleted task references
23
+ - Invalid task IDs
24
+
25
+ 3. **Logical Issues**
26
+ - Completed tasks depending on pending
27
+ - Cancelled tasks in dependency chains
28
+ - Impossible sequences
29
+
30
+ 4. **Complexity Warnings**
31
+ - Over-complex dependency chains
32
+ - Too many dependencies per task
33
+ - Bottleneck tasks
34
+
35
+ ## Smart Analysis
36
+
37
+ The validation provides:
38
+ - Visual dependency graph
39
+ - Critical path analysis
40
+ - Bottleneck identification
41
+ - Suggested optimizations
42
+
43
+ ## Report Format
44
+
45
+ ```
46
+ Dependency Validation Report
47
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
48
+ โœ… No circular dependencies found
49
+ โš ๏ธ 2 warnings found:
50
+ - Task #23 has 7 dependencies (consider breaking down)
51
+ - Task #45 blocks 5 other tasks (potential bottleneck)
52
+ โŒ 1 error found:
53
+ - Task #67 depends on deleted task #66
54
+
55
+ Critical Path: #1 โ†’ #5 โ†’ #23 โ†’ #45 โ†’ #50 (15 days)
56
+ ```
57
+
58
+ ## Actionable Output
59
+
60
+ For each issue found:
61
+ - Clear description
62
+ - Impact assessment
63
+ - Suggested fix
64
+ - Command to resolve
65
+
66
+ ## Next Steps
67
+
68
+ After validation:
69
+ - Run `/project:tm/fix-dependencies` to auto-fix
70
+ - Manually adjust problematic dependencies
71
+ - Rerun to verify fixes
@@ -0,0 +1,97 @@
1
+ Enhanced auto-implementation with intelligent code generation and testing.
2
+
3
+ Arguments: $ARGUMENTS
4
+
5
+ ## Intelligent Auto-Implementation
6
+
7
+ Advanced implementation with context awareness and quality checks.
8
+
9
+ ### 1. **Pre-Implementation Analysis**
10
+
11
+ Before starting:
12
+ - Analyze task complexity and requirements
13
+ - Check codebase patterns and conventions
14
+ - Identify similar completed tasks
15
+ - Assess test coverage needs
16
+ - Detect potential risks
17
+
18
+ ### 2. **Smart Implementation Strategy**
19
+
20
+ Based on task type and context:
21
+
22
+ **Feature Tasks**
23
+ 1. Research existing patterns
24
+ 2. Design component architecture
25
+ 3. Implement with tests
26
+ 4. Integrate with system
27
+ 5. Update documentation
28
+
29
+ **Bug Fix Tasks**
30
+ 1. Reproduce issue
31
+ 2. Identify root cause
32
+ 3. Implement minimal fix
33
+ 4. Add regression tests
34
+ 5. Verify side effects
35
+
36
+ **Refactoring Tasks**
37
+ 1. Analyze current structure
38
+ 2. Plan incremental changes
39
+ 3. Maintain test coverage
40
+ 4. Refactor step-by-step
41
+ 5. Verify behavior unchanged
42
+
43
+ ### 3. **Code Intelligence**
44
+
45
+ **Pattern Recognition**
46
+ - Learn from existing code
47
+ - Follow team conventions
48
+ - Use preferred libraries
49
+ - Match style guidelines
50
+
51
+ **Test-Driven Approach**
52
+ - Write tests first when possible
53
+ - Ensure comprehensive coverage
54
+ - Include edge cases
55
+ - Performance considerations
56
+
57
+ ### 4. **Progressive Implementation**
58
+
59
+ Step-by-step with validation:
60
+ ```
61
+ Step 1/5: Setting up component structure โœ“
62
+ Step 2/5: Implementing core logic โœ“
63
+ Step 3/5: Adding error handling โšก (in progress)
64
+ Step 4/5: Writing tests โณ
65
+ Step 5/5: Integration testing โณ
66
+
67
+ Current: Adding try-catch blocks and validation...
68
+ ```
69
+
70
+ ### 5. **Quality Assurance**
71
+
72
+ Automated checks:
73
+ - Linting and formatting
74
+ - Test execution
75
+ - Type checking
76
+ - Dependency validation
77
+ - Performance analysis
78
+
79
+ ### 6. **Smart Recovery**
80
+
81
+ If issues arise:
82
+ - Diagnostic analysis
83
+ - Suggestion generation
84
+ - Fallback strategies
85
+ - Manual intervention points
86
+ - Learning from failures
87
+
88
+ ### 7. **Post-Implementation**
89
+
90
+ After completion:
91
+ - Generate PR description
92
+ - Update documentation
93
+ - Log lessons learned
94
+ - Suggest follow-up tasks
95
+ - Update task relationships
96
+
97
+ Result: High-quality, production-ready implementations.
@@ -0,0 +1,77 @@
1
+ Execute a pipeline of commands based on a specification.
2
+
3
+ Arguments: $ARGUMENTS
4
+
5
+ ## Command Pipeline Execution
6
+
7
+ Parse pipeline specification from arguments. Supported formats:
8
+
9
+ ### Simple Pipeline
10
+ `init โ†’ expand-all โ†’ sprint-plan`
11
+
12
+ ### Conditional Pipeline
13
+ `status โ†’ if:pending>10 โ†’ sprint-plan โ†’ else โ†’ next`
14
+
15
+ ### Iterative Pipeline
16
+ `for:pending-tasks โ†’ expand โ†’ complexity-check`
17
+
18
+ ### Smart Pipeline Patterns
19
+
20
+ **1. Project Setup Pipeline**
21
+ ```
22
+ init [prd] โ†’
23
+ expand-all โ†’
24
+ complexity-report โ†’
25
+ sprint-plan โ†’
26
+ show first-sprint
27
+ ```
28
+
29
+ **2. Daily Work Pipeline**
30
+ ```
31
+ standup โ†’
32
+ if:in-progress โ†’ continue โ†’
33
+ else โ†’ next โ†’ start
34
+ ```
35
+
36
+ **3. Task Completion Pipeline**
37
+ ```
38
+ complete [id] โ†’
39
+ git-commit โ†’
40
+ if:blocked-tasks-freed โ†’ show-freed โ†’
41
+ next
42
+ ```
43
+
44
+ **4. Quality Check Pipeline**
45
+ ```
46
+ list in-progress โ†’
47
+ for:each โ†’ check-idle-time โ†’
48
+ if:idle>1day โ†’ prompt-update
49
+ ```
50
+
51
+ ### Pipeline Features
52
+
53
+ **Variables**
54
+ - Store results: `status โ†’ $count=pending-count`
55
+ - Use in conditions: `if:$count>10`
56
+ - Pass between commands: `expand $high-priority-tasks`
57
+
58
+ **Error Handling**
59
+ - On failure: `try:complete โ†’ catch:show-blockers`
60
+ - Skip on error: `optional:test-run`
61
+ - Retry logic: `retry:3:commit`
62
+
63
+ **Parallel Execution**
64
+ - Parallel branches: `[analyze | test | lint]`
65
+ - Join results: `parallel โ†’ join:report`
66
+
67
+ ### Execution Flow
68
+
69
+ 1. Parse pipeline specification
70
+ 2. Validate command sequence
71
+ 3. Execute with state passing
72
+ 4. Handle conditions and loops
73
+ 5. Aggregate results
74
+ 6. Show summary
75
+
76
+ This enables complex workflows like:
77
+ `parse-prd โ†’ expand-all โ†’ filter:complex>70 โ†’ assign:senior โ†’ sprint-plan:weighted`
@@ -0,0 +1,55 @@
1
+ Execute an intelligent workflow based on current project state and recent commands.
2
+
3
+ This command analyzes:
4
+ 1. Recent commands you've run
5
+ 2. Current project state
6
+ 3. Time of day / day of week
7
+ 4. Your working patterns
8
+
9
+ Arguments: $ARGUMENTS
10
+
11
+ ## Intelligent Workflow Selection
12
+
13
+ Based on context, I'll determine the best workflow:
14
+
15
+ ### Context Analysis
16
+ - Previous command executed
17
+ - Current task states
18
+ - Unfinished work from last session
19
+ - Your typical patterns
20
+
21
+ ### Smart Execution
22
+
23
+ If last command was:
24
+ - `status` โ†’ Likely starting work โ†’ Run daily standup
25
+ - `complete` โ†’ Task finished โ†’ Find next task
26
+ - `list pending` โ†’ Planning โ†’ Suggest sprint planning
27
+ - `expand` โ†’ Breaking down work โ†’ Show complexity analysis
28
+ - `init` โ†’ New project โ†’ Show onboarding workflow
29
+
30
+ If no recent commands:
31
+ - Morning? โ†’ Daily standup workflow
32
+ - Many pending tasks? โ†’ Sprint planning
33
+ - Tasks blocked? โ†’ Dependency resolution
34
+ - Friday? โ†’ Weekly review
35
+
36
+ ### Workflow Composition
37
+
38
+ I'll chain appropriate commands:
39
+ 1. Analyze current state
40
+ 2. Execute primary workflow
41
+ 3. Suggest follow-up actions
42
+ 4. Prepare environment for coding
43
+
44
+ ### Learning Mode
45
+
46
+ This command learns from your patterns:
47
+ - Track command sequences
48
+ - Note time preferences
49
+ - Remember common workflows
50
+ - Adapt to your style
51
+
52
+ Example flows detected:
53
+ - Morning: standup โ†’ next โ†’ start
54
+ - After lunch: status โ†’ continue task
55
+ - End of day: complete โ†’ commit โ†’ status
@@ -0,0 +1,150 @@
1
+ # /van - Collective Routing Engine
2
+
3
+ ---
4
+ allowed-tools: Task(*), Read(*), Write(*), Edit(*), MultiEdit(*), Glob(*), Grep(*), Bash(*), LS(*), TodoWrite(*), WebSearch(*), WebFetch(*), mcp__task-master__*, mcp__context7__*
5
+ description: ๐Ÿš Fast routing engine for intelligent agent selection and request delegation
6
+ ---
7
+
8
+ ## ๐ŸŽฏ Purpose - Smart Routing
9
+
10
+ **Fast Agent Selection** - analyze user requests and route to the optimal specialized agent using proven patterns and decision matrices.
11
+
12
+ ## ๐Ÿš Routing Flow
13
+
14
+ ```
15
+ Request โ†’ ๐Ÿง  Quick Analysis โ†’ ๐ŸŽฏ Agent Selection โ†’ โšก Task Delegation
16
+ ```
17
+
18
+ ## ๐Ÿš€ DUAL-MODE ROUTING PROTOCOL
19
+
20
+ ### **๐ŸŽฏ USER IMPLEMENTATION MODE** (Direct Agent Routing - DEFAULT)
21
+ **Triggers**: Feature implementation, code creation, bug fixes, testing, research
22
+ **Pattern**: Direct routing to specialized implementation agents
23
+ **No TaskMaster**: Bypass research coordination for practical development
24
+
25
+ ### **๐Ÿ”ฌ RESEARCH COORDINATION MODE** (TaskMaster Integration - RARE)
26
+ **Triggers**: System management, research project coordination, collective enhancement
27
+ **Pattern**: Complex coordination through TaskMaster workflows
28
+ **Full Orchestration**: Use enhanced TaskMaster agents (task-orchestrator โ†’ task-executor โ†’ task-checker)
29
+
30
+ ## ๐Ÿง  IMMEDIATE AGENT ROUTING
31
+
32
+ **Bypass analysis for obvious requests:**
33
+
34
+ | User Says | Instant Agent | Why Skip Analysis |
35
+ |-----------|---------------|-------------------|
36
+ | **"build/create/implement X"** | **@component-implementation-agent** OR **@feature-implementation-agent** | Direct implementation needed |
37
+ | **"build app from PRD"** | **@prd-parser-agent** | Parse PRD โ†’ research โ†’ generate tasks |
38
+ | **"create app from PRD"** | **@prd-parser-agent** | Parse PRD โ†’ research โ†’ generate tasks |
39
+ | **"create application using PRD"** | **@prd-parser-agent** | Parse PRD โ†’ research โ†’ generate tasks |
40
+ | **"implement from PRD"** | **@prd-parser-agent** | Parse PRD โ†’ research โ†’ generate tasks |
41
+ | **"execute tasks"** | **@task-orchestrator** | Coordinate existing TaskMaster tasks |
42
+ | **"fix/debug/resolve X"** | **@feature-implementation-agent** | Direct problem-solving |
43
+ | **"test/validate X"** | **@testing-implementation-agent** | Direct testing workflow |
44
+ | **"optimize/polish X"** | **@polish-implementation-agent** | Direct improvement |
45
+ | **"research/analyze/compare X"** | **@research-agent** | Direct research needed |
46
+ | **"setup/configure build"** | **@infrastructure-implementation-agent** | Direct infrastructure work |
47
+ | **"review/check quality"** | **@quality-agent** | Direct quality validation |
48
+ | **"deploy/setup devops"** | **@devops-agent** | Direct deployment work |
49
+ | **"enhance collective"** | **@task-orchestrator** | System-level coordination |
50
+ | **"coordinate complex project"** | **@task-orchestrator** | Multi-agent orchestration |
51
+
52
+ ## ๐Ÿ“Š COMPLEX REQUEST ANALYSIS
53
+
54
+ **When routing isn't obvious:**
55
+
56
+ | Request Category | Analysis Approach | Agent Selection Strategy |
57
+ |------------------|-------------------|--------------------------|
58
+ | **๐Ÿ”ง Implementation & Features** | Assess UI vs logic complexity | UI-focused โ†’ `@component-implementation-agent`, Logic-focused โ†’ `@feature-implementation-agent`, Full-stack โ†’ both |
59
+ | **๐Ÿงช Testing & Quality** | Scope and current state | New tests โ†’ `@testing-implementation-agent`, Quality check โ†’ `@quality-agent`, Performance โ†’ `@polish-implementation-agent` |
60
+ | **๐Ÿ—๏ธ Infrastructure & Build** | Setup vs maintenance | New project โ†’ `@infrastructure-implementation-agent`, Deployment โ†’ `@devops-agent` |
61
+ | **๐Ÿ“š Research & Analysis** | Information vs implementation | Pure research โ†’ `@research-agent`, Research + implementation โ†’ `@prd-research-agent` |
62
+ | **๐ŸŒŸ Multi-Domain/Epic** | Decomposition and coordination needs | Always โ†’ `@task-orchestrator` with TaskMaster integration |
63
+
64
+ ## ๐ŸŽฏ SMART ROUTING DECISION TREE
65
+
66
+ ```
67
+ Request Analysis
68
+ โ”œโ”€โ”€ PRD Document? โ†’ @prd-parser-agent โ†’ @research-agent โ†’ @task-generator-agent โ†’ @task-orchestrator
69
+ โ”œโ”€โ”€ UI/Component Focus? โ†’ @component-implementation-agent
70
+ โ”œโ”€โ”€ Business Logic Focus? โ†’ @feature-implementation-agent
71
+ โ”œโ”€โ”€ Testing Focus? โ†’ @testing-implementation-agent
72
+ โ”œโ”€โ”€ Infrastructure Focus? โ†’ @infrastructure-implementation-agent
73
+ โ”œโ”€โ”€ Quality Focus? โ†’ @quality-agent OR @polish-implementation-agent
74
+ โ”œโ”€โ”€ Research Focus? โ†’ @research-agent
75
+ โ”œโ”€โ”€ Multi-Domain Complex? โ†’ @task-orchestrator
76
+ โ””โ”€โ”€ System Enhancement? โ†’ @task-orchestrator + TaskMaster
77
+ ```
78
+
79
+ ## ๐ŸŽฎ ORCHESTRATION PATTERNS
80
+
81
+ **Pattern 1: Direct Implementation Delegation**
82
+ ```bash
83
+ # User: "build a React todo app with TypeScript"
84
+ Task(subagent_type="component-implementation-agent",
85
+ prompt="Build React todo app with TypeScript - use Context7 for latest React patterns, implement TDD workflow")
86
+ ```
87
+
88
+ **Pattern 2: Research-Backed Development**
89
+ ```bash
90
+ # User: "implement authentication with best practices"
91
+ Task(subagent_type="feature-implementation-agent",
92
+ prompt="Implement authentication with security best practices - research latest patterns via Context7, apply TDD methodology")
93
+ ```
94
+
95
+ **Pattern 3: PRD-Based Development**
96
+ ```bash
97
+ # User: "create application using PRD at path/to/prd.txt"
98
+ Task(subagent_type="prd-parser-agent",
99
+ prompt="Parse PRD document and extract structured requirements:
100
+ - Read PRD and identify all technologies mentioned
101
+ - Extract functional and technical requirements
102
+ - Create structured analysis for research handoff
103
+ - Hand off to research-agent for technology research")
104
+ ```
105
+
106
+ ## โšก ROUTING RULES
107
+
108
+ ### Execution Efficiency Rules
109
+ 1. **Single Agent Default**: Prefer focused agent execution over complex orchestration (90% of requests)
110
+ 2. **TaskMaster Only When Needed**: Use @task-orchestrator for truly complex coordination (10% of requests)
111
+ 3. **Research Integration**: Every agent incorporates Context7 research into their execution
112
+ 4. **TDD Compliance**: All implementation follows Test-Driven Development patterns
113
+ 5. **Quality Validation**: Mandatory gate checkpoints for production readiness
114
+
115
+ ### Strategic Decision Making
116
+ 1. **Agent-First Thinking**: Always consider which collective agent can handle the request most efficiently
117
+ 2. **Strategic Focus**: Maintain Van's orchestration role above all else
118
+ 3. **Research-Backed Routing**: Use Context7 patterns and TaskMaster data for informed routing
119
+ 4. **TDD Integration**: Ensure all implementation flows through TDD methodology
120
+ 5. **Quality Gates**: Implement mandatory validation at every handoff point
121
+
122
+ ## ๐ŸŽฏ Van-Optimized Output Format
123
+
124
+ ```markdown
125
+ # ๐Ÿšโœจ Van Collective: [User's Original Request]
126
+
127
+ ## ๐Ÿง  Analysis & Routing Decision
128
+ - **Intent**: [Clear category]
129
+ - **Mode**: [USER IMPLEMENTATION / RESEARCH COORDINATION]
130
+ - **Agent Selected**: @[agent-name]
131
+ - **Routing Reason**: [Why this agent was chosen]
132
+ - **Research Integration**: [Context7 libraries / TaskMaster coordination]
133
+
134
+ ## ๐ŸŽฏ Agent Execution Summary
135
+ **Agent**: @[agent-name]
136
+ **Task Delegated**: "[Exact task given to agent]"
137
+ **TDD Requirement**: [Yes/No + methodology]
138
+ **Research Context**: [Context7 libraries + research cache references]
139
+ **Quality Gates**: [Validation checkpoints]
140
+
141
+ ## โœจ Collective Status
142
+ - **Status**: [Delegated/In Progress/Completed]
143
+ - **Next Action**: [What happens next]
144
+ - **Quality Gates**: [Validation requirements]
145
+ - **Research Cache**: [Updated patterns for future routing]
146
+ ```
147
+
148
+ ---
149
+
150
+ *"๐Ÿšโœจ Your development request is our collective command - through the power of research-backed agent orchestration!"*