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.
Files changed (114) hide show
  1. package/.agent/README.md +4 -4
  2. package/.agent/agents/README.md +16 -12
  3. package/.agent/agents/architect.md +1 -0
  4. package/.agent/agents/backend-specialist.md +11 -0
  5. package/.agent/agents/code-reviewer.md +1 -0
  6. package/.agent/agents/database-architect.md +11 -0
  7. package/.agent/agents/devops-engineer.md +11 -0
  8. package/.agent/agents/e2e-runner.md +1 -0
  9. package/.agent/agents/explorer-agent.md +11 -0
  10. package/.agent/agents/frontend-specialist.md +11 -0
  11. package/.agent/agents/mobile-developer.md +11 -0
  12. package/.agent/agents/performance-optimizer.md +11 -0
  13. package/.agent/agents/planner.md +1 -0
  14. package/.agent/agents/refactor-cleaner.md +1 -0
  15. package/.agent/agents/reliability-engineer.md +11 -0
  16. package/.agent/agents/security-reviewer.md +1 -0
  17. package/.agent/agents/sprint-orchestrator.md +10 -0
  18. package/.agent/agents/tdd-guide.md +1 -0
  19. package/.agent/commands/code-review.md +1 -0
  20. package/.agent/commands/debug.md +1 -0
  21. package/.agent/commands/deploy.md +1 -0
  22. package/.agent/commands/help.md +252 -31
  23. package/.agent/commands/plan.md +1 -0
  24. package/.agent/commands/status.md +1 -0
  25. package/.agent/commands/tdd.md +1 -0
  26. package/.agent/contexts/brainstorm.md +26 -0
  27. package/.agent/contexts/debug.md +28 -0
  28. package/.agent/contexts/implement.md +29 -0
  29. package/.agent/contexts/review.md +27 -0
  30. package/.agent/contexts/ship.md +28 -0
  31. package/.agent/engine/identity.json +13 -0
  32. package/.agent/engine/loading-rules.json +23 -1
  33. package/.agent/engine/marketplace-index.json +29 -0
  34. package/.agent/engine/reliability-config.json +14 -0
  35. package/.agent/engine/sdlc-map.json +44 -0
  36. package/.agent/engine/workflow-state.json +28 -2
  37. package/.agent/hooks/hooks.json +27 -25
  38. package/.agent/manifest.json +12 -4
  39. package/.agent/rules.md +2 -1
  40. package/.agent/skills/README.md +10 -5
  41. package/.agent/skills/i18n-localization/SKILL.md +191 -0
  42. package/.agent/skills/mcp-integration/SKILL.md +224 -0
  43. package/.agent/skills/parallel-agents/SKILL.md +1 -1
  44. package/.agent/skills/shell-conventions/SKILL.md +92 -0
  45. package/.agent/skills/ui-ux-pro-max/SKILL.md +557 -0
  46. package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  47. package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  48. package/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
  49. package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  50. package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  51. package/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  52. package/.agent/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  53. package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  54. package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  55. package/.agent/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  56. package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  57. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  58. package/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  59. package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  60. package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  61. package/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  62. package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  63. package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  64. package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  65. package/.agent/skills/ui-ux-pro-max/data/styles.csv +68 -0
  66. package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  67. package/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  68. package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  69. package/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  70. package/.agent/skills/ui-ux-pro-max/scripts/core.py +253 -0
  71. package/.agent/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
  72. package/.agent/skills/ui-ux-pro-max/scripts/search.py +114 -0
  73. package/.agent/templates/adr-template.md +32 -0
  74. package/.agent/templates/bug-report.md +37 -0
  75. package/.agent/templates/feature-request.md +32 -0
  76. package/.agent/workflows/README.md +92 -78
  77. package/.agent/workflows/brainstorm.md +154 -100
  78. package/.agent/workflows/create.md +142 -75
  79. package/.agent/workflows/debug.md +157 -98
  80. package/.agent/workflows/deploy.md +195 -144
  81. package/.agent/workflows/enhance.md +157 -65
  82. package/.agent/workflows/orchestrate.md +171 -114
  83. package/.agent/workflows/plan.md +147 -72
  84. package/.agent/workflows/preview.md +140 -83
  85. package/.agent/workflows/quality-gate.md +196 -0
  86. package/.agent/workflows/retrospective.md +197 -0
  87. package/.agent/workflows/review.md +188 -0
  88. package/.agent/workflows/status.md +142 -91
  89. package/.agent/workflows/test.md +168 -95
  90. package/.agent/workflows/ui-ux-pro-max.md +181 -127
  91. package/README.md +215 -78
  92. package/bin/ag-kit.js +344 -10
  93. package/lib/agent-registry.js +214 -0
  94. package/lib/agent-reputation.js +351 -0
  95. package/lib/cli-commands.js +235 -0
  96. package/lib/conflict-detector.js +245 -0
  97. package/lib/engineering-manager.js +354 -0
  98. package/lib/error-budget.js +294 -0
  99. package/lib/hook-system.js +252 -0
  100. package/lib/identity.js +245 -0
  101. package/lib/loading-engine.js +208 -0
  102. package/lib/marketplace.js +298 -0
  103. package/lib/plugin-system.js +604 -0
  104. package/lib/security-scanner.js +309 -0
  105. package/lib/self-healing.js +434 -0
  106. package/lib/session-manager.js +261 -0
  107. package/lib/skill-sandbox.js +244 -0
  108. package/lib/task-governance.js +523 -0
  109. package/lib/task-model.js +317 -0
  110. package/lib/updater.js +201 -0
  111. package/lib/verify.js +240 -0
  112. package/lib/workflow-engine.js +353 -0
  113. package/lib/workflow-persistence.js +160 -0
  114. package/package.json +7 -3
@@ -1,114 +1,171 @@
1
- ---
2
- description: Multi-agent orchestration for complex tasks requiring multiple specialists.
3
- ---
4
-
5
- # /orchestrate - Multi-Agent Coordination
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## 🔴 CRITICAL: 2-Phase Orchestration
12
-
13
- ### PHASE 1: PLANNING (Sequential)
14
-
15
- | Step | Agent | Action |
16
- | ---- | ---------------- | ------------------------------ |
17
- | 1 | `planner` | Create implementation plan |
18
- | 2 | `explorer-agent` | Codebase discovery (if needed) |
19
-
20
- > 🔴 **NO OTHER AGENTS during planning!**
21
-
22
- ### ⏸️ CHECKPOINT: User Approval
23
-
24
- After plan is complete, ASK:
25
-
26
- ```
27
- Plan created: docs/PLAN.md
28
-
29
- Do you approve? (Y/N)
30
- - Y: Start implementation
31
- - N: I'll revise the plan
32
- ```
33
-
34
- > 🔴 **DO NOT proceed to Phase 2 without explicit user approval!**
35
-
36
- ### PHASE 2: IMPLEMENTATION (Parallel after approval)
37
-
38
- | Group | Agents |
39
- | ---------- | ----------------------------------------- |
40
- | Foundation | `database-architect`, `security-reviewer` |
41
- | Core | `architect`, `mobile-developer` |
42
- | Polish | `tdd-guide`, `devops-engineer` |
43
-
44
- ---
45
-
46
- ## Agent Selection Matrix
47
-
48
- | Domain | Keywords | Agent(s) |
49
- | ----------- | ------------------------------------- | ------------------------- |
50
- | Security | "security", "auth", "vulnerabilities" | `security-reviewer` |
51
- | Backend | "API", "database", "server" | `database-architect` |
52
- | Frontend | "UI", "component", "page" | `architect` |
53
- | Mobile | "mobile", "expo", "react native" | `mobile-developer` |
54
- | Testing | "test", "coverage", "e2e" | `tdd-guide`, `e2e-runner` |
55
- | DevOps | "deploy", "CI/CD", "production" | `devops-engineer` |
56
- | Performance | "slow", "optimize", "speed" | `performance-optimizer` |
57
-
58
- ---
59
-
60
- ## Orchestration Protocol
61
-
62
- 1. **Analyze Task Domains** — Identify all domains involved
63
- 2. **Phase Detection** Plan exists? User approved?
64
- 3. **Execute** — Planning or implementation based on phase
65
- 4. **Context Passing** — Pass full context to subagents
66
- 5. **Verification** — Run quality gates
67
- 6. **Synthesize** Combine outputs into report
68
-
69
- ---
70
-
71
- ## Context Passing (MANDATORY)
72
-
73
- When invoking ANY subagent, include:
74
-
75
- 1. **Original User Request:** Full text
76
- 2. **Decisions Made:** All answers to Socratic questions
77
- 3. **Previous Agent Work:** Summary of completed work
78
- 4. **Current Plan State:** If plan exists
79
-
80
- ---
81
-
82
- ## Output Format
83
-
84
- ```markdown
85
- ## 🎭 Orchestration Complete
86
-
87
- ### Agents Invoked
88
-
89
- - `architect` [summary]
90
- - `database-architect` → [summary]
91
- - `tdd-guide` [summary]
92
-
93
- ### Deliverables
94
-
95
- - [list of created/modified files]
96
-
97
- ### Verification
98
-
99
- - [test results, lint results]
100
-
101
- ### Next Steps
102
-
103
- - [suggestions for follow-up]
104
- ```
105
-
106
- ---
107
-
108
- ## Examples
109
-
110
- ```
111
- /orchestrate build e-commerce platform
112
- /orchestrate add user authentication
113
- /orchestrate refactor database layer
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
@@ -1,72 +1,147 @@
1
- ---
2
- description: Create implementation plan. Invokes planner agent for structured task breakdown.
3
- ---
4
-
5
- # /plan - Implementation Planning
6
-
7
- $ARGUMENTS
8
-
9
- ---
10
-
11
- ## 🔴 CRITICAL RULES
12
-
13
- 1. **NO CODE WRITING** This creates plan only
14
- 2. **Use planner agent** — Invoke for structured breakdown
15
- 3. **Socratic Gate** — Ask clarifying questions first
16
- 4. **Dynamic Naming** Name based on task
17
-
18
- ---
19
-
20
- ## Task
21
-
22
- Create implementation plan using the `planner` agent.
23
-
24
- ### Steps
25
-
26
- 1. **Clarify Requirements**
27
- - Ask 3 questions minimum (Socratic Gate)
28
- - Purpose, scope, constraints
29
-
30
- 2. **Create Plan**
31
- - Task breakdown with verification criteria
32
- - Agent assignments if multi-domain
33
- - Clear done criteria
34
-
35
- 3. **Output Location**
36
- - Plan in project root or `docs/` folder
37
- - Named dynamically: `PLAN-{task-slug}.md`
38
-
39
- ---
40
-
41
- ## Naming Examples
42
-
43
- | Request | Plan File |
44
- | ----------------------- | ------------------------ |
45
- | `/plan e-commerce cart` | `PLAN-ecommerce-cart.md` |
46
- | `/plan mobile app` | `PLAN-mobile-app.md` |
47
- | `/plan dark mode` | `PLAN-dark-mode.md` |
48
- | `/plan auth fix` | `PLAN-auth-fix.md` |
49
-
50
- ---
51
-
52
- ## After Planning
53
-
54
- ```
55
- Plan created: docs/PLAN-{slug}.md
56
-
57
- Next steps:
58
- - Review the plan
59
- - Approve to start implementation
60
- - Or modify plan manually
61
- ```
62
-
63
- ---
64
-
65
- ## Examples
66
-
67
- ```
68
- /plan e-commerce site with cart
69
- /plan mobile app for fitness tracking
70
- /plan SaaS dashboard with analytics
71
- /plan add authentication
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**: Planfirst 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`)