@polymorphism-tech/morph-spec 7.4.0 → 7.6.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/agents.json +1 -1
- 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/commands/morph-preflight.md +10 -5
- 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/infrastructure-standards.md +4 -4
- 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 +272 -0
- package/framework/skills/core/migrate-lp-to-umbraco/SKILL.md +531 -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/standards/STANDARDS.json +80 -8
- package/framework/standards/ai-agents/durable-workflows-hitl.md +191 -0
- package/framework/standards/ai-agents/rag-custom-pgvector.md +246 -243
- package/framework/standards/ai-agents/setup.md +3 -0
- package/framework/standards/ai-agents/vector-data-extensions.md +170 -0
- package/framework/standards/ai-agents/workflows.md +190 -187
- package/framework/standards/infrastructure/docker/{easypanel-deploy.md → coolify-deploy.md} +49 -20
- package/framework/templates/README.md +7 -7
- package/framework/templates/REGISTRY.json +15 -17
- 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 +12 -2
- package/framework/templates/docs/spec.md +228 -228
- package/framework/templates/frontend/nextjs/Dockerfile.nextjs.hbs +1 -1
- package/framework/templates/infrastructure/docker/coolify.template.json +49 -0
- package/framework/templates/infrastructure/github/README.md +6 -6
- package/framework/templates/infrastructure/github/workflows/deploy-coolify.yml.hbs +33 -0
- 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
- package/framework/templates/infrastructure/docker/easypanel.template.json +0 -46
- package/framework/templates/infrastructure/github/workflows/deploy-easypanel.yml.hbs +0 -31
|
@@ -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
|
|
44
|
-
-
|
|
45
|
-
-
|
|
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
|
-
#
|
|
153
|
-
morph-spec
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
#
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
- **
|
|
174
|
-
- **
|
|
175
|
-
- **
|
|
176
|
-
- **
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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 COOLIFY_ENABLED}}- **Coolify** (Docker Deployment via SSH)
|
|
44
|
+
- Server: {{COOLIFY_SERVER}}
|
|
45
|
+
- App: {{COOLIFY_APP_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
|
-
#
|
|
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?
|
|
@@ -60,7 +70,7 @@
|
|
|
60
70
|
| **Database** | Neon (PostgreSQL + RLS) | {tables, policies, storage} |
|
|
61
71
|
| **Backend API** | .NET 10 Minimal API | {endpoints, business logic} |
|
|
62
72
|
| **Frontend** | Next.js 15 (App Router) | {pages, components, auth} |
|
|
63
|
-
| **Infra** |
|
|
73
|
+
| **Infra** | Coolify + Docker | {deployment, SSL} |
|
|
64
74
|
{{/if}}
|
|
65
75
|
|
|
66
76
|
### User Journey
|
|
@@ -80,7 +90,7 @@
|
|
|
80
90
|
| Resource | Provider | Monthly Cost | Notes |
|
|
81
91
|
|----------|----------|-------------|-------|
|
|
82
92
|
| Neon | Free / Launch | $0 - $19 | {DB, Connection Pooling, Branching} |
|
|
83
|
-
| VPS (
|
|
93
|
+
| VPS (Coolify) | {provider} | ${X} | {API + Web containers} |
|
|
84
94
|
| External APIs | {provider} | ${X} | {if applicable} |
|
|
85
95
|
| **Total** | | **${X}/month** | |
|
|
86
96
|
|