antigravity-ai-kit 2.1.0 → 3.0.1
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/.agent/README.md +4 -4
- package/.agent/agents/README.md +16 -12
- package/.agent/agents/architect.md +1 -0
- package/.agent/agents/backend-specialist.md +11 -0
- package/.agent/agents/code-reviewer.md +1 -0
- package/.agent/agents/database-architect.md +11 -0
- package/.agent/agents/devops-engineer.md +11 -0
- package/.agent/agents/e2e-runner.md +1 -0
- package/.agent/agents/explorer-agent.md +11 -0
- package/.agent/agents/frontend-specialist.md +11 -0
- package/.agent/agents/mobile-developer.md +11 -0
- package/.agent/agents/performance-optimizer.md +11 -0
- package/.agent/agents/planner.md +1 -0
- package/.agent/agents/refactor-cleaner.md +1 -0
- package/.agent/agents/reliability-engineer.md +11 -0
- package/.agent/agents/security-reviewer.md +1 -0
- package/.agent/agents/sprint-orchestrator.md +10 -0
- package/.agent/agents/tdd-guide.md +1 -0
- package/.agent/commands/code-review.md +1 -0
- package/.agent/commands/debug.md +1 -0
- package/.agent/commands/deploy.md +1 -0
- package/.agent/commands/help.md +252 -31
- package/.agent/commands/plan.md +1 -0
- package/.agent/commands/status.md +1 -0
- package/.agent/commands/tdd.md +1 -0
- package/.agent/contexts/brainstorm.md +26 -0
- package/.agent/contexts/debug.md +28 -0
- package/.agent/contexts/implement.md +29 -0
- package/.agent/contexts/review.md +27 -0
- package/.agent/contexts/ship.md +28 -0
- package/.agent/engine/identity.json +13 -0
- package/.agent/engine/loading-rules.json +23 -1
- package/.agent/engine/marketplace-index.json +29 -0
- package/.agent/engine/reliability-config.json +14 -0
- package/.agent/engine/sdlc-map.json +44 -0
- package/.agent/engine/workflow-state.json +28 -2
- package/.agent/hooks/hooks.json +27 -25
- package/.agent/manifest.json +12 -4
- package/.agent/rules.md +2 -1
- package/.agent/skills/README.md +10 -5
- package/.agent/skills/i18n-localization/SKILL.md +191 -0
- package/.agent/skills/mcp-integration/SKILL.md +224 -0
- package/.agent/skills/parallel-agents/SKILL.md +1 -1
- package/.agent/skills/shell-conventions/SKILL.md +92 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +557 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +68 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +253 -0
- package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +114 -0
- package/.agent/templates/adr-template.md +32 -0
- package/.agent/templates/bug-report.md +37 -0
- package/.agent/templates/feature-request.md +32 -0
- package/.agent/workflows/README.md +92 -78
- package/.agent/workflows/brainstorm.md +154 -100
- package/.agent/workflows/create.md +142 -75
- package/.agent/workflows/debug.md +157 -98
- package/.agent/workflows/deploy.md +195 -144
- package/.agent/workflows/enhance.md +157 -65
- package/.agent/workflows/orchestrate.md +171 -114
- package/.agent/workflows/plan.md +147 -72
- package/.agent/workflows/preview.md +140 -83
- package/.agent/workflows/quality-gate.md +196 -0
- package/.agent/workflows/retrospective.md +197 -0
- package/.agent/workflows/review.md +188 -0
- package/.agent/workflows/status.md +142 -91
- package/.agent/workflows/test.md +168 -95
- package/.agent/workflows/ui-ux-pro-max.md +181 -127
- package/README.md +215 -78
- package/bin/ag-kit.js +344 -10
- package/lib/agent-registry.js +214 -0
- package/lib/agent-reputation.js +351 -0
- package/lib/cli-commands.js +235 -0
- package/lib/conflict-detector.js +245 -0
- package/lib/engineering-manager.js +354 -0
- package/lib/error-budget.js +294 -0
- package/lib/hook-system.js +252 -0
- package/lib/identity.js +245 -0
- package/lib/loading-engine.js +208 -0
- package/lib/marketplace.js +298 -0
- package/lib/plugin-system.js +604 -0
- package/lib/security-scanner.js +309 -0
- package/lib/self-healing.js +434 -0
- package/lib/session-manager.js +261 -0
- package/lib/skill-sandbox.js +244 -0
- package/lib/task-governance.js +523 -0
- package/lib/task-model.js +317 -0
- package/lib/updater.js +201 -0
- package/lib/verify.js +240 -0
- package/lib/workflow-engine.js +353 -0
- package/lib/workflow-persistence.js +160 -0
- package/package.json +7 -3
|
@@ -1,114 +1,171 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Multi-agent orchestration for complex tasks requiring multiple specialists.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
4. **
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Multi-agent orchestration for complex tasks requiring multiple specialists.
|
|
3
|
+
version: 2.1.0
|
|
4
|
+
sdlc-phase: reactive
|
|
5
|
+
agents: [planner, explorer-agent]
|
|
6
|
+
skills: [parallel-agents, intelligent-routing]
|
|
7
|
+
commit-types: [feat, refactor, fix]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /orchestrate — Multi-Agent Coordination
|
|
11
|
+
|
|
12
|
+
> **Trigger**: `/orchestrate [task description]`
|
|
13
|
+
> **Lifecycle**: Reactive — complex multi-domain tasks at any SDLC phase
|
|
14
|
+
|
|
15
|
+
> [!CAUTION]
|
|
16
|
+
> This workflow coordinates multiple agents on the same codebase. Ensure clear domain boundaries to avoid conflicting changes. Phase 2 (implementation) requires explicit user approval.
|
|
17
|
+
|
|
18
|
+
> [!TIP]
|
|
19
|
+
> This workflow leverages the **parallel-agents** and **intelligent-routing** skills. Read `.agent/skills/parallel-agents/SKILL.md` and `.agent/skills/intelligent-routing/SKILL.md` for extended guidance.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Critical Rules
|
|
24
|
+
|
|
25
|
+
1. **2-Phase protocol** — always plan before implementing; never skip Phase 1
|
|
26
|
+
2. **User approval gate** — Phase 2 cannot start without explicit user approval
|
|
27
|
+
3. **Context passing mandatory** — every subagent must receive full context (original request, decisions made, previous work)
|
|
28
|
+
4. **No agent conflicts** — agents must work on separate files or clearly delineated domains
|
|
29
|
+
5. **Verification required** — run quality gates after all agents complete
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Steps
|
|
34
|
+
|
|
35
|
+
### PHASE 1: Planning (Sequential)
|
|
36
|
+
|
|
37
|
+
// turbo
|
|
38
|
+
1. **Analyze Task Domains**
|
|
39
|
+
- Identify all domains involved (backend, frontend, database, security, etc.)
|
|
40
|
+
- Map which agents are needed
|
|
41
|
+
|
|
42
|
+
// turbo
|
|
43
|
+
2. **Create Orchestration Plan**
|
|
44
|
+
- Use `planner` agent for structured task breakdown
|
|
45
|
+
- Use `explorer-agent` for codebase discovery if needed
|
|
46
|
+
- Define execution order and dependencies
|
|
47
|
+
|
|
48
|
+
> 🔴 **NO other agents during Phase 1!**
|
|
49
|
+
|
|
50
|
+
3. **Checkpoint: User Approval**
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
✅ Orchestration plan created.
|
|
54
|
+
|
|
55
|
+
Agents needed: [list]
|
|
56
|
+
Estimated scope: [file count]
|
|
57
|
+
|
|
58
|
+
Approve to start implementation? (Y/N)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
> 🔴 **DO NOT proceed to Phase 2 without explicit user approval!**
|
|
62
|
+
|
|
63
|
+
### PHASE 2: Implementation (After Approval)
|
|
64
|
+
|
|
65
|
+
4. **Execute in Groups**
|
|
66
|
+
|
|
67
|
+
| Group | Agents | Domain |
|
|
68
|
+
| :--------- | :------------------------------- | :------------------------- |
|
|
69
|
+
| Foundation | `database-architect`, `security-reviewer` | Data layer, security |
|
|
70
|
+
| Core | `architect`, `backend-specialist`, `frontend-specialist`, `mobile-developer` | Application logic |
|
|
71
|
+
| Quality | `tdd-guide`, `e2e-runner` | Test coverage |
|
|
72
|
+
| Operations | `devops-engineer`, `reliability-engineer` | Infrastructure, reliability |
|
|
73
|
+
|
|
74
|
+
5. **Context Passing** (for every subagent invocation)
|
|
75
|
+
- Original user request (full text)
|
|
76
|
+
- All decisions from Socratic questions
|
|
77
|
+
- Summary of previous agent work
|
|
78
|
+
- Current plan state
|
|
79
|
+
|
|
80
|
+
// turbo
|
|
81
|
+
6. **Verification**
|
|
82
|
+
- Run full test suite
|
|
83
|
+
- Run lint and type-check
|
|
84
|
+
- Verify build succeeds
|
|
85
|
+
- Synthesize results into report
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Agent Selection Matrix
|
|
90
|
+
|
|
91
|
+
| Domain | Keywords | Agent(s) |
|
|
92
|
+
| :----------- | :------------------------------------ | :------------------------------------------------------ |
|
|
93
|
+
| Architecture | "design", "structure", "pattern" | `architect`, `planner` |
|
|
94
|
+
| Backend | "API", "database", "server" | `backend-specialist`, `database-architect` |
|
|
95
|
+
| Frontend | "UI", "component", "page" | `frontend-specialist` |
|
|
96
|
+
| Mobile | "mobile", "expo", "react native" | `mobile-developer` |
|
|
97
|
+
| Security | "security", "auth", "vulnerabilities" | `security-reviewer` |
|
|
98
|
+
| Testing | "test", "coverage", "e2e" | `tdd-guide`, `e2e-runner` |
|
|
99
|
+
| DevOps | "deploy", "CI/CD", "production" | `devops-engineer` |
|
|
100
|
+
| Performance | "slow", "optimize", "speed" | `performance-optimizer` |
|
|
101
|
+
| Reliability | "uptime", "monitoring", "resilience" | `reliability-engineer` |
|
|
102
|
+
| Code Quality | "refactor", "clean", "lint" | `refactor-cleaner`, `code-reviewer` |
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Output Template
|
|
107
|
+
|
|
108
|
+
```markdown
|
|
109
|
+
## 🎭 Orchestration Complete
|
|
110
|
+
|
|
111
|
+
### Agents Invoked
|
|
112
|
+
|
|
113
|
+
| Agent | Domain | Summary |
|
|
114
|
+
| :---- | :----- | :------ |
|
|
115
|
+
| `[agent]` | [domain] | [what was done] |
|
|
116
|
+
|
|
117
|
+
### Deliverables
|
|
118
|
+
|
|
119
|
+
| Action | File | Agent |
|
|
120
|
+
| :----- | :--- | :---- |
|
|
121
|
+
| Created | `path/to/file` | [agent] |
|
|
122
|
+
| Modified | `path/to/file` | [agent] |
|
|
123
|
+
|
|
124
|
+
### Verification
|
|
125
|
+
|
|
126
|
+
- ✅ Tests: [N] passing
|
|
127
|
+
- ✅ Build: successful
|
|
128
|
+
- ✅ Lint: clean
|
|
129
|
+
|
|
130
|
+
### Next Steps
|
|
131
|
+
|
|
132
|
+
- [suggestions for follow-up workflows]
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Governance
|
|
138
|
+
|
|
139
|
+
**PROHIBITED:**
|
|
140
|
+
- Skipping Phase 1 (planning) and jumping to implementation
|
|
141
|
+
- Starting Phase 2 without explicit user approval
|
|
142
|
+
- Invoking agents without passing full context
|
|
143
|
+
- Allowing agents to work on overlapping files without coordination
|
|
144
|
+
- Skipping verification after agent work completes
|
|
145
|
+
- Skipping failed steps · proceeding without resolution
|
|
146
|
+
|
|
147
|
+
**REQUIRED:**
|
|
148
|
+
- 2-Phase protocol (plan → approve → implement)
|
|
149
|
+
- Full context passing to every subagent
|
|
150
|
+
- Domain boundary enforcement
|
|
151
|
+
- Quality verification after all agents complete
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Completion Criteria
|
|
156
|
+
|
|
157
|
+
- [ ] Task domains are analyzed and agents are selected
|
|
158
|
+
- [ ] Phase 1 plan is created and presented
|
|
159
|
+
- [ ] User has explicitly approved Phase 2
|
|
160
|
+
- [ ] All agents have completed their work
|
|
161
|
+
- [ ] Context was passed to every subagent invocation
|
|
162
|
+
- [ ] Verification passes (tests, build, lint)
|
|
163
|
+
- [ ] Final synthesized report is delivered
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Related Resources
|
|
168
|
+
|
|
169
|
+
- **Cross-cutting**: Can be invoked at any SDLC phase for complex tasks
|
|
170
|
+
- **Skills**: `.agent/skills/parallel-agents/SKILL.md` · `.agent/skills/intelligent-routing/SKILL.md`
|
|
171
|
+
- **Agents**: See `.agent/agents/` for full agent catalog
|
package/.agent/workflows/plan.md
CHANGED
|
@@ -1,72 +1,147 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Create implementation plan. Invokes planner agent for structured task breakdown.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Create implementation plan. Invokes planner agent for structured task breakdown.
|
|
3
|
+
version: 2.1.0
|
|
4
|
+
sdlc-phase: plan
|
|
5
|
+
agents: [planner]
|
|
6
|
+
skills: [plan-writing, brainstorming]
|
|
7
|
+
commit-types: [docs]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /plan — Implementation Planning
|
|
11
|
+
|
|
12
|
+
> **Trigger**: `/plan [task description]`
|
|
13
|
+
> **Lifecycle**: Plan — first step of SDLC after discovery
|
|
14
|
+
|
|
15
|
+
> [!IMPORTANT]
|
|
16
|
+
> This workflow creates plans, NOT code. No implementation during planning. All plans require user approval before execution begins.
|
|
17
|
+
|
|
18
|
+
> [!TIP]
|
|
19
|
+
> This workflow leverages the **plan-writing** skill. Read `.agent/skills/plan-writing/SKILL.md` for extended guidance.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Critical Rules
|
|
24
|
+
|
|
25
|
+
1. **No code writing** — this workflow produces plans only
|
|
26
|
+
2. **Socratic gate** — ask at least 3 clarifying questions before creating a plan
|
|
27
|
+
3. **Dynamic naming** — name plan files based on the task (e.g., `PLAN-auth-fix.md`)
|
|
28
|
+
4. **Verification criteria** — every task in the plan must have clear "done" criteria
|
|
29
|
+
5. **User approval required** — never proceed to implementation without explicit approval
|
|
30
|
+
6. **Small, focused tasks** — break down work into atomic, verifiable steps
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Argument Parsing
|
|
35
|
+
|
|
36
|
+
| Command | Action |
|
|
37
|
+
| :----------------------- | :---------------------------------------------- |
|
|
38
|
+
| `/plan` | Prompt for task description |
|
|
39
|
+
| `/plan [description]` | Create implementation plan for the described task |
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Steps
|
|
44
|
+
|
|
45
|
+
// turbo
|
|
46
|
+
1. **Clarify Requirements** (Socratic Gate)
|
|
47
|
+
- Ask at least 3 clarifying questions about purpose, scope, and constraints
|
|
48
|
+
- Confirm acceptance criteria and edge cases
|
|
49
|
+
- Identify relevant existing code and patterns
|
|
50
|
+
|
|
51
|
+
// turbo
|
|
52
|
+
2. **Explore Codebase**
|
|
53
|
+
- Scan project structure and architecture
|
|
54
|
+
- Identify files, modules, and patterns relevant to the task
|
|
55
|
+
- Note dependencies and integration points
|
|
56
|
+
|
|
57
|
+
3. **Create Plan**
|
|
58
|
+
- Break down the task into small, focused steps
|
|
59
|
+
- Assign verification criteria to each step
|
|
60
|
+
- Order tasks logically (dependencies first)
|
|
61
|
+
- Identify which agents are needed for multi-domain tasks
|
|
62
|
+
- Save plan to `docs/PLAN-{task-slug}.md`
|
|
63
|
+
|
|
64
|
+
4. **Present for Approval**
|
|
65
|
+
- Show the plan summary to the user
|
|
66
|
+
- Wait for explicit approval before any implementation
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Naming Convention
|
|
71
|
+
|
|
72
|
+
| Request | Plan File |
|
|
73
|
+
| :----------------------- | :--------------------------- |
|
|
74
|
+
| `/plan e-commerce cart` | `PLAN-ecommerce-cart.md` |
|
|
75
|
+
| `/plan mobile app` | `PLAN-mobile-app.md` |
|
|
76
|
+
| `/plan auth fix` | `PLAN-auth-fix.md` |
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Output Template
|
|
81
|
+
|
|
82
|
+
```markdown
|
|
83
|
+
## 📋 Plan: [Task Name]
|
|
84
|
+
|
|
85
|
+
### Scope
|
|
86
|
+
|
|
87
|
+
[What this plan covers and what it doesn't]
|
|
88
|
+
|
|
89
|
+
### Tasks
|
|
90
|
+
|
|
91
|
+
1. [ ] [Task description] — **Verify**: [done criteria]
|
|
92
|
+
2. [ ] [Task description] — **Verify**: [done criteria]
|
|
93
|
+
3. [ ] [Task description] — **Verify**: [done criteria]
|
|
94
|
+
|
|
95
|
+
### Agent Assignments (if multi-domain)
|
|
96
|
+
|
|
97
|
+
| Task | Agent | Domain |
|
|
98
|
+
| :--- | :---- | :----- |
|
|
99
|
+
| [task] | [agent] | [domain] |
|
|
100
|
+
|
|
101
|
+
### Risks & Considerations
|
|
102
|
+
|
|
103
|
+
- [risk or constraint]
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
✅ Plan saved: `docs/PLAN-{slug}.md`
|
|
108
|
+
|
|
109
|
+
Approve to start implementation with `/create` or `/enhance`.
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Governance
|
|
115
|
+
|
|
116
|
+
**PROHIBITED:**
|
|
117
|
+
- Writing implementation code during planning
|
|
118
|
+
- Proceeding to implementation without user approval
|
|
119
|
+
- Creating vague, unverifiable tasks
|
|
120
|
+
- Skipping the Socratic gate
|
|
121
|
+
- Skipping failed steps · proceeding without resolution
|
|
122
|
+
|
|
123
|
+
**REQUIRED:**
|
|
124
|
+
- At least 3 clarifying questions before planning
|
|
125
|
+
- Verification criteria for every task
|
|
126
|
+
- User approval before implementation begins
|
|
127
|
+
- Plan file saved in `docs/` with dynamic name
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Completion Criteria
|
|
132
|
+
|
|
133
|
+
- [ ] Clarifying questions asked and answered
|
|
134
|
+
- [ ] Codebase explored for relevant context
|
|
135
|
+
- [ ] Plan created with verifiable tasks
|
|
136
|
+
- [ ] Plan saved to `docs/PLAN-{slug}.md`
|
|
137
|
+
- [ ] User has reviewed and approved the plan
|
|
138
|
+
- [ ] After approval: proceed to `/create` or `/enhance` for implementation
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Related Resources
|
|
143
|
+
|
|
144
|
+
- **Previous**: `/brainstorm` (explore options) · `/quality-gate` (validate approach)
|
|
145
|
+
- **Next**: `/create` (scaffold new features) · `/enhance` (iterative development)
|
|
146
|
+
- **Skill**: `.agent/skills/plan-writing/SKILL.md`
|
|
147
|
+
- **Agent**: `planner` agent (see `.agent/agents/planner.md`)
|