telos-framework 0.2.0 → 0.3.1

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 (103) 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 +400 -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.js +52 -157
  99. package/lib/installers/memory-files.js +77 -0
  100. package/lib/installers/slash-commands.js +77 -0
  101. package/package.json +7 -2
  102. package/templates/AGENTS.md +79 -0
  103. package/templates/CLAUDE.md +54 -0
@@ -0,0 +1,170 @@
1
+ ---
2
+ description: Show current Telos configuration and hierarchy
3
+ ---
4
+
5
+ # Telos Status
6
+
7
+ Display the current Telos configuration for this project.
8
+
9
+ ## Check Installation
10
+
11
+ First, check if Telos is initialized:
12
+
13
+ - Look for `telos/content/TELOS.md`
14
+ - Look for `telos/agents/` directory
15
+
16
+ If not found, display:
17
+
18
+ ```
19
+ ❌ Telos not initialized
20
+
21
+ Run `/telos-init` to set up the multi-agent system.
22
+ ```
23
+
24
+ ## Display Configuration
25
+
26
+ If Telos is initialized, read and display:
27
+
28
+ ### 1. Ultimate Purpose
29
+
30
+ From `telos/content/TELOS.md`, extract and display:
31
+
32
+ ```
33
+ 🎯 **Ultimate Purpose (L9)**
34
+ [L9 purpose statement from TELOS.md]
35
+
36
+ **Beneficiaries**: [Who benefits]
37
+ **Measurable Impact**: [Success metrics]
38
+ ```
39
+
40
+ ### 2. Purpose Hierarchy
41
+
42
+ Display all 9 levels:
43
+
44
+ | Level | Agent | Purpose | Status |
45
+ | ----- | ---------------------- | --------- | ------------------------------------------- |
46
+ | L9 | Telos-Guardian | [Purpose] | [✅ if l9-telos-guardian.md exists] |
47
+ | L8 | Market-Analyst | [Purpose] | [✅ if l8-market-analyst.md exists] |
48
+ | L7 | Insight-Synthesizer | [Purpose] | [✅ if l7-insight-synthesizer.md exists] |
49
+ | L6 | UX-Simulator | [Purpose] | [✅ if l6-ux-simulator.md exists] |
50
+ | L5 | Journey-Validator | [Purpose] | [✅ if l5-journey-validator.md exists] |
51
+ | L4 | Integration-Contractor | [Purpose] | [✅ if l4-integration-contractor.md exists] |
52
+ | L3 | Component-Architect | [Purpose] | [✅ if l3-component-architect.md exists] |
53
+ | L2 | Function-Author | [Purpose] | [✅ if l2-function-author.md exists] |
54
+ | L1 | Syntax-Linter | [Purpose] | [✅ if l1-syntax-linter.md exists] |
55
+
56
+ ### 3. Technology Stack
57
+
58
+ From `telos/content/TELOS.md`, show detected stack:
59
+
60
+ ```
61
+ **Technology Stack**
62
+ - **Languages**: [Languages]
63
+ - **Frameworks**: [Frameworks]
64
+ - **Testing**: [Test frameworks]
65
+ - **Linting**: [Linters]
66
+ - **Build Tools**: [Build systems]
67
+ ```
68
+
69
+ ### 4. Installation Details
70
+
71
+ Show metadata:
72
+
73
+ ```
74
+ **Installation**
75
+ - **Initialized**: [Date from TELOS.md]
76
+ - **Method**: [AI Assistant / CLI]
77
+ - **Agent Files**: [N]/9 present
78
+ - **Orchestrator**: [✅ Present / ❌ Not found] (logos/orchestrator.js)
79
+ ```
80
+
81
+ ### 5. Platform Integration
82
+
83
+ Check for platform-specific files:
84
+
85
+ ```
86
+ **Platform Integration**
87
+ - **Claude Code**: [✅ AGENTS.md exists / ❌ Not configured]
88
+ - **OpenCode**: [✅ .opencode/ setup / ❌ Not configured]
89
+ ```
90
+
91
+ ## Health Check
92
+
93
+ Perform a quick health check:
94
+
95
+ **✅ Healthy**: All 9 agent files present, TELOS.md valid **⚠️ Incomplete**:
96
+ Some agent files missing **❌ Corrupted**: TELOS.md missing or invalid
97
+
98
+ If incomplete or corrupted:
99
+
100
+ ```
101
+ ⚠️ **Warning**: Telos installation is incomplete.
102
+
103
+ **Missing files**:
104
+ - [List missing agent files]
105
+
106
+ **Suggestion**: Run `/telos-reset` then `/telos-init` to reinstall.
107
+ ```
108
+
109
+ ## Quick Actions
110
+
111
+ Display available commands:
112
+
113
+ ```
114
+ **Available Commands**
115
+ - `/telos-validate` - Check code alignment with purpose
116
+ - `/telos-reset` - Clear and reinitialize
117
+ - `/telos-init` - Reconfigure interactively
118
+ - `/telos-quick` - Fast reconfiguration
119
+ ```
120
+
121
+ ## Example Output
122
+
123
+ Full example when healthy:
124
+
125
+ ```
126
+ 🎯 **Ultimate Purpose (L9)**
127
+ Enable developers to build software with clear hierarchical purpose
128
+
129
+ **Beneficiaries**: Software development teams using AI assistants
130
+ **Measurable Impact**: Reduced technical debt, faster onboarding, purpose-aligned decisions
131
+
132
+ **Purpose Hierarchy**
133
+
134
+ | Level | Agent | Purpose | Status |
135
+ |-------|-------|---------|--------|
136
+ | L9 | Telos-Guardian | Enable purposeful software development | ✅ |
137
+ | L8 | Market-Analyst | Maximize developer productivity and code quality | ✅ |
138
+ | L7 | Insight-Synthesizer | Synthesize best practices into actionable guidance | ✅ |
139
+ | L6 | UX-Simulator | Ensure intuitive developer experience | ✅ |
140
+ | L5 | Journey-Validator | Validate developer workflows end-to-end | ✅ |
141
+ | L4 | Integration-Contractor | Maintain clean API contracts | ✅ |
142
+ | L3 | Component-Architect | Design modular component architecture | ✅ |
143
+ | L2 | Function-Author | Write testable, maintainable functions | ✅ |
144
+ | L1 | Syntax-Linter | Enforce code quality standards | ✅ |
145
+
146
+ **Technology Stack**
147
+ - **Languages**: JavaScript, Node.js
148
+ - **Frameworks**: None (CLI tool)
149
+ - **Testing**: Vitest
150
+ - **Linting**: ESLint, Prettier
151
+ - **Build Tools**: npm
152
+
153
+ **Installation**
154
+ - **Initialized**: 2025-01-15
155
+ - **Method**: AI Assistant (/telos-init)
156
+ - **Agent Files**: 9/9 present ✅
157
+ - **Orchestrator**: ✅ Present
158
+
159
+ **Platform Integration**
160
+ - **Claude Code**: ✅ AGENTS.md configured
161
+ - **OpenCode**: ✅ .opencode/ configured
162
+
163
+ **Health**: ✅ Fully operational
164
+
165
+ **Available Commands**
166
+ - `/telos-validate` - Check code alignment with purpose
167
+ - `/telos-reset` - Clear and reinitialize
168
+ - `/telos-init` - Reconfigure interactively
169
+ - `/telos-quick` - Fast reconfiguration
170
+ ```
@@ -0,0 +1,143 @@
1
+ ---
2
+ description: Validate current code against Telos purpose hierarchy
3
+ ---
4
+
5
+ # Telos Validation
6
+
7
+ This command checks if your current codebase aligns with the established Telos
8
+ purpose hierarchy.
9
+
10
+ ## Prerequisites
11
+
12
+ Check if Telos is initialized:
13
+
14
+ - `telos/content/TELOS.md` must exist
15
+ - At least some agent files in `telos/agents/` must exist
16
+
17
+ If not found, display: "❌ Telos not initialized. Run `/telos-init` first."
18
+
19
+ ## Validation Process
20
+
21
+ ### Step 1: Load Telos Configuration
22
+
23
+ Read `telos/content/TELOS.md` to extract:
24
+
25
+ - Ultimate purpose (L9)
26
+ - 9-level hierarchy definitions
27
+ - Detected technology stack
28
+
29
+ ### Step 2: Analyze Current Codebase
30
+
31
+ Check for alignment issues:
32
+
33
+ #### L1 (Syntax-Linter) Validation
34
+
35
+ - Run detected linters: `npm run lint` or equivalent
36
+ - Check for linting errors
37
+ - Report: ✅ Passes / ❌ Fails with [N] errors
38
+
39
+ #### L2 (Function-Author) Validation
40
+
41
+ - Run tests: `npm test` or equivalent
42
+ - Check test coverage
43
+ - Report: ✅ [X]% coverage / ❌ Below threshold
44
+
45
+ #### L3 (Component-Architect) Validation
46
+
47
+ - Check for components without proper structure
48
+ - Look for components violating design patterns
49
+ - Report: ✅ Components follow architecture / ⚠️ [N] components need refactoring
50
+
51
+ #### L4 (Integration-Contractor) Validation
52
+
53
+ - Check for API contract violations
54
+ - Look for breaking changes without versioning
55
+ - Report: ✅ API contracts maintained / ⚠️ [N] contract issues
56
+
57
+ #### L5 (Journey-Validator) Validation
58
+
59
+ - Look for missing E2E tests for critical flows
60
+ - Check if user journeys are documented
61
+ - Report: ✅ User journeys validated / ⚠️ [N] flows untested
62
+
63
+ #### L6 (UX-Simulator) Validation
64
+
65
+ - Check for accessibility issues (if tools available)
66
+ - Look for UX inconsistencies
67
+ - Report: ✅ UX standards met / ⚠️ [N] UX issues
68
+
69
+ #### L7 (Insight-Synthesizer) Validation
70
+
71
+ - Check if recent changes align with product strategy
72
+ - Look for features without clear user value
73
+ - Report: ✅ Strategy aligned / ⚠️ [N] strategic misalignments
74
+
75
+ #### L8 (Market-Analyst) Validation
76
+
77
+ - Check if metrics/analytics are tracked
78
+ - Look for features without measurable outcomes
79
+ - Report: ✅ Business value tracked / ⚠️ [N] untracked features
80
+
81
+ #### L9 (Telos-Guardian) Validation
82
+
83
+ - Review recent changes against ultimate purpose
84
+ - Look for purpose drift
85
+ - Report: ✅ Purpose aligned / ⚠️ Potential purpose drift detected
86
+
87
+ ## Validation Report
88
+
89
+ Display results in a table:
90
+
91
+ | Level | Agent | Status | Issues |
92
+ | ----- | ---------------------- | -------- | ------------- |
93
+ | L9 | Telos-Guardian | ✅/⚠️/❌ | [Description] |
94
+ | L8 | Market-Analyst | ✅/⚠️/❌ | [Description] |
95
+ | L7 | Insight-Synthesizer | ✅/⚠️/❌ | [Description] |
96
+ | L6 | UX-Simulator | ✅/⚠️/❌ | [Description] |
97
+ | L5 | Journey-Validator | ✅/⚠️/❌ | [Description] |
98
+ | L4 | Integration-Contractor | ✅/⚠️/❌ | [Description] |
99
+ | L3 | Component-Architect | ✅/⚠️/❌ | [Description] |
100
+ | L2 | Function-Author | ✅/⚠️/❌ | [Description] |
101
+ | L1 | Syntax-Linter | ✅/⚠️/❌ | [Description] |
102
+
103
+ **Overall Status**: ✅ Fully aligned / ⚠️ Needs attention / ❌ Critical
104
+ misalignment
105
+
106
+ ## Detailed Findings
107
+
108
+ For each ⚠️ or ❌ status, provide:
109
+
110
+ **[Level] - [Issue Description]**
111
+
112
+ - **Problem**: What's misaligned
113
+ - **Impact**: How it violates purpose
114
+ - **Suggestion**: How to fix
115
+
116
+ Example:
117
+
118
+ ```
119
+ L2 (Function-Author) - Low Test Coverage
120
+ - **Problem**: Test coverage is 45%, below 80% threshold
121
+ - **Impact**: Violates L2 purpose of "Write TDD functions with Vitest coverage >80%"
122
+ - **Suggestion**: Add tests for modules in src/utils/ and src/services/
123
+ ```
124
+
125
+ ## Next Steps
126
+
127
+ If validation passes (all ✅): "🎉 Your codebase is fully aligned with Telos!
128
+ Keep up the great work."
129
+
130
+ If warnings found (⚠️): "⚠️ Some alignment issues detected. Address these to
131
+ maintain Telos integrity."
132
+
133
+ If critical issues (❌): "❌ Critical misalignment detected. These issues
134
+ violate core Telos principles and should be addressed urgently."
135
+
136
+ ## Validation Frequency
137
+
138
+ Recommend:
139
+
140
+ - Run `/telos-validate` before major releases
141
+ - Run after completing significant features
142
+ - Run when onboarding new team members
143
+ - Integrate into CI/CD pipeline (via CLI: `telos validate`)
@@ -0,0 +1,55 @@
1
+ Add a dependency between tasks.
2
+
3
+ Arguments: $ARGUMENTS
4
+
5
+ Parse the task IDs to establish dependency relationship.
6
+
7
+ ## Adding Dependencies
8
+
9
+ Creates a dependency where one task must be completed before another can start.
10
+
11
+ ## Argument Parsing
12
+
13
+ Parse natural language or IDs:
14
+ - "make 5 depend on 3" → task 5 depends on task 3
15
+ - "5 needs 3" → task 5 depends on task 3
16
+ - "5 3" → task 5 depends on task 3
17
+ - "5 after 3" → task 5 depends on task 3
18
+
19
+ ## Execution
20
+
21
+ ```bash
22
+ task-master add-dependency --id=<task-id> --depends-on=<dependency-id>
23
+ ```
24
+
25
+ ## Validation
26
+
27
+ Before adding:
28
+ 1. **Verify both tasks exist**
29
+ 2. **Check for circular dependencies**
30
+ 3. **Ensure dependency makes logical sense**
31
+ 4. **Warn if creating complex chains**
32
+
33
+ ## Smart Features
34
+
35
+ - Detect if dependency already exists
36
+ - Suggest related dependencies
37
+ - Show impact on task flow
38
+ - Update task priorities if needed
39
+
40
+ ## Post-Addition
41
+
42
+ After adding dependency:
43
+ 1. Show updated dependency graph
44
+ 2. Identify any newly blocked tasks
45
+ 3. Suggest task order changes
46
+ 4. Update project timeline
47
+
48
+ ## Example Flows
49
+
50
+ ```
51
+ /project:tm/add-dependency 5 needs 3
52
+ → Task #5 now depends on Task #3
53
+ → Task #5 is now blocked until #3 completes
54
+ → Suggested: Also consider if #5 needs #4
55
+ ```
@@ -0,0 +1,76 @@
1
+ Add a subtask to a parent task.
2
+
3
+ Arguments: $ARGUMENTS
4
+
5
+ Parse arguments to create a new subtask or convert existing task.
6
+
7
+ ## Adding Subtasks
8
+
9
+ Creates subtasks to break down complex parent tasks into manageable pieces.
10
+
11
+ ## Argument Parsing
12
+
13
+ Flexible natural language:
14
+ - "add subtask to 5: implement login form"
15
+ - "break down 5 with: setup, implement, test"
16
+ - "subtask for 5: handle edge cases"
17
+ - "5: validate user input" → adds subtask to task 5
18
+
19
+ ## Execution Modes
20
+
21
+ ### 1. Create New Subtask
22
+ ```bash
23
+ task-master add-subtask --parent=<id> --title="<title>" --description="<desc>"
24
+ ```
25
+
26
+ ### 2. Convert Existing Task
27
+ ```bash
28
+ task-master add-subtask --parent=<id> --task-id=<existing-id>
29
+ ```
30
+
31
+ ## Smart Features
32
+
33
+ 1. **Automatic Subtask Generation**
34
+ - If title contains "and" or commas, create multiple
35
+ - Suggest common subtask patterns
36
+ - Inherit parent's context
37
+
38
+ 2. **Intelligent Defaults**
39
+ - Priority based on parent
40
+ - Appropriate time estimates
41
+ - Logical dependencies between subtasks
42
+
43
+ 3. **Validation**
44
+ - Check parent task complexity
45
+ - Warn if too many subtasks
46
+ - Ensure subtask makes sense
47
+
48
+ ## Creation Process
49
+
50
+ 1. Parse parent task context
51
+ 2. Generate subtask with ID like "5.1"
52
+ 3. Set appropriate defaults
53
+ 4. Link to parent task
54
+ 5. Update parent's time estimate
55
+
56
+ ## Example Flows
57
+
58
+ ```
59
+ /project:tm/add-subtask to 5: implement user authentication
60
+ → Created subtask #5.1: "implement user authentication"
61
+ → Parent task #5 now has 1 subtask
62
+ → Suggested next subtasks: tests, documentation
63
+
64
+ /project:tm/add-subtask 5: setup, implement, test
65
+ → Created 3 subtasks:
66
+ #5.1: setup
67
+ #5.2: implement
68
+ #5.3: test
69
+ ```
70
+
71
+ ## Post-Creation
72
+
73
+ - Show updated task hierarchy
74
+ - Suggest logical next subtasks
75
+ - Update complexity estimates
76
+ - Recommend subtask order
@@ -0,0 +1,71 @@
1
+ Convert an existing task into a subtask.
2
+
3
+ Arguments: $ARGUMENTS
4
+
5
+ Parse parent ID and task ID to convert.
6
+
7
+ ## Task Conversion
8
+
9
+ Converts an existing standalone task into a subtask of another task.
10
+
11
+ ## Argument Parsing
12
+
13
+ - "move task 8 under 5"
14
+ - "make 8 a subtask of 5"
15
+ - "nest 8 in 5"
16
+ - "5 8" → make task 8 a subtask of task 5
17
+
18
+ ## Execution
19
+
20
+ ```bash
21
+ task-master add-subtask --parent=<parent-id> --task-id=<task-to-convert>
22
+ ```
23
+
24
+ ## Pre-Conversion Checks
25
+
26
+ 1. **Validation**
27
+ - Both tasks exist and are valid
28
+ - No circular parent relationships
29
+ - Task isn't already a subtask
30
+ - Logical hierarchy makes sense
31
+
32
+ 2. **Impact Analysis**
33
+ - Dependencies that will be affected
34
+ - Tasks that depend on converting task
35
+ - Priority alignment needed
36
+ - Status compatibility
37
+
38
+ ## Conversion Process
39
+
40
+ 1. Change task ID from "8" to "5.1" (next available)
41
+ 2. Update all dependency references
42
+ 3. Inherit parent's context where appropriate
43
+ 4. Adjust priorities if needed
44
+ 5. Update time estimates
45
+
46
+ ## Smart Features
47
+
48
+ - Preserve task history
49
+ - Maintain dependencies
50
+ - Update all references
51
+ - Create conversion log
52
+
53
+ ## Example
54
+
55
+ ```
56
+ /project:tm/add-subtask/from-task 5 8
57
+ → Converting: Task #8 becomes subtask #5.1
58
+ → Updated: 3 dependency references
59
+ → Parent task #5 now has 1 subtask
60
+ → Note: Subtask inherits parent's priority
61
+
62
+ Before: #8 "Implement validation" (standalone)
63
+ After: #5.1 "Implement validation" (subtask of #5)
64
+ ```
65
+
66
+ ## Post-Conversion
67
+
68
+ - Show new task hierarchy
69
+ - List updated dependencies
70
+ - Verify project integrity
71
+ - Suggest related conversions
@@ -0,0 +1,78 @@
1
+ Add new tasks with intelligent parsing and context awareness.
2
+
3
+ Arguments: $ARGUMENTS
4
+
5
+ ## Smart Task Addition
6
+
7
+ Parse natural language to create well-structured tasks.
8
+
9
+ ### 1. **Input Understanding**
10
+
11
+ I'll intelligently parse your request:
12
+ - Natural language → Structured task
13
+ - Detect priority from keywords (urgent, ASAP, important)
14
+ - Infer dependencies from context
15
+ - Suggest complexity based on description
16
+ - Determine task type (feature, bug, refactor, test, docs)
17
+
18
+ ### 2. **Smart Parsing Examples**
19
+
20
+ **"Add urgent task to fix login bug"**
21
+ → Title: Fix login bug
22
+ → Priority: high
23
+ → Type: bug
24
+ → Suggested complexity: medium
25
+
26
+ **"Create task for API documentation after task 23 is done"**
27
+ → Title: API documentation
28
+ → Dependencies: [23]
29
+ → Type: documentation
30
+ → Priority: medium
31
+
32
+ **"Need to refactor auth module - depends on 12 and 15, high complexity"**
33
+ → Title: Refactor auth module
34
+ → Dependencies: [12, 15]
35
+ → Complexity: high
36
+ → Type: refactor
37
+
38
+ ### 3. **Context Enhancement**
39
+
40
+ Based on current project state:
41
+ - Suggest related existing tasks
42
+ - Warn about potential conflicts
43
+ - Recommend dependencies
44
+ - Propose subtasks if complex
45
+
46
+ ### 4. **Interactive Refinement**
47
+
48
+ ```yaml
49
+ Task Preview:
50
+ ─────────────
51
+ Title: [Extracted title]
52
+ Priority: [Inferred priority]
53
+ Dependencies: [Detected dependencies]
54
+ Complexity: [Estimated complexity]
55
+
56
+ Suggestions:
57
+ - Similar task #34 exists, consider as dependency?
58
+ - This seems complex, break into subtasks?
59
+ - Tasks #45-47 work on same module
60
+ ```
61
+
62
+ ### 5. **Validation & Creation**
63
+
64
+ Before creating:
65
+ - Validate dependencies exist
66
+ - Check for duplicates
67
+ - Ensure logical ordering
68
+ - Verify task completeness
69
+
70
+ ### 6. **Smart Defaults**
71
+
72
+ Intelligent defaults based on:
73
+ - Task type patterns
74
+ - Team conventions
75
+ - Historical data
76
+ - Current sprint/phase
77
+
78
+ Result: High-quality tasks from minimal input.
@@ -0,0 +1,121 @@
1
+ Analyze task complexity and generate expansion recommendations.
2
+
3
+ Arguments: $ARGUMENTS
4
+
5
+ Perform deep analysis of task complexity across the project.
6
+
7
+ ## Complexity Analysis
8
+
9
+ Uses AI to analyze tasks and recommend which ones need breakdown.
10
+
11
+ ## Execution Options
12
+
13
+ ```bash
14
+ task-master analyze-complexity [--research] [--threshold=5]
15
+ ```
16
+
17
+ ## Analysis Parameters
18
+
19
+ - `--research` → Use research AI for deeper analysis
20
+ - `--threshold=5` → Only flag tasks above complexity 5
21
+ - Default: Analyze all pending tasks
22
+
23
+ ## Analysis Process
24
+
25
+ ### 1. **Task Evaluation**
26
+ For each task, AI evaluates:
27
+ - Technical complexity
28
+ - Time requirements
29
+ - Dependency complexity
30
+ - Risk factors
31
+ - Knowledge requirements
32
+
33
+ ### 2. **Complexity Scoring**
34
+ Assigns score 1-10 based on:
35
+ - Implementation difficulty
36
+ - Integration challenges
37
+ - Testing requirements
38
+ - Unknown factors
39
+ - Technical debt risk
40
+
41
+ ### 3. **Recommendations**
42
+ For complex tasks:
43
+ - Suggest expansion approach
44
+ - Recommend subtask breakdown
45
+ - Identify risk areas
46
+ - Propose mitigation strategies
47
+
48
+ ## Smart Analysis Features
49
+
50
+ 1. **Pattern Recognition**
51
+ - Similar task comparisons
52
+ - Historical complexity accuracy
53
+ - Team velocity consideration
54
+ - Technology stack factors
55
+
56
+ 2. **Contextual Factors**
57
+ - Team expertise
58
+ - Available resources
59
+ - Timeline constraints
60
+ - Business criticality
61
+
62
+ 3. **Risk Assessment**
63
+ - Technical risks
64
+ - Timeline risks
65
+ - Dependency risks
66
+ - Knowledge gaps
67
+
68
+ ## Output Format
69
+
70
+ ```
71
+ Task Complexity Analysis Report
72
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
73
+
74
+ High Complexity Tasks (>7):
75
+ 📍 #5 "Implement real-time sync" - Score: 9/10
76
+ Factors: WebSocket complexity, state management, conflict resolution
77
+ Recommendation: Expand into 5-7 subtasks
78
+ Risks: Performance, data consistency
79
+
80
+ 📍 #12 "Migrate database schema" - Score: 8/10
81
+ Factors: Data migration, zero downtime, rollback strategy
82
+ Recommendation: Expand into 4-5 subtasks
83
+ Risks: Data loss, downtime
84
+
85
+ Medium Complexity Tasks (5-7):
86
+ 📍 #23 "Add export functionality" - Score: 6/10
87
+ Consider expansion if timeline tight
88
+
89
+ Low Complexity Tasks (<5):
90
+ ✅ 15 tasks - No expansion needed
91
+
92
+ Summary:
93
+ - Expand immediately: 2 tasks
94
+ - Consider expanding: 5 tasks
95
+ - Keep as-is: 15 tasks
96
+ ```
97
+
98
+ ## Actionable Output
99
+
100
+ For each high-complexity task:
101
+ 1. Complexity score with reasoning
102
+ 2. Specific expansion suggestions
103
+ 3. Risk mitigation approaches
104
+ 4. Recommended subtask structure
105
+
106
+ ## Integration
107
+
108
+ Results are:
109
+ - Saved to `.taskmaster/reports/complexity-analysis.md`
110
+ - Used by expand command
111
+ - Inform sprint planning
112
+ - Guide resource allocation
113
+
114
+ ## Next Steps
115
+
116
+ After analysis:
117
+ ```
118
+ /project:tm/expand 5 # Expand specific task
119
+ /project:tm/expand/all # Expand all recommended
120
+ /project:tm/complexity-report # View detailed report
121
+ ```