@polymorphism-tech/morph-spec 7.3.0 → 7.5.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 (61) hide show
  1. package/CLAUDE.md +1 -1
  2. package/README.md +2 -2
  3. package/bin/morph-spec.js +22 -2
  4. package/claude-plugin.json +1 -1
  5. package/docs/CHEATSHEET.md +1 -1
  6. package/docs/QUICKSTART.md +1 -1
  7. package/framework/CLAUDE.md +10 -5
  8. package/framework/MORPH.md +31 -14
  9. package/framework/agents.json +132 -132
  10. package/framework/commands/create-umbraco-lp.md +35 -0
  11. package/framework/commands/migrate-lp-to-umbraco.md +33 -0
  12. package/framework/commands/morph-archive.md +17 -27
  13. package/framework/evals/rubrics/README.md +9 -8
  14. package/framework/hooks/README.md +2 -0
  15. package/framework/hooks/claude-code/core/enforce-phase-writes.js +115 -90
  16. package/framework/hooks/claude-code/core/gate-guard.js +160 -0
  17. package/framework/hooks/claude-code/core/protect-spec-files.js +32 -30
  18. package/framework/hooks/claude-code/core/state-sync.js +16 -36
  19. package/framework/hooks/claude-code/core/validate-completion.js +105 -0
  20. package/framework/hooks/shared/state-reader.js +302 -221
  21. package/framework/hooks/shared/state-writer.js +124 -0
  22. package/framework/rules/morph-task-tracking.md +69 -49
  23. package/framework/rules/morph-workflow.md +192 -191
  24. package/framework/skills/README.md +1 -1
  25. package/framework/skills/core/create-umbraco-lp/SKILL.md +252 -0
  26. package/framework/skills/core/migrate-lp-to-umbraco/SKILL.md +452 -0
  27. package/framework/skills/core/morph-apply/SKILL.md +69 -27
  28. package/framework/skills/core/morph-brainstorming/SKILL.md +6 -2
  29. package/framework/skills/core/morph-eval/SKILL.md +4 -5
  30. package/framework/skills/core/morph-implement/SKILL.md +51 -22
  31. package/framework/skills/core/morph-plan/SKILL.md +10 -4
  32. package/framework/skills/core/morph-proposal/SKILL.md +8 -7
  33. package/framework/skills/core/morph-review/SKILL.md +15 -8
  34. package/framework/skills/core/morph-stack-scan/SKILL.md +1 -1
  35. package/framework/skills/core/morph-standards/SKILL.md +1 -1
  36. package/framework/standards/ai-agents/setup.md +258 -244
  37. package/framework/templates/REGISTRY.json +1 -3
  38. package/framework/templates/context/CONTEXT-FEATURE.md +10 -17
  39. package/framework/templates/context/CONTEXT.md +181 -180
  40. package/framework/templates/docs/onboarding.md +122 -118
  41. package/framework/templates/docs/proposal.md +10 -0
  42. package/framework/templates/docs/spec.md +228 -228
  43. package/framework/templates/meta-prompts/parallel-workers/parallel-worker.md +80 -80
  44. package/framework/templates/meta-prompts/squad-leaders/backend-squad.md +90 -89
  45. package/framework/templates/meta-prompts/squad-leaders/frontend-squad.md +2 -1
  46. package/framework/templates/meta-prompts/squad-leaders/squad-leader.md +44 -43
  47. package/framework/templates/meta-prompts/validators/checkpoint-validator.md +107 -107
  48. package/package.json +1 -1
  49. package/src/commands/project/init.js +517 -515
  50. package/src/commands/project/update.js +415 -368
  51. package/src/commands/project/worktree.js +212 -210
  52. package/src/commands/state/advance.js +82 -0
  53. package/src/commands/state/approve.js +251 -213
  54. package/src/commands/state/archive.js +111 -0
  55. package/src/commands/validation/validate-feature.js +244 -79
  56. package/src/core/state/state-manager.js +256 -74
  57. package/src/dashboard/scanner/state-scanner.js +35 -8
  58. package/src/lib/generators/context-generator.js +12 -8
  59. package/src/lib/risk-detector.js +2 -2
  60. package/src/utils/file-copier.js +7 -0
  61. package/src/utils/hooks-installer.js +527 -516
@@ -1,180 +1,181 @@
1
- # {{PROJECT_NAME}} - Project Context
2
-
3
- > Auto-generated by MORPH-SPEC Framework
4
- > Last updated: {{TIMESTAMP}}
5
-
6
- ## Project Overview
7
-
8
- **Name:** {{PROJECT_NAME}}
9
- **Type:** {{PROJECT_TYPE}}
10
- **Repository:** {{REPOSITORY_URL}}
11
-
12
- {{PROJECT_DESCRIPTION}}
13
-
14
- ---
15
-
16
- ## Technology Stack
17
-
18
- ### Frontend
19
- {{#if NEXTJS_ENABLED}}- **Next.js** {{NEXTJS_VERSION}}{{/if}}
20
- {{#if UI_LIBRARY}}- **UI Library:** {{UI_LIBRARY}}{{/if}}
21
-
22
- ### Backend
23
- - **.NET** {{DOTNET_VERSION}}
24
- {{#if EF_VERSION}}- **Entity Framework Core** {{EF_VERSION}}{{/if}}
25
- {{#if DAPPER_ENABLED}}- **Dapper** (Micro-ORM){{/if}}
26
- {{#if HANGFIRE_ENABLED}}- **Hangfire** (Background Jobs){{/if}}
27
- {{#if AGENT_FRAMEWORK_ENABLED}}- **Microsoft Agent Framework** (AI Agents){{/if}}
28
-
29
- ### Database
30
- {{#if SQL_ENABLED}}- **Azure SQL** ({{SQL_SERVER}}/{{SQL_DATABASE}}){{/if}}
31
- {{#if NEON_ENABLED}}- **Neon** (PostgreSQL + Connection Pooling)
32
- - Project: {{NEON_PROJECT_ID}}
33
- - Region: {{NEON_REGION}}
34
- {{/if}}
35
-
36
- ### Infrastructure
37
- {{#if AZURE_ENABLED}}- **Azure** ({{AZURE_LOCATION}})
38
- {{#if CONTAINER_APPS_ENABLED}}- **Container Apps** ({{CONTAINER_ENV}}){{/if}}
39
- {{#if OPENAI_ENABLED}}- **Azure OpenAI** ({{OPENAI_MODEL}}){{/if}}
40
- {{#if MONITORING_ENABLED}}- **Application Insights** ({{APP_INSIGHTS}}){{/if}}
41
- {{/if}}
42
-
43
- {{#if EASYPANEL_ENABLED}}- **EasyPanel** (Docker Deployment)
44
- - API: {{EASYPANEL_API_URL}}
45
- - Web: {{EASYPANEL_WEB_URL}}
46
- {{/if}}
47
-
48
- ---
49
-
50
- ## Active Features
51
-
52
- {{#each ACTIVE_FEATURES}}
53
- ### {{name}} ({{phase}})
54
- **Status:** {{status}}
55
- **Complexity:** {{complexity}}
56
- **Active Agents:** {{activeAgents}}
57
-
58
- {{#if description}}{{description}}{{/if}}
59
-
60
- **Progress:**
61
- - Tasks: {{tasks.completed}}/{{tasks.total}}
62
- - Outputs: {{outputs}}
63
-
64
- {{/each}}
65
-
66
- ---
67
-
68
- ## Project Standards
69
-
70
- ### Coding Standards
71
- {{#each PROJECT_STANDARDS}}
72
- - [{{name}}]({{path}}){{#if description}} - {{description}}{{/if}}
73
- {{/each}}
74
-
75
- ### Inferred Patterns
76
- {{#if INFERRED_STANDARDS}}
77
- {{INFERRED_STANDARDS}}
78
- {{/if}}
79
-
80
- ---
81
-
82
- ## Active Agents ({{AGENT_COUNT}})
83
-
84
- ### Tier 1: Orchestrators
85
- {{#each TIER_1_AGENTS}}
86
- - **{{title}}** (`{{id}}`) {{#if always_active}}[Always Active]{{/if}}
87
- {{/each}}
88
-
89
- ### Tier 2: Domain Leaders
90
- {{#each TIER_2_AGENTS}}
91
- - **{{title}}** (`{{id}}`) - {{domains}}
92
- {{/each}}
93
-
94
- ### Tier 3: Specialists
95
- {{#each TIER_3_AGENTS}}
96
- - **{{title}}** (`{{id}}`) - Reports to `{{reports_to}}`
97
- {{/each}}
98
-
99
- ---
100
-
101
- ## Agent Teams Status
102
-
103
- {{#if AGENT_TEAMS_ENABLED}}
104
- ✅ **Enabled** (Display Mode: {{AGENT_TEAMS_DISPLAY_MODE}})
105
-
106
- **Spawn Thresholds:**
107
- - Complexity: {{AGENT_TEAMS_THRESHOLDS.complexity}}
108
- - Estimated Files: ≥ {{AGENT_TEAMS_THRESHOLDS.estimatedFiles}}
109
- - Active Agents: ≥ {{AGENT_TEAMS_THRESHOLDS.activeAgents}}
110
- - Multi-Domain: {{AGENT_TEAMS_THRESHOLDS.multiDomain}}
111
-
112
- {{else}}
113
- ❌ **Disabled** - Use single session with subagents
114
- {{/if}}
115
-
116
- ---
117
-
118
- ## Recent Checkpoints
119
-
120
- {{#each RECENT_CHECKPOINTS}}
121
- ### {{timestamp}}
122
- **Feature:** {{feature}}
123
- **Phase:** {{phase}}
124
- **Note:** {{note}}
125
-
126
- {{#if validation}}
127
- **Validation:** {{validation.passed}}/{{validation.total}} checks passed
128
- {{/if}}
129
-
130
- {{/each}}
131
-
132
- ---
133
-
134
- {{#if DEVOPS_ENABLED}}
135
- ## DevOps Integration
136
-
137
- **Organization:** {{DEVOPS_ORG}}
138
- **Project:** {{DEVOPS_PROJECT}}
139
-
140
- - **Boards:** {{#if DEVOPS_BOARDS_ENABLED}}Enabled ({{DEVOPS_AREA_PATH}}){{else}}Disabled{{/if}}
141
- - **Wiki:** {{#if DEVOPS_WIKI_ENABLED}}Enabled ({{DEVOPS_WIKI_NAME}}){{else}}Disabled{{/if}}
142
- - **Pipelines:** CI: {{DEVOPS_BUILD_PIPELINE}}, CD: {{DEVOPS_RELEASE_PIPELINE}}
143
-
144
- ---
145
-
146
- {{/if}}
147
-
148
- ## Quick Reference
149
-
150
- ### Workflow Commands
151
- ```bash
152
- # Detect agents for feature
153
- morph-spec detect-agents "{feature description}"
154
-
155
- # Initialize new feature
156
- morph-spec state init
157
-
158
- # Update design system (run morph-phase-uiux skill or edit manually)
159
- # .morph/context/design-system.md
160
-
161
- # Advance to next phase
162
- morph-spec phase advance {feature}
163
-
164
- # Mark task complete (runs validators)
165
- morph-spec task done {feature} {task-id}
166
-
167
- # Generate recap
168
- morph-spec generate recap {feature}
169
- ```
170
-
171
- ### Key Paths
172
- - **Outputs:** `.morph/features/{feature}/`
173
- - **Standards:** `.morph/context/` (project overrides)
174
- - **Config:** `.morph/config/config.json`
175
- - **State:** `.morph/state.json`
176
- - **Templates:** `.morph/framework/templates/`
177
-
178
- ---
179
-
180
- *Generated by MORPH-SPEC Framework v{{MORPH_VERSION}}*
1
+ # {{PROJECT_NAME}} - Project Context
2
+
3
+ > Auto-generated by MORPH-SPEC Framework
4
+ > Last updated: {{TIMESTAMP}}
5
+
6
+ ## Project Overview
7
+
8
+ **Name:** {{PROJECT_NAME}}
9
+ **Type:** {{PROJECT_TYPE}}
10
+ **Repository:** {{REPOSITORY_URL}}
11
+
12
+ {{PROJECT_DESCRIPTION}}
13
+
14
+ ---
15
+
16
+ ## Technology Stack
17
+
18
+ ### Frontend
19
+ {{#if NEXTJS_ENABLED}}- **Next.js** {{NEXTJS_VERSION}}{{/if}}
20
+ {{#if UI_LIBRARY}}- **UI Library:** {{UI_LIBRARY}}{{/if}}
21
+
22
+ ### Backend
23
+ - **.NET** {{DOTNET_VERSION}}
24
+ {{#if EF_VERSION}}- **Entity Framework Core** {{EF_VERSION}}{{/if}}
25
+ {{#if DAPPER_ENABLED}}- **Dapper** (Micro-ORM){{/if}}
26
+ {{#if HANGFIRE_ENABLED}}- **Hangfire** (Background Jobs){{/if}}
27
+ {{#if AGENT_FRAMEWORK_ENABLED}}- **Microsoft Agent Framework** (AI Agents){{/if}}
28
+
29
+ ### Database
30
+ {{#if SQL_ENABLED}}- **Azure SQL** ({{SQL_SERVER}}/{{SQL_DATABASE}}){{/if}}
31
+ {{#if NEON_ENABLED}}- **Neon** (PostgreSQL + Connection Pooling)
32
+ - Project: {{NEON_PROJECT_ID}}
33
+ - Region: {{NEON_REGION}}
34
+ {{/if}}
35
+
36
+ ### Infrastructure
37
+ {{#if AZURE_ENABLED}}- **Azure** ({{AZURE_LOCATION}})
38
+ {{#if CONTAINER_APPS_ENABLED}}- **Container Apps** ({{CONTAINER_ENV}}){{/if}}
39
+ {{#if OPENAI_ENABLED}}- **Azure OpenAI** ({{OPENAI_MODEL}}){{/if}}
40
+ {{#if MONITORING_ENABLED}}- **Application Insights** ({{APP_INSIGHTS}}){{/if}}
41
+ {{/if}}
42
+
43
+ {{#if EASYPANEL_ENABLED}}- **EasyPanel** (Docker Deployment)
44
+ - API: {{EASYPANEL_API_URL}}
45
+ - Web: {{EASYPANEL_WEB_URL}}
46
+ {{/if}}
47
+
48
+ ---
49
+
50
+ ## Active Features
51
+
52
+ {{#each ACTIVE_FEATURES}}
53
+ ### {{name}} ({{phase}})
54
+ **Status:** {{status}}
55
+ **Complexity:** {{complexity}}
56
+ **Active Agents:** {{activeAgents}}
57
+
58
+ {{#if description}}{{description}}{{/if}}
59
+
60
+ **Progress:**
61
+ - Tasks: {{tasks.completed}}/{{tasks.total}}
62
+ - Outputs: {{outputs}}
63
+
64
+ {{/each}}
65
+
66
+ ---
67
+
68
+ ## Project Standards
69
+
70
+ ### Coding Standards
71
+ {{#each PROJECT_STANDARDS}}
72
+ - [{{name}}]({{path}}){{#if description}} - {{description}}{{/if}}
73
+ {{/each}}
74
+
75
+ ### Inferred Patterns
76
+ {{#if INFERRED_STANDARDS}}
77
+ {{INFERRED_STANDARDS}}
78
+ {{/if}}
79
+
80
+ ---
81
+
82
+ ## Active Agents ({{AGENT_COUNT}})
83
+
84
+ ### Tier 1: Orchestrators
85
+ {{#each TIER_1_AGENTS}}
86
+ - **{{title}}** (`{{id}}`) {{#if always_active}}[Always Active]{{/if}}
87
+ {{/each}}
88
+
89
+ ### Tier 2: Domain Leaders
90
+ {{#each TIER_2_AGENTS}}
91
+ - **{{title}}** (`{{id}}`) - {{domains}}
92
+ {{/each}}
93
+
94
+ ### Tier 3: Specialists
95
+ {{#each TIER_3_AGENTS}}
96
+ - **{{title}}** (`{{id}}`) - Reports to `{{reports_to}}`
97
+ {{/each}}
98
+
99
+ ---
100
+
101
+ ## Agent Teams Status
102
+
103
+ {{#if AGENT_TEAMS_ENABLED}}
104
+ ✅ **Enabled** (Display Mode: {{AGENT_TEAMS_DISPLAY_MODE}})
105
+
106
+ **Spawn Thresholds:**
107
+ - Complexity: {{AGENT_TEAMS_THRESHOLDS.complexity}}
108
+ - Estimated Files: ≥ {{AGENT_TEAMS_THRESHOLDS.estimatedFiles}}
109
+ - Active Agents: ≥ {{AGENT_TEAMS_THRESHOLDS.activeAgents}}
110
+ - Multi-Domain: {{AGENT_TEAMS_THRESHOLDS.multiDomain}}
111
+
112
+ {{else}}
113
+ ❌ **Disabled** - Use single session with subagents
114
+ {{/if}}
115
+
116
+ ---
117
+
118
+ ## Recent Checkpoints
119
+
120
+ {{#each RECENT_CHECKPOINTS}}
121
+ ### {{timestamp}}
122
+ **Feature:** {{feature}}
123
+ **Phase:** {{phase}}
124
+ **Note:** {{note}}
125
+
126
+ {{#if validation}}
127
+ **Validation:** {{validation.passed}}/{{validation.total}} checks passed
128
+ {{/if}}
129
+
130
+ {{/each}}
131
+
132
+ ---
133
+
134
+ {{#if DEVOPS_ENABLED}}
135
+ ## DevOps Integration
136
+
137
+ **Organization:** {{DEVOPS_ORG}}
138
+ **Project:** {{DEVOPS_PROJECT}}
139
+
140
+ - **Boards:** {{#if DEVOPS_BOARDS_ENABLED}}Enabled ({{DEVOPS_AREA_PATH}}){{else}}Disabled{{/if}}
141
+ - **Wiki:** {{#if DEVOPS_WIKI_ENABLED}}Enabled ({{DEVOPS_WIKI_NAME}}){{else}}Disabled{{/if}}
142
+ - **Pipelines:** CI: {{DEVOPS_BUILD_PIPELINE}}, CD: {{DEVOPS_RELEASE_PIPELINE}}
143
+
144
+ ---
145
+
146
+ {{/if}}
147
+
148
+ ## Quick Reference
149
+
150
+ ### Workflow Commands
151
+ ```bash
152
+ # Check feature status and pending gates
153
+ morph-spec status {feature}
154
+ morph-spec approval-status {feature}
155
+
156
+ # Approve the current gate and scaffold the next phase folder in one step
157
+ morph-spec advance {feature}
158
+
159
+ # Validate feature outputs
160
+ morph-spec validate-feature {feature}
161
+
162
+ # Archive a finished feature (after Gate 3)
163
+ morph-spec archive {feature}
164
+ ```
165
+
166
+ > Feature work starts by asking Claude Code to implement something — the proposal
167
+ > phase is created for you. During the implement phase, task progress is tracked
168
+ > with the native `TaskCreate`/`TaskUpdate` tools and persisted by writing
169
+ > `tasks.json` (only `status`, `outputs`, `notes`); the recap is written by the
170
+ > implement skill. State syncs automatically via the `state-sync` hook.
171
+
172
+ ### Key Paths
173
+ - **Outputs:** `.morph/features/{feature}/`
174
+ - **Standards:** `.morph/context/` (project overrides)
175
+ - **Config:** `.morph/config/config.json`
176
+ - **State:** `.morph/state.json`
177
+ - **Templates:** `.morph/framework/templates/`
178
+
179
+ ---
180
+
181
+ *Generated by MORPH-SPEC Framework v{{MORPH_VERSION}}*
@@ -1,118 +1,122 @@
1
- # Onboarding Guide — {{PROJECT_NAME}}
2
-
3
- > Generated by MORPH-SPEC on {{DATE}}
4
-
5
- ---
6
-
7
- ## Project Overview
8
-
9
- - **Project:** {{PROJECT_NAME}}
10
- - **Stack:** {{STACK}}
11
- - **Architecture:** {{ARCHITECTURE}}
12
-
13
- ---
14
-
15
- ## Active Agents
16
-
17
- The following agents are configured for this project:
18
-
19
- {{AGENTS_LIST}}
20
-
21
- ---
22
-
23
- ## Available MCPs & Plugins
24
-
25
- {{AVAILABLE_MCPS}}
26
-
27
- ---
28
-
29
- ## Standards
30
-
31
- The following standards are enforced in this project:
32
-
33
- {{STANDARDS_SUMMARY}}
34
-
35
- Standards are located in:
36
- - `.morph/framework/standards/` — Framework standards (universal)
37
- - `.morph/context/` — Project-specific overrides
38
-
39
- ---
40
-
41
- ## Configured Workflow
42
-
43
- {{WORKFLOW_SUMMARY}}
44
-
45
- ### Available Workflows
46
-
47
- | Workflow | Description | Phases |
48
- |----------|-------------|--------|
49
- | fast-track | Simple, well-defined features | 0→1→2→4→5 |
50
- | standard | Most features | 0→1→(1.5)→2→3→4→5 |
51
- | full-morph | Complex features with sync | 0→1→1.5→2→3→4→5→6 |
52
- | design-impl | Pre-planned work | 2→4→5 |
53
- | ui-refresh | Visual redesigns | 1.5→2→5 |
54
-
55
- ---
56
-
57
- ## Key Commands
58
-
59
- ```bash
60
- # Start a feature
61
- # Just ask Claude Code to implement something
62
-
63
- # Check feature progress
64
- morph-spec status <feature>
65
-
66
- # Validate feature outputs
67
- morph-spec validate-feature <feature>
68
-
69
- # Manage tasks
70
- morph-spec task start <feature> <task-id>
71
- morph-spec task done <feature> <task-id>
72
-
73
- # Save a checkpoint
74
- morph-spec checkpoint-save <feature>
75
-
76
- # Health check
77
- morph-spec doctor
78
- ```
79
-
80
- ---
81
-
82
- ## Project Structure
83
-
84
- ```
85
- {{PROJECT_NAME}}/
86
- ├── CLAUDE.md # Claude Code instructions
87
- ├── .morph/
88
- │ ├── config/
89
- │ │ └── config.json # Project configuration
90
- │ ├── framework/
91
- │ │ ├── agents.json # Agent definitions
92
- │ │ ├── standards/ # Framework standards
93
- │ │ └── templates/ # Output templates
94
- │ ├── context/ # Project context & overrides
95
- │ └── features/{feature}/ # Feature outputs
96
- │ ├── 0-proposal/
97
- │ ├── 1-design/ # optional (UI-heavy features)
98
- │ ├── 2-plan/
99
- │ ├── 3-implement/
100
- │ └── 4-review/
101
- └── .claude/
102
- ├── commands/ # Slash commands
103
- ├── skills/ # Workflow skills
104
- └── settings.local.json # Hooks & permissions
105
- ```
106
-
107
- ---
108
-
109
- ## Getting Started
110
-
111
- 1. **Ask Claude Code** to implement a feature
112
- 2. **Follow the phases** — the framework guides you automatically
113
- 3. **Approve at pauses** — design and task breakdowns need your approval
114
- 4. **Check progress** with `morph-spec status <feature>`
115
-
116
- ---
117
-
118
- *Generated by MORPH-SPEC v{{VERSION}} — Polymorphism Tech*
1
+ # Onboarding Guide — {{PROJECT_NAME}}
2
+
3
+ > Generated by MORPH-SPEC on {{DATE}}
4
+
5
+ ---
6
+
7
+ ## Project Overview
8
+
9
+ - **Project:** {{PROJECT_NAME}}
10
+ - **Stack:** {{STACK}}
11
+ - **Architecture:** {{ARCHITECTURE}}
12
+
13
+ ---
14
+
15
+ ## Active Agents
16
+
17
+ The following agents are configured for this project:
18
+
19
+ {{AGENTS_LIST}}
20
+
21
+ ---
22
+
23
+ ## Available MCPs & Plugins
24
+
25
+ {{AVAILABLE_MCPS}}
26
+
27
+ ---
28
+
29
+ ## Standards
30
+
31
+ The following standards are enforced in this project:
32
+
33
+ {{STANDARDS_SUMMARY}}
34
+
35
+ Standards are located in:
36
+ - `.morph/framework/standards/` — Framework standards (universal)
37
+ - `.morph/context/` — Project-specific overrides
38
+
39
+ ---
40
+
41
+ ## Configured Workflow
42
+
43
+ {{WORKFLOW_SUMMARY}}
44
+
45
+ ### Available Workflows
46
+
47
+ | Workflow | Description | Phases |
48
+ |----------|-------------|--------|
49
+ | fast-track | Simple, well-defined features | 0→1→2→4→5 |
50
+ | standard | Most features | 0→1→(1.5)→2→3→4→5 |
51
+ | full-morph | Complex features with sync | 0→1→1.5→2→3→4→5→6 |
52
+ | design-impl | Pre-planned work | 2→4→5 |
53
+ | ui-refresh | Visual redesigns | 1.5→2→5 |
54
+
55
+ ---
56
+
57
+ ## Key Commands
58
+
59
+ ```bash
60
+ # Start a feature
61
+ # Just ask Claude Code to implement something
62
+
63
+ # Check feature progress
64
+ morph-spec status <feature>
65
+
66
+ # Validate feature outputs
67
+ morph-spec validate-feature <feature>
68
+
69
+ # Approve the current gate and scaffold the next phase folder
70
+ morph-spec advance <feature>
71
+
72
+ # Archive a finished feature (after Gate 3)
73
+ morph-spec archive <feature>
74
+
75
+ # Health check
76
+ morph-spec doctor
77
+ ```
78
+
79
+ > **Task tracking is native.** During the implement phase Claude tracks its own
80
+ > work with the `TaskCreate`/`TaskUpdate` tools and persists progress by writing
81
+ > `tasks.json` (only the `status`, `outputs`, and `notes` fields). State is synced
82
+ > automatically by the `state-sync` hook — task tracking is native, not a CLI command.
83
+
84
+ ---
85
+
86
+ ## Project Structure
87
+
88
+ ```
89
+ {{PROJECT_NAME}}/
90
+ ├── CLAUDE.md # Claude Code instructions
91
+ ├── .morph/
92
+ │ ├── config/
93
+ │ │ └── config.json # Project configuration
94
+ │ ├── framework/
95
+ │ │ ├── agents.json # Agent definitions
96
+ │ │ ├── standards/ # Framework standards
97
+ │ │ └── templates/ # Output templates
98
+ │ ├── context/ # Project context & overrides
99
+ │ └── features/{feature}/ # Feature outputs
100
+ │ ├── 0-proposal/
101
+ │ ├── 1-design/ # optional (UI-heavy features)
102
+ │ ├── 2-plan/
103
+ │ ├── 3-implement/
104
+ │ └── 4-review/
105
+ └── .claude/
106
+ ├── commands/ # Slash commands
107
+ ├── skills/ # Workflow skills
108
+ └── settings.local.json # Hooks & permissions
109
+ ```
110
+
111
+ ---
112
+
113
+ ## Getting Started
114
+
115
+ 1. **Ask Claude Code** to implement a feature
116
+ 2. **Follow the phases** — the framework guides you automatically
117
+ 3. **Approve at pauses** — design and task breakdowns need your approval
118
+ 4. **Check progress** with `morph-spec status <feature>`
119
+
120
+ ---
121
+
122
+ *Generated by MORPH-SPEC v{{VERSION}} — Polymorphism Tech*
@@ -21,6 +21,16 @@
21
21
 
22
22
  ---
23
23
 
24
+ ## Acceptance Criteria
25
+
26
+ Verifiable conditions that mean this feature is done:
27
+
28
+ - [ ] {Criterion 1 — observable / testable}
29
+ - [ ] {Criterion 2}
30
+ - [ ] {Criterion 3}
31
+
32
+ ---
33
+
24
34
  ## Problem Statement
25
35
 
26
36
  ### What is the problem?