@polymorphism-tech/morph-spec 4.13.0 → 4.15.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/CLAUDE.md +7 -7
- package/README.md +9 -7
- package/claude-plugin.json +1 -1
- package/docs/CHEATSHEET.md +6 -7
- package/docs/QUICKSTART.md +1 -1
- package/framework/agents/ai-agents/ai-system-architect.md +2 -0
- package/framework/agents/ai-agents/vector-search-expert.md +233 -0
- package/framework/agents/architecture/seo-growth-hacker.md +2 -0
- package/framework/agents/architecture/standards-architect.md +3 -0
- package/framework/agents/backend/dotnet-senior.md +3 -0
- package/framework/agents/backend/ef-modeler.md +2 -0
- package/framework/agents/backend/hangfire-orchestrator.md +2 -0
- package/framework/agents/backend/ms-agent-expert.md +2 -0
- package/framework/agents/backend/supabase-expert.md +256 -0
- package/framework/agents/frontend/css-specialist.md +2 -0
- package/framework/agents/frontend/nextjs-expert.md +3 -0
- package/framework/agents/frontend/ui-ux-designer.md +3 -1
- package/framework/agents/infrastructure/infra-architect.md +3 -0
- package/framework/agents/integrations/asaas-financial.md +2 -0
- package/framework/agents/integrations/clerk-auth.md +2 -0
- package/framework/agents/integrations/resend-email.md +2 -0
- package/framework/agents.json +1077 -1040
- package/framework/commands/morph-apply.md +0 -2
- package/framework/commands/morph-preflight.md +192 -247
- package/framework/commands/morph-proposal.md +210 -238
- package/framework/commands/morph-status.md +72 -92
- package/framework/phases.json +162 -162
- package/framework/skills/level-1-workflows/morph-phase-codebase-analysis/SKILL.md +1 -1
- package/framework/skills/level-1-workflows/morph-phase-design/SKILL.md +2 -2
- package/framework/skills/level-1-workflows/morph-phase-implement/SKILL.md +1 -1
- package/framework/skills/level-1-workflows/morph-phase-implement/prompts/code-quality-reviewer-prompt.md +1 -1
- package/framework/skills/level-1-workflows/morph-phase-plan/SKILL.md +1 -1
- package/framework/skills/level-1-workflows/morph-phase-tasks/SKILL.md +1 -1
- package/framework/skills/level-1-workflows/morph-phase-tasks/references/task-planning-patterns.md +143 -170
- package/framework/skills/level-1-workflows/morph-phase-uiux/SKILL.md +1 -1
- package/framework/skills/level-1-workflows/morph-scope-escalation/SKILL.md +1 -1
- package/package.json +1 -1
- package/src/utils/agents-installer.js +58 -18
- package/framework/agents/integrations/hangfire-integration.md +0 -69
package/framework/phases.json
CHANGED
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.0.0",
|
|
3
|
-
"phases": {
|
|
4
|
-
"proposal": {
|
|
5
|
-
"id": "proposal",
|
|
6
|
-
"index": 0,
|
|
7
|
-
"folder": "0-proposal",
|
|
8
|
-
"displayName": "Proposal",
|
|
9
|
-
"goals": [
|
|
10
|
-
"Understand the feature scope",
|
|
11
|
-
"Agree on high-level approach",
|
|
12
|
-
"Produce initial proposal document"
|
|
13
|
-
],
|
|
14
|
-
"requiredOutputs": ["proposal"],
|
|
15
|
-
"optionalOutputs": [],
|
|
16
|
-
"recommendedMCPs": ["context7"],
|
|
17
|
-
"pausePoints": [
|
|
18
|
-
{ "id": "proposal", "label": "Approve Proposal" }
|
|
19
|
-
],
|
|
20
|
-
"agentTiers": [1],
|
|
21
|
-
"requiredSkills": [
|
|
22
|
-
{ "trigger": "beforePhaseStart", "skill": "morph-brainstorming" }
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
"uiux": {
|
|
26
|
-
"id": "uiux",
|
|
27
|
-
"index":
|
|
28
|
-
"folder": "1-ui",
|
|
29
|
-
"displayName": "UI/UX Design",
|
|
30
|
-
"optional": true,
|
|
31
|
-
"goals": [
|
|
32
|
-
"Define visual design and design system",
|
|
33
|
-
"Create component inventory and style guide",
|
|
34
|
-
"Produce wireframes and user flows"
|
|
35
|
-
],
|
|
36
|
-
"requiredOutputs": ["uiDesignSystem"],
|
|
37
|
-
"optionalOutputs": ["uiMockups", "uiComponents", "uiFlows"],
|
|
38
|
-
"recommendedMCPs": ["playwright", "context7"],
|
|
39
|
-
"pausePoints": [
|
|
40
|
-
{ "id": "uiux", "label": "Approve UI/UX Design" }
|
|
41
|
-
],
|
|
42
|
-
"agentTiers": [1, 2, 3],
|
|
43
|
-
"requiredSkills": [
|
|
44
|
-
{ "trigger": "beforeArchitecturalDecision", "skill": "morph-brainstorming" },
|
|
45
|
-
{ "trigger": "beforePhaseComplete", "skill": "morph-frontend-review" }
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"design": {
|
|
49
|
-
"id": "design",
|
|
50
|
-
"index":
|
|
51
|
-
"folder": "2-design",
|
|
52
|
-
"displayName": "Technical Design",
|
|
53
|
-
"goals": [
|
|
54
|
-
"Write technical specification",
|
|
55
|
-
"Define
|
|
56
|
-
"Analyse schema changes",
|
|
57
|
-
"Document architectural decisions"
|
|
58
|
-
],
|
|
59
|
-
"requiredOutputs": ["spec", "contracts"],
|
|
60
|
-
"optionalOutputs": ["schemaAnalysis", "decisions"],
|
|
61
|
-
"recommendedMCPs": ["context7", "github"],
|
|
62
|
-
"pausePoints": [
|
|
63
|
-
{ "id": "design", "label": "Approve Design Spec" }
|
|
64
|
-
],
|
|
65
|
-
"agentTiers": [1, 2, 3, 4],
|
|
66
|
-
"requiredSkills": [
|
|
67
|
-
{ "trigger": "beforePhaseStart", "skill": "morph-phase-design" },
|
|
68
|
-
{ "trigger": "beforePhaseStart", "skill": "morph-phase-codebase-analysis" },
|
|
69
|
-
{ "trigger": "beforeArchitecturalDecision", "skill": "morph-brainstorming" },
|
|
70
|
-
{ "trigger": "onExternalServiceIntegration", "skill": "morph-simulation-checklist" },
|
|
71
|
-
{ "trigger": "beforePhaseComplete", "skill": "morph-verification-before-completion" }
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
"plan": {
|
|
75
|
-
"id": "plan",
|
|
76
|
-
"index":
|
|
77
|
-
"folder": "3-plan",
|
|
78
|
-
"displayName": "Implementation Plan",
|
|
79
|
-
"goals": [
|
|
80
|
-
"Create detailed implementation plan with exact file paths and code",
|
|
81
|
-
"Define bite-sized TDD tasks with test-first approach",
|
|
82
|
-
"Establish execution strategy based on project analysis"
|
|
83
|
-
],
|
|
84
|
-
"requiredOutputs": ["plan"],
|
|
85
|
-
"optionalOutputs": [],
|
|
86
|
-
"recommendedMCPs": ["context7", "github"],
|
|
87
|
-
"pausePoints": [
|
|
88
|
-
{ "id": "plan", "label": "Approve Implementation Plan" }
|
|
89
|
-
],
|
|
90
|
-
"agentTiers": [1, 2],
|
|
91
|
-
"requiredSkills": [
|
|
92
|
-
{ "trigger": "beforePhaseStart", "skill": "morph-phase-plan" },
|
|
93
|
-
{ "trigger": "beforePhaseComplete", "skill": "morph-verification-before-completion" }
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
"tasks": {
|
|
97
|
-
"id": "tasks",
|
|
98
|
-
"index":
|
|
99
|
-
"folder": "4-tasks",
|
|
100
|
-
"displayName": "Task Breakdown",
|
|
101
|
-
"goals": [
|
|
102
|
-
"Break approved spec into numbered, atomic tasks",
|
|
103
|
-
"Order tasks by dependency",
|
|
104
|
-
"Assign tasks to agent tiers"
|
|
105
|
-
],
|
|
106
|
-
"requiredOutputs": ["tasks"],
|
|
107
|
-
"optionalOutputs": [],
|
|
108
|
-
"recommendedMCPs": ["context7", "github"],
|
|
109
|
-
"pausePoints": [
|
|
110
|
-
{ "id": "tasks", "label": "Approve Task List" }
|
|
111
|
-
],
|
|
112
|
-
"agentTiers": [1, 2, 3],
|
|
113
|
-
"requiredSkills": [
|
|
114
|
-
{ "trigger": "onParallelTasksIdentified", "skill": "superpowers:dispatching-parallel-agents" },
|
|
115
|
-
{ "trigger": "beforePhaseComplete", "skill": "morph-verification-before-completion" }
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
"implement": {
|
|
119
|
-
"id": "implement",
|
|
120
|
-
"index":
|
|
121
|
-
"folder": "5-implement",
|
|
122
|
-
"displayName": "Implementation",
|
|
123
|
-
"goals": [
|
|
124
|
-
"Execute approved tasks in order",
|
|
125
|
-
"Follow framework standards at each step",
|
|
126
|
-
"Checkpoint every 3 tasks",
|
|
127
|
-
"Write implementation recap"
|
|
128
|
-
],
|
|
129
|
-
"requiredOutputs": ["recap"],
|
|
130
|
-
"optionalOutputs": [],
|
|
131
|
-
"recommendedMCPs": ["context7", "playwright", "github", "vercel"],
|
|
132
|
-
"pausePoints": [],
|
|
133
|
-
"agentTiers": [1, 2, 3, 4],
|
|
134
|
-
"requiredSkills": [
|
|
135
|
-
{ "trigger": "beforeEachTask", "skill": "superpowers:test-driven-development" },
|
|
136
|
-
{ "trigger": "beforeTaskDone", "skill": "morph-verification-before-completion" },
|
|
137
|
-
{ "trigger": "onBugOrUnexpected", "skill": "superpowers:systematic-debugging" },
|
|
138
|
-
{ "trigger": "afterAllTasks", "skill": "morph-post-implementation" },
|
|
139
|
-
{ "trigger": "afterAllTasks", "skill": "superpowers:requesting-code-review" },
|
|
140
|
-
{ "trigger": "beforePR", "skill": "morph-checklist" }
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
"sync": {
|
|
144
|
-
"id": "sync",
|
|
145
|
-
"index":
|
|
146
|
-
"folder": null,
|
|
147
|
-
"displayName": "Sync Standards",
|
|
148
|
-
"optional": true,
|
|
149
|
-
"goals": [
|
|
150
|
-
"Update framework standards from feature learnings",
|
|
151
|
-
"Capture new patterns to learning library",
|
|
152
|
-
"Archive completed feature"
|
|
153
|
-
],
|
|
154
|
-
"requiredOutputs": [],
|
|
155
|
-
"optionalOutputs": [],
|
|
156
|
-
"recommendedMCPs": [],
|
|
157
|
-
"pausePoints": [],
|
|
158
|
-
"agentTiers": [1],
|
|
159
|
-
"requiredSkills": []
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"phases": {
|
|
4
|
+
"proposal": {
|
|
5
|
+
"id": "proposal",
|
|
6
|
+
"index": 0,
|
|
7
|
+
"folder": "0-proposal",
|
|
8
|
+
"displayName": "Proposal",
|
|
9
|
+
"goals": [
|
|
10
|
+
"Understand the feature scope",
|
|
11
|
+
"Agree on high-level approach",
|
|
12
|
+
"Produce initial proposal document"
|
|
13
|
+
],
|
|
14
|
+
"requiredOutputs": ["proposal"],
|
|
15
|
+
"optionalOutputs": [],
|
|
16
|
+
"recommendedMCPs": ["context7"],
|
|
17
|
+
"pausePoints": [
|
|
18
|
+
{ "id": "proposal", "label": "Approve Proposal" }
|
|
19
|
+
],
|
|
20
|
+
"agentTiers": [1],
|
|
21
|
+
"requiredSkills": [
|
|
22
|
+
{ "trigger": "beforePhaseStart", "skill": "morph-brainstorming" }
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"uiux": {
|
|
26
|
+
"id": "uiux",
|
|
27
|
+
"index": 1,
|
|
28
|
+
"folder": "1-ui",
|
|
29
|
+
"displayName": "UI/UX Design",
|
|
30
|
+
"optional": true,
|
|
31
|
+
"goals": [
|
|
32
|
+
"Define visual design and design system",
|
|
33
|
+
"Create component inventory and style guide",
|
|
34
|
+
"Produce wireframes and user flows"
|
|
35
|
+
],
|
|
36
|
+
"requiredOutputs": ["uiDesignSystem"],
|
|
37
|
+
"optionalOutputs": ["uiMockups", "uiComponents", "uiFlows"],
|
|
38
|
+
"recommendedMCPs": ["playwright", "context7"],
|
|
39
|
+
"pausePoints": [
|
|
40
|
+
{ "id": "uiux", "label": "Approve UI/UX Design" }
|
|
41
|
+
],
|
|
42
|
+
"agentTiers": [1, 2, 3],
|
|
43
|
+
"requiredSkills": [
|
|
44
|
+
{ "trigger": "beforeArchitecturalDecision", "skill": "morph-brainstorming" },
|
|
45
|
+
{ "trigger": "beforePhaseComplete", "skill": "morph-frontend-review" }
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"design": {
|
|
49
|
+
"id": "design",
|
|
50
|
+
"index": 2,
|
|
51
|
+
"folder": "2-design",
|
|
52
|
+
"displayName": "Technical Design",
|
|
53
|
+
"goals": [
|
|
54
|
+
"Write technical specification",
|
|
55
|
+
"Define contracts and interfaces",
|
|
56
|
+
"Analyse schema changes",
|
|
57
|
+
"Document architectural decisions"
|
|
58
|
+
],
|
|
59
|
+
"requiredOutputs": ["spec", "contracts"],
|
|
60
|
+
"optionalOutputs": ["schemaAnalysis", "decisions"],
|
|
61
|
+
"recommendedMCPs": ["context7", "github"],
|
|
62
|
+
"pausePoints": [
|
|
63
|
+
{ "id": "design", "label": "Approve Design Spec" }
|
|
64
|
+
],
|
|
65
|
+
"agentTiers": [1, 2, 3, 4],
|
|
66
|
+
"requiredSkills": [
|
|
67
|
+
{ "trigger": "beforePhaseStart", "skill": "morph-phase-design" },
|
|
68
|
+
{ "trigger": "beforePhaseStart", "skill": "morph-phase-codebase-analysis" },
|
|
69
|
+
{ "trigger": "beforeArchitecturalDecision", "skill": "morph-brainstorming" },
|
|
70
|
+
{ "trigger": "onExternalServiceIntegration", "skill": "morph-simulation-checklist" },
|
|
71
|
+
{ "trigger": "beforePhaseComplete", "skill": "morph-verification-before-completion" }
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"plan": {
|
|
75
|
+
"id": "plan",
|
|
76
|
+
"index": 3,
|
|
77
|
+
"folder": "3-plan",
|
|
78
|
+
"displayName": "Implementation Plan",
|
|
79
|
+
"goals": [
|
|
80
|
+
"Create detailed implementation plan with exact file paths and code",
|
|
81
|
+
"Define bite-sized TDD tasks with test-first approach",
|
|
82
|
+
"Establish execution strategy based on project analysis"
|
|
83
|
+
],
|
|
84
|
+
"requiredOutputs": ["plan"],
|
|
85
|
+
"optionalOutputs": [],
|
|
86
|
+
"recommendedMCPs": ["context7", "github"],
|
|
87
|
+
"pausePoints": [
|
|
88
|
+
{ "id": "plan", "label": "Approve Implementation Plan" }
|
|
89
|
+
],
|
|
90
|
+
"agentTiers": [1, 2],
|
|
91
|
+
"requiredSkills": [
|
|
92
|
+
{ "trigger": "beforePhaseStart", "skill": "morph-phase-plan" },
|
|
93
|
+
{ "trigger": "beforePhaseComplete", "skill": "morph-verification-before-completion" }
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"tasks": {
|
|
97
|
+
"id": "tasks",
|
|
98
|
+
"index": 4,
|
|
99
|
+
"folder": "4-tasks",
|
|
100
|
+
"displayName": "Task Breakdown",
|
|
101
|
+
"goals": [
|
|
102
|
+
"Break approved spec into numbered, atomic tasks",
|
|
103
|
+
"Order tasks by dependency",
|
|
104
|
+
"Assign tasks to agent tiers"
|
|
105
|
+
],
|
|
106
|
+
"requiredOutputs": ["tasks"],
|
|
107
|
+
"optionalOutputs": [],
|
|
108
|
+
"recommendedMCPs": ["context7", "github"],
|
|
109
|
+
"pausePoints": [
|
|
110
|
+
{ "id": "tasks", "label": "Approve Task List" }
|
|
111
|
+
],
|
|
112
|
+
"agentTiers": [1, 2, 3],
|
|
113
|
+
"requiredSkills": [
|
|
114
|
+
{ "trigger": "onParallelTasksIdentified", "skill": "superpowers:dispatching-parallel-agents" },
|
|
115
|
+
{ "trigger": "beforePhaseComplete", "skill": "morph-verification-before-completion" }
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"implement": {
|
|
119
|
+
"id": "implement",
|
|
120
|
+
"index": 5,
|
|
121
|
+
"folder": "5-implement",
|
|
122
|
+
"displayName": "Implementation",
|
|
123
|
+
"goals": [
|
|
124
|
+
"Execute approved tasks in order",
|
|
125
|
+
"Follow framework standards at each step",
|
|
126
|
+
"Checkpoint every 3 tasks",
|
|
127
|
+
"Write implementation recap"
|
|
128
|
+
],
|
|
129
|
+
"requiredOutputs": ["recap"],
|
|
130
|
+
"optionalOutputs": [],
|
|
131
|
+
"recommendedMCPs": ["context7", "playwright", "github", "vercel"],
|
|
132
|
+
"pausePoints": [],
|
|
133
|
+
"agentTiers": [1, 2, 3, 4],
|
|
134
|
+
"requiredSkills": [
|
|
135
|
+
{ "trigger": "beforeEachTask", "skill": "superpowers:test-driven-development" },
|
|
136
|
+
{ "trigger": "beforeTaskDone", "skill": "morph-verification-before-completion" },
|
|
137
|
+
{ "trigger": "onBugOrUnexpected", "skill": "superpowers:systematic-debugging" },
|
|
138
|
+
{ "trigger": "afterAllTasks", "skill": "morph-post-implementation" },
|
|
139
|
+
{ "trigger": "afterAllTasks", "skill": "superpowers:requesting-code-review" },
|
|
140
|
+
{ "trigger": "beforePR", "skill": "morph-checklist" }
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"sync": {
|
|
144
|
+
"id": "sync",
|
|
145
|
+
"index": 6,
|
|
146
|
+
"folder": null,
|
|
147
|
+
"displayName": "Sync Standards",
|
|
148
|
+
"optional": true,
|
|
149
|
+
"goals": [
|
|
150
|
+
"Update framework standards from feature learnings",
|
|
151
|
+
"Capture new patterns to learning library",
|
|
152
|
+
"Archive completed feature"
|
|
153
|
+
],
|
|
154
|
+
"requiredOutputs": [],
|
|
155
|
+
"optionalOutputs": [],
|
|
156
|
+
"recommendedMCPs": [],
|
|
157
|
+
"pausePoints": [],
|
|
158
|
+
"agentTiers": [1],
|
|
159
|
+
"requiredSkills": []
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -3,7 +3,7 @@ name: morph-phase-codebase-analysis
|
|
|
3
3
|
description: MORPH-SPEC Design sub-phase that analyzes existing codebase and database schema, producing schema-analysis.md with real column names, types, relationships, and field mismatches. Use at the start of Design phase before generating contracts.cs to prevent incorrect field names or types.
|
|
4
4
|
user-invocable: false
|
|
5
5
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
6
|
-
cliVersion: "4.
|
|
6
|
+
cliVersion: "4.15.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# MORPH Codebase Analysis - Design Sub-phase
|
|
@@ -4,10 +4,10 @@ description: MORPH-SPEC Phase 2 (Design). Schema-first interactive design: reads
|
|
|
4
4
|
argument-hint: "[feature-name]"
|
|
5
5
|
user-invocable: false
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion, Agent
|
|
7
|
-
cliVersion: "4.
|
|
7
|
+
cliVersion: "4.15.0"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
# MORPH Design — Phase
|
|
10
|
+
# MORPH Design — Phase 2
|
|
11
11
|
|
|
12
12
|
> INTERNAL: Workflow skill used by /morph-proposal during automated phase orchestration. Not a user command.
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ Read these before reviewing:
|
|
|
16
16
|
## Review Checklist
|
|
17
17
|
|
|
18
18
|
1. **Naming Conventions** — PascalCase for types, camelCase for variables, kebab-case for files (or as defined in standards)
|
|
19
|
-
2. **Architecture Compliance** — Code follows the project's architecture pattern (
|
|
19
|
+
2. **Architecture Compliance** — Code follows the project's VSA architecture pattern (Handler + Validator + Endpoint per feature folder)
|
|
20
20
|
3. **Async Patterns** — CancellationToken propagated, no fire-and-forget, proper await
|
|
21
21
|
4. **Error Handling** — Appropriate exceptions, no swallowed errors, consistent patterns
|
|
22
22
|
5. **Security** — No hardcoded secrets, SQL injection, XSS vectors, or OWASP top 10 issues
|
|
@@ -4,7 +4,7 @@ description: MORPH-SPEC Phase 3 (Plan). Generates a detailed implementation plan
|
|
|
4
4
|
argument-hint: "[feature-name]"
|
|
5
5
|
user-invocable: false
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
7
|
-
cliVersion: "4.
|
|
7
|
+
cliVersion: "4.15.0"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# MORPH Plan — Phase 3
|
|
@@ -4,7 +4,7 @@ description: MORPH-SPEC Phase 4 (Tasks). Breaks approved spec into bottom-up ord
|
|
|
4
4
|
argument-hint: "[feature-name]"
|
|
5
5
|
user-invocable: false
|
|
6
6
|
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
7
|
-
cliVersion: "4.
|
|
7
|
+
cliVersion: "4.15.0"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# MORPH Tasks — Phase 4
|