@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.
- package/README.md +2 -2
- package/bin/morph-spec.js +18 -0
- package/claude-plugin.json +1 -1
- package/docs/CHEATSHEET.md +1 -1
- package/docs/QUICKSTART.md +1 -1
- package/framework/CLAUDE.md +9 -4
- package/framework/MORPH.md +4 -4
- package/framework/commands/create-umbraco-lp.md +35 -0
- package/framework/commands/migrate-lp-to-umbraco.md +33 -0
- package/framework/commands/morph-archive.md +17 -27
- package/framework/hooks/claude-code/core/enforce-phase-writes.js +115 -90
- package/framework/hooks/claude-code/core/protect-spec-files.js +32 -30
- package/framework/hooks/claude-code/core/state-sync.js +16 -48
- package/framework/hooks/shared/state-reader.js +74 -8
- package/framework/hooks/shared/state-writer.js +124 -0
- package/framework/rules/morph-task-tracking.md +69 -49
- package/framework/rules/morph-workflow.md +192 -191
- package/framework/skills/core/create-umbraco-lp/SKILL.md +252 -0
- package/framework/skills/core/migrate-lp-to-umbraco/SKILL.md +452 -0
- package/framework/skills/core/morph-apply/SKILL.md +15 -15
- package/framework/skills/core/morph-brainstorming/SKILL.md +5 -5
- package/framework/skills/core/morph-eval/SKILL.md +1 -1
- package/framework/skills/core/morph-implement/SKILL.md +5 -4
- package/framework/skills/core/morph-plan/SKILL.md +6 -6
- package/framework/skills/core/morph-proposal/SKILL.md +8 -7
- package/framework/skills/core/morph-review/SKILL.md +3 -3
- package/framework/skills/core/morph-stack-scan/SKILL.md +1 -1
- package/framework/skills/core/morph-standards/SKILL.md +1 -1
- package/framework/templates/REGISTRY.json +1 -3
- package/framework/templates/context/CONTEXT-FEATURE.md +10 -17
- package/framework/templates/context/CONTEXT.md +181 -180
- package/framework/templates/docs/onboarding.md +122 -118
- package/framework/templates/docs/proposal.md +10 -0
- package/framework/templates/docs/spec.md +228 -228
- package/framework/templates/meta-prompts/parallel-workers/parallel-worker.md +80 -80
- package/framework/templates/meta-prompts/squad-leaders/backend-squad.md +90 -89
- package/framework/templates/meta-prompts/squad-leaders/frontend-squad.md +2 -1
- package/framework/templates/meta-prompts/squad-leaders/squad-leader.md +44 -43
- package/framework/templates/meta-prompts/validators/checkpoint-validator.md +107 -107
- package/package.json +1 -1
- package/src/commands/project/update.js +415 -368
- package/src/commands/project/worktree.js +212 -210
- package/src/commands/state/advance.js +82 -0
- package/src/commands/state/archive.js +111 -0
- package/src/commands/validation/validate-feature.js +229 -105
- package/src/core/state/state-manager.js +238 -66
- package/src/dashboard/scanner/state-scanner.js +35 -8
- package/src/lib/generators/context-generator.js +12 -8
- 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
|
-
#
|
|
70
|
-
morph-spec
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
│
|
|
93
|
-
│ │ └──
|
|
94
|
-
│ ├──
|
|
95
|
-
│
|
|
96
|
-
│
|
|
97
|
-
│
|
|
98
|
-
│
|
|
99
|
-
│
|
|
100
|
-
│
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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?
|