@polymorphism-tech/morph-spec 7.4.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 (49) hide show
  1. package/README.md +2 -2
  2. package/bin/morph-spec.js +18 -0
  3. package/claude-plugin.json +1 -1
  4. package/docs/CHEATSHEET.md +1 -1
  5. package/docs/QUICKSTART.md +1 -1
  6. package/framework/CLAUDE.md +9 -4
  7. package/framework/MORPH.md +4 -4
  8. package/framework/commands/create-umbraco-lp.md +35 -0
  9. package/framework/commands/migrate-lp-to-umbraco.md +33 -0
  10. package/framework/commands/morph-archive.md +17 -27
  11. package/framework/hooks/claude-code/core/enforce-phase-writes.js +115 -90
  12. package/framework/hooks/claude-code/core/protect-spec-files.js +32 -30
  13. package/framework/hooks/claude-code/core/state-sync.js +16 -48
  14. package/framework/hooks/shared/state-reader.js +74 -8
  15. package/framework/hooks/shared/state-writer.js +124 -0
  16. package/framework/rules/morph-task-tracking.md +69 -49
  17. package/framework/rules/morph-workflow.md +192 -191
  18. package/framework/skills/core/create-umbraco-lp/SKILL.md +252 -0
  19. package/framework/skills/core/migrate-lp-to-umbraco/SKILL.md +452 -0
  20. package/framework/skills/core/morph-apply/SKILL.md +15 -15
  21. package/framework/skills/core/morph-brainstorming/SKILL.md +5 -5
  22. package/framework/skills/core/morph-eval/SKILL.md +1 -1
  23. package/framework/skills/core/morph-implement/SKILL.md +5 -4
  24. package/framework/skills/core/morph-plan/SKILL.md +6 -6
  25. package/framework/skills/core/morph-proposal/SKILL.md +8 -7
  26. package/framework/skills/core/morph-review/SKILL.md +3 -3
  27. package/framework/skills/core/morph-stack-scan/SKILL.md +1 -1
  28. package/framework/skills/core/morph-standards/SKILL.md +1 -1
  29. package/framework/templates/REGISTRY.json +1 -3
  30. package/framework/templates/context/CONTEXT-FEATURE.md +10 -17
  31. package/framework/templates/context/CONTEXT.md +181 -180
  32. package/framework/templates/docs/onboarding.md +122 -118
  33. package/framework/templates/docs/proposal.md +10 -0
  34. package/framework/templates/docs/spec.md +228 -228
  35. package/framework/templates/meta-prompts/parallel-workers/parallel-worker.md +80 -80
  36. package/framework/templates/meta-prompts/squad-leaders/backend-squad.md +90 -89
  37. package/framework/templates/meta-prompts/squad-leaders/frontend-squad.md +2 -1
  38. package/framework/templates/meta-prompts/squad-leaders/squad-leader.md +44 -43
  39. package/framework/templates/meta-prompts/validators/checkpoint-validator.md +107 -107
  40. package/package.json +1 -1
  41. package/src/commands/project/update.js +415 -368
  42. package/src/commands/project/worktree.js +212 -210
  43. package/src/commands/state/advance.js +82 -0
  44. package/src/commands/state/archive.js +111 -0
  45. package/src/commands/validation/validate-feature.js +229 -105
  46. package/src/core/state/state-manager.js +238 -66
  47. package/src/dashboard/scanner/state-scanner.js +35 -8
  48. package/src/lib/generators/context-generator.js +12 -8
  49. package/src/utils/file-copier.js +7 -0
@@ -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?