mindforge-cc 11.5.1 → 11.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/.agent/mindforge/skill-tdd.md +53 -0
- package/.agent/mindforge/skills-index.md +118 -0
- package/.agent/mindforge/systematic-debug.md +60 -0
- package/.agent/skills/1password-skill/SKILL.md +156 -0
- package/.agent/skills/1password-skill/references/cli-examples.md +31 -0
- package/.agent/skills/1password-skill/references/get-started.md +21 -0
- package/.agent/skills/article-illustrator/SKILL.md +199 -0
- package/.agent/skills/article-illustrator/references/prompt-construction.md +426 -0
- package/.agent/skills/article-illustrator/references/style-presets.md +80 -0
- package/.agent/skills/article-illustrator/references/styles.md +224 -0
- package/.agent/skills/article-illustrator/references/usage.md +50 -0
- package/.agent/skills/article-illustrator/references/workflow.md +332 -0
- package/.agent/skills/arxiv/SKILL.md +275 -0
- package/.agent/skills/blogwatcher/SKILL.md +130 -0
- package/.agent/skills/code-wiki/SKILL.md +438 -0
- package/.agent/skills/code-wiki/templates/README.md +31 -0
- package/.agent/skills/code-wiki/templates/architecture.md +30 -0
- package/.agent/skills/code-wiki/templates/getting-started.md +47 -0
- package/.agent/skills/code-wiki/templates/module.md +38 -0
- package/.agent/skills/codebase-inspection/SKILL.md +109 -0
- package/.agent/skills/comic-creator/SKILL.md +240 -0
- package/.agent/skills/comic-creator/references/analysis-framework.md +176 -0
- package/.agent/skills/comic-creator/references/auto-selection.md +71 -0
- package/.agent/skills/comic-creator/references/base-prompt.md +98 -0
- package/.agent/skills/comic-creator/references/character-template.md +180 -0
- package/.agent/skills/comic-creator/references/ohmsha-guide.md +85 -0
- package/.agent/skills/comic-creator/references/partial-workflows.md +106 -0
- package/.agent/skills/comic-creator/references/storyboard-template.md +143 -0
- package/.agent/skills/comic-creator/references/workflow.md +401 -0
- package/.agent/skills/concept-diagrams/SKILL.md +355 -0
- package/.agent/skills/concept-diagrams/references/dashboard-patterns.md +43 -0
- package/.agent/skills/concept-diagrams/references/infrastructure-patterns.md +144 -0
- package/.agent/skills/concept-diagrams/references/physical-shape-cookbook.md +42 -0
- package/.agent/skills/creative-ideation/SKILL.md +144 -0
- package/.agent/skills/creative-ideation/references/full-prompt-library.md +110 -0
- package/.agent/skills/devops-cli/SKILL.md +149 -0
- package/.agent/skills/devops-cli/references/app-discovery.md +112 -0
- package/.agent/skills/devops-cli/references/authentication.md +59 -0
- package/.agent/skills/devops-cli/references/cli-reference.md +104 -0
- package/.agent/skills/devops-cli/references/running-apps.md +171 -0
- package/.agent/skills/devops-watchers/SKILL.md +103 -0
- package/.agent/skills/docker-management/SKILL.md +273 -0
- package/.agent/skills/domain-intel/SKILL.md +96 -0
- package/.agent/skills/duckduckgo-search/SKILL.md +230 -0
- package/.agent/skills/github-auth/SKILL.md +240 -0
- package/.agent/skills/github-code-review/SKILL.md +474 -0
- package/.agent/skills/github-code-review/references/review-output-template.md +74 -0
- package/.agent/skills/github-issues/SKILL.md +363 -0
- package/.agent/skills/github-issues/templates/bug-report.md +35 -0
- package/.agent/skills/github-issues/templates/feature-request.md +31 -0
- package/.agent/skills/github-pr-workflow/SKILL.md +360 -0
- package/.agent/skills/github-pr-workflow/references/ci-troubleshooting.md +183 -0
- package/.agent/skills/github-pr-workflow/references/conventional-commits.md +71 -0
- package/.agent/skills/github-pr-workflow/templates/pr-body-bugfix.md +35 -0
- package/.agent/skills/github-pr-workflow/templates/pr-body-feature.md +33 -0
- package/.agent/skills/github-repo-management/SKILL.md +509 -0
- package/.agent/skills/github-repo-management/references/github-api-cheatsheet.md +161 -0
- package/.agent/skills/godmode/SKILL.md +396 -0
- package/.agent/skills/godmode/references/jailbreak-templates.md +128 -0
- package/.agent/skills/godmode/references/refusal-detection.md +142 -0
- package/.agent/skills/hyperframes/SKILL.md +182 -0
- package/.agent/skills/hyperframes/references/cli.md +185 -0
- package/.agent/skills/hyperframes/references/composition.md +129 -0
- package/.agent/skills/hyperframes/references/features.md +289 -0
- package/.agent/skills/hyperframes/references/gsap.md +136 -0
- package/.agent/skills/hyperframes/references/troubleshooting.md +137 -0
- package/.agent/skills/hyperframes/references/website-to-video.md +145 -0
- package/.agent/skills/jupyter-live-kernel/SKILL.md +160 -0
- package/.agent/skills/kanban-orchestrator/SKILL.md +209 -0
- package/.agent/skills/kanban-worker/SKILL.md +188 -0
- package/.agent/skills/llm-wiki/SKILL.md +499 -0
- package/.agent/skills/meme-generation/SKILL.md +122 -0
- package/.agent/skills/node-inspect-debugger/SKILL.md +312 -0
- package/.agent/skills/obsidian/SKILL.md +60 -0
- package/.agent/skills/osint-investigation/SKILL.md +269 -0
- package/.agent/skills/osint-investigation/templates/source-template.md +59 -0
- package/.agent/skills/oss-forensics/SKILL.md +422 -0
- package/.agent/skills/oss-forensics/references/evidence-types.md +89 -0
- package/.agent/skills/oss-forensics/references/github-archive-guide.md +184 -0
- package/.agent/skills/oss-forensics/references/investigation-templates.md +131 -0
- package/.agent/skills/oss-forensics/references/recovery-techniques.md +164 -0
- package/.agent/skills/oss-forensics/templates/forensic-report.md +151 -0
- package/.agent/skills/oss-forensics/templates/malicious-package-report.md +43 -0
- package/.agent/skills/parallel-cli/SKILL.md +384 -0
- package/.agent/skills/pinggy-tunnel/SKILL.md +302 -0
- package/.agent/skills/pixel-art/SKILL.md +209 -0
- package/.agent/skills/pixel-art/references/palettes.md +49 -0
- package/.agent/skills/plan/SKILL.md +331 -0
- package/.agent/skills/polymarket/SKILL.md +75 -0
- package/.agent/skills/polymarket/references/api-endpoints.md +220 -0
- package/.agent/skills/python-debugpy/SKILL.md +368 -0
- package/.agent/skills/requesting-code-review/SKILL.md +273 -0
- package/.agent/skills/research-paper-writing/SKILL.md +2367 -0
- package/.agent/skills/research-paper-writing/references/autoreason-methodology.md +394 -0
- package/.agent/skills/research-paper-writing/references/checklists.md +434 -0
- package/.agent/skills/research-paper-writing/references/citation-workflow.md +563 -0
- package/.agent/skills/research-paper-writing/references/experiment-patterns.md +728 -0
- package/.agent/skills/research-paper-writing/references/human-evaluation.md +476 -0
- package/.agent/skills/research-paper-writing/references/paper-types.md +481 -0
- package/.agent/skills/research-paper-writing/references/reviewer-guidelines.md +433 -0
- package/.agent/skills/research-paper-writing/references/sources.md +191 -0
- package/.agent/skills/research-paper-writing/references/writing-guide.md +474 -0
- package/.agent/skills/research-paper-writing/templates/README.md +251 -0
- package/.agent/skills/rest-graphql-debug/SKILL.md +507 -0
- package/.agent/skills/s6-container-supervision/SKILL.md +171 -0
- package/.agent/skills/scrapling/SKILL.md +328 -0
- package/.agent/skills/sherlock/SKILL.md +186 -0
- package/.agent/skills/simplify-code/SKILL.md +168 -0
- package/.agent/skills/skill-authoring/SKILL.md +158 -0
- package/.agent/skills/spike/SKILL.md +190 -0
- package/.agent/skills/subagent-driven-development/SKILL.md +345 -0
- package/.agent/skills/subagent-driven-development/references/context-budget-discipline.md +53 -0
- package/.agent/skills/subagent-driven-development/references/gates-taxonomy.md +93 -0
- package/.agent/skills/systematic-debugging/SKILL.md +360 -0
- package/.agent/skills/test-driven-development/SKILL.md +336 -0
- package/.agent/skills/video-orchestrator/SKILL.md +194 -0
- package/.agent/skills/video-orchestrator/references/examples.md +227 -0
- package/.agent/skills/video-orchestrator/references/intake.md +166 -0
- package/.agent/skills/video-orchestrator/references/kanban-setup.md +278 -0
- package/.agent/skills/video-orchestrator/references/monitoring.md +180 -0
- package/.agent/skills/video-orchestrator/references/role-archetypes.md +298 -0
- package/.agent/skills/video-orchestrator/references/tool-matrix.md +317 -0
- package/.agent/skills/web-pentest/SKILL.md +332 -0
- package/.agent/skills/web-pentest/references/bypass-techniques.md +133 -0
- package/.agent/skills/web-pentest/references/exploitation-techniques.md +204 -0
- package/.agent/skills/web-pentest/references/scope-enforcement.md +110 -0
- package/.agent/skills/web-pentest/references/vuln-taxonomy.md +81 -0
- package/.agent/skills/web-pentest/templates/authorization.md +69 -0
- package/.agent/skills/web-pentest/templates/pentest-report.md +178 -0
- package/.claude/commands/mindforge/skill-tdd.md +53 -0
- package/.claude/commands/mindforge/skills-index.md +118 -0
- package/.claude/commands/mindforge/systematic-debug.md +60 -0
- package/.mindforge/config.json +2 -2
- package/.mindforge/memory/sync-manifest.json +1 -1
- package/.mindforge/skills/arxiv/SKILL.md +294 -0
- package/.mindforge/skills/blogwatcher/SKILL.md +147 -0
- package/.mindforge/skills/code-wiki/SKILL.md +457 -0
- package/.mindforge/skills/codebase-inspection/SKILL.md +126 -0
- package/.mindforge/skills/concept-diagrams/SKILL.md +373 -0
- package/.mindforge/skills/creative-ideation/SKILL.md +162 -0
- package/.mindforge/skills/domain-intel/SKILL.md +116 -0
- package/.mindforge/skills/duckduckgo-search/SKILL.md +249 -0
- package/.mindforge/skills/github-code-review/SKILL.md +493 -0
- package/.mindforge/skills/github-issues/SKILL.md +382 -0
- package/.mindforge/skills/github-pr-workflow/SKILL.md +379 -0
- package/.mindforge/skills/jupyter-live-kernel/SKILL.md +179 -0
- package/.mindforge/skills/kanban-orchestrator/SKILL.md +227 -0
- package/.mindforge/skills/kanban-worker/SKILL.md +206 -0
- package/.mindforge/skills/meme-generation/SKILL.md +141 -0
- package/.mindforge/skills/obsidian/SKILL.md +80 -0
- package/.mindforge/skills/osint-investigation/SKILL.md +288 -0
- package/.mindforge/skills/oss-forensics/SKILL.md +421 -0
- package/.mindforge/skills/pixel-art/SKILL.md +228 -0
- package/.mindforge/skills/plan/SKILL.md +350 -0
- package/.mindforge/skills/requesting-code-review/SKILL.md +292 -0
- package/.mindforge/skills/research-paper-writing/SKILL.md +2384 -0
- package/.mindforge/skills/scrapling/SKILL.md +345 -0
- package/.mindforge/skills/sherlock/SKILL.md +203 -0
- package/.mindforge/skills/simplify-code/SKILL.md +187 -0
- package/.mindforge/skills/spike/SKILL.md +209 -0
- package/.mindforge/skills/subagent-driven-development/SKILL.md +364 -0
- package/.mindforge/skills/systematic-debugging/SKILL.md +379 -0
- package/.mindforge/skills/test-driven-development/SKILL.md +355 -0
- package/.mindforge/skills/web-pentest/SKILL.md +327 -0
- package/CHANGELOG.md +43 -0
- package/MINDFORGE.md +2 -2
- package/README.md +39 -3
- package/RELEASENOTES.md +55 -0
- package/docs/getting-started.md +42 -5
- package/package.json +1 -1
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: subagent-driven-development
|
|
3
|
+
description: "Execute plans via delegate_task subagents (2-stage review)."
|
|
4
|
+
version: 1.1.0
|
|
5
|
+
status: stable
|
|
6
|
+
min_mindforge_version: 11.5.1
|
|
7
|
+
triggers: subagent driven development, delegate to subagent, multi-agent implementation, spawn subagents, agent delegation, subagent task, delegate work, parallel implementation, multi-agent workflow, agent-driven development, subagent coordination
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Subagent-Driven Development
|
|
11
|
+
|
|
12
|
+
## Overview
|
|
13
|
+
|
|
14
|
+
Execute implementation plans by dispatching fresh subagents per task with systematic two-stage review.
|
|
15
|
+
|
|
16
|
+
**Core principle:** Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration.
|
|
17
|
+
|
|
18
|
+
## When to Use
|
|
19
|
+
|
|
20
|
+
Use this skill when:
|
|
21
|
+
- You have an implementation plan (from the `plan` skill or user requirements)
|
|
22
|
+
- Tasks are mostly independent
|
|
23
|
+
- Quality and spec compliance are important
|
|
24
|
+
- You want automated review between tasks
|
|
25
|
+
|
|
26
|
+
**vs. manual execution:**
|
|
27
|
+
- Fresh context per task (no confusion from accumulated state)
|
|
28
|
+
- Automated review process catches issues early
|
|
29
|
+
- Consistent quality checks across all tasks
|
|
30
|
+
- Subagents can ask questions before starting work
|
|
31
|
+
|
|
32
|
+
## The Process
|
|
33
|
+
|
|
34
|
+
### 1. Read and Parse Plan
|
|
35
|
+
|
|
36
|
+
Read the plan file. Extract ALL tasks with their full text and context upfront. Create a todo list:
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
# Read the plan
|
|
40
|
+
read_file("docs/plans/feature-plan.md")
|
|
41
|
+
|
|
42
|
+
# Create todo list with all tasks
|
|
43
|
+
todo([
|
|
44
|
+
{"id": "task-1", "content": "Create User model with email field", "status": "pending"},
|
|
45
|
+
{"id": "task-2", "content": "Add password hashing utility", "status": "pending"},
|
|
46
|
+
{"id": "task-3", "content": "Create login endpoint", "status": "pending"},
|
|
47
|
+
])
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Key:** Read the plan ONCE. Extract everything. Don't make subagents read the plan file — provide the full task text directly in context.
|
|
51
|
+
|
|
52
|
+
### 2. Per-Task Workflow
|
|
53
|
+
|
|
54
|
+
For EACH task in the plan:
|
|
55
|
+
|
|
56
|
+
#### Step 1: Dispatch Implementer Subagent
|
|
57
|
+
|
|
58
|
+
Use `delegate_task` with complete context:
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
delegate_task(
|
|
62
|
+
goal="Implement Task 1: Create User model with email and password_hash fields",
|
|
63
|
+
context="""
|
|
64
|
+
TASK FROM PLAN:
|
|
65
|
+
- Create: src/models/user.py
|
|
66
|
+
- Add User class with email (str) and password_hash (str) fields
|
|
67
|
+
- Use bcrypt for password hashing
|
|
68
|
+
- Include __repr__ for debugging
|
|
69
|
+
|
|
70
|
+
FOLLOW TDD:
|
|
71
|
+
1. Write failing test in tests/models/test_user.py
|
|
72
|
+
2. Run: pytest tests/models/test_user.py -v (verify FAIL)
|
|
73
|
+
3. Write minimal implementation
|
|
74
|
+
4. Run: pytest tests/models/test_user.py -v (verify PASS)
|
|
75
|
+
5. Run: pytest tests/ -q (verify no regressions)
|
|
76
|
+
6. Commit: git add -A && git commit -m "feat: add User model with password hashing"
|
|
77
|
+
|
|
78
|
+
PROJECT CONTEXT:
|
|
79
|
+
- Python 3.11, Flask app in src/app.py
|
|
80
|
+
- Existing models in src/models/
|
|
81
|
+
- Tests use pytest, run from project root
|
|
82
|
+
- bcrypt already in requirements.txt
|
|
83
|
+
""",
|
|
84
|
+
toolsets=['terminal', 'file']
|
|
85
|
+
)
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
#### Step 2: Dispatch Spec Compliance Reviewer
|
|
89
|
+
|
|
90
|
+
After the implementer completes, verify against the original spec:
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
delegate_task(
|
|
94
|
+
goal="Review if implementation matches the spec from the plan",
|
|
95
|
+
context="""
|
|
96
|
+
ORIGINAL TASK SPEC:
|
|
97
|
+
- Create src/models/user.py with User class
|
|
98
|
+
- Fields: email (str), password_hash (str)
|
|
99
|
+
- Use bcrypt for password hashing
|
|
100
|
+
- Include __repr__
|
|
101
|
+
|
|
102
|
+
CHECK:
|
|
103
|
+
- [ ] All requirements from spec implemented?
|
|
104
|
+
- [ ] File paths match spec?
|
|
105
|
+
- [ ] Function signatures match spec?
|
|
106
|
+
- [ ] Behavior matches expected?
|
|
107
|
+
- [ ] Nothing extra added (no scope creep)?
|
|
108
|
+
|
|
109
|
+
OUTPUT: PASS or list of specific spec gaps to fix.
|
|
110
|
+
""",
|
|
111
|
+
toolsets=['file']
|
|
112
|
+
)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**If spec issues found:** Fix gaps, then re-run spec review. Continue only when spec-compliant.
|
|
116
|
+
|
|
117
|
+
#### Step 3: Dispatch Code Quality Reviewer
|
|
118
|
+
|
|
119
|
+
After spec compliance passes:
|
|
120
|
+
|
|
121
|
+
```python
|
|
122
|
+
delegate_task(
|
|
123
|
+
goal="Review code quality for Task 1 implementation",
|
|
124
|
+
context="""
|
|
125
|
+
FILES TO REVIEW:
|
|
126
|
+
- src/models/user.py
|
|
127
|
+
- tests/models/test_user.py
|
|
128
|
+
|
|
129
|
+
CHECK:
|
|
130
|
+
- [ ] Follows project conventions and style?
|
|
131
|
+
- [ ] Proper error handling?
|
|
132
|
+
- [ ] Clear variable/function names?
|
|
133
|
+
- [ ] Adequate test coverage?
|
|
134
|
+
- [ ] No obvious bugs or missed edge cases?
|
|
135
|
+
- [ ] No security issues?
|
|
136
|
+
|
|
137
|
+
OUTPUT FORMAT:
|
|
138
|
+
- Critical Issues: [must fix before proceeding]
|
|
139
|
+
- Important Issues: [should fix]
|
|
140
|
+
- Minor Issues: [optional]
|
|
141
|
+
- Verdict: APPROVED or REQUEST_CHANGES
|
|
142
|
+
""",
|
|
143
|
+
toolsets=['file']
|
|
144
|
+
)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**If quality issues found:** Fix issues, re-review. Continue only when approved.
|
|
148
|
+
|
|
149
|
+
#### Step 4: Mark Complete
|
|
150
|
+
|
|
151
|
+
```python
|
|
152
|
+
todo([{"id": "task-1", "content": "Create User model with email field", "status": "completed"}], merge=True)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### 3. Final Review
|
|
156
|
+
|
|
157
|
+
After ALL tasks are complete, dispatch a final integration reviewer:
|
|
158
|
+
|
|
159
|
+
```python
|
|
160
|
+
delegate_task(
|
|
161
|
+
goal="Review the entire implementation for consistency and integration issues",
|
|
162
|
+
context="""
|
|
163
|
+
All tasks from the plan are complete. Review the full implementation:
|
|
164
|
+
- Do all components work together?
|
|
165
|
+
- Any inconsistencies between tasks?
|
|
166
|
+
- All tests passing?
|
|
167
|
+
- Ready for merge?
|
|
168
|
+
""",
|
|
169
|
+
toolsets=['terminal', 'file']
|
|
170
|
+
)
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### 4. Verify and Commit
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# Run full test suite
|
|
177
|
+
pytest tests/ -q
|
|
178
|
+
|
|
179
|
+
# Review all changes
|
|
180
|
+
git diff --stat
|
|
181
|
+
|
|
182
|
+
# Final commit if needed
|
|
183
|
+
git add -A && git commit -m "feat: complete [feature name] implementation"
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Task Granularity
|
|
187
|
+
|
|
188
|
+
**Each task = 2-5 minutes of focused work.**
|
|
189
|
+
|
|
190
|
+
**Too big:**
|
|
191
|
+
- "Implement user authentication system"
|
|
192
|
+
|
|
193
|
+
**Right size:**
|
|
194
|
+
- "Create User model with email and password fields"
|
|
195
|
+
- "Add password hashing function"
|
|
196
|
+
- "Create login endpoint"
|
|
197
|
+
- "Add JWT token generation"
|
|
198
|
+
- "Create registration endpoint"
|
|
199
|
+
|
|
200
|
+
## Red Flags — Never Do These
|
|
201
|
+
|
|
202
|
+
- Start implementation without a plan
|
|
203
|
+
- Skip reviews (spec compliance OR code quality)
|
|
204
|
+
- Proceed with unfixed critical/important issues
|
|
205
|
+
- Dispatch multiple implementation subagents for tasks that touch the same files
|
|
206
|
+
- Make subagent read the plan file (provide full text in context instead)
|
|
207
|
+
- Skip scene-setting context (subagent needs to understand where the task fits)
|
|
208
|
+
- Ignore subagent questions (answer before letting them proceed)
|
|
209
|
+
- Accept "close enough" on spec compliance
|
|
210
|
+
- Skip review loops (reviewer found issues → implementer fixes → review again)
|
|
211
|
+
- Let implementer self-review replace actual review (both are needed)
|
|
212
|
+
- **Start code quality review before spec compliance is PASS** (wrong order)
|
|
213
|
+
- Move to next task while either review has open issues
|
|
214
|
+
|
|
215
|
+
## Handling Issues
|
|
216
|
+
|
|
217
|
+
### If Subagent Asks Questions
|
|
218
|
+
|
|
219
|
+
- Answer clearly and completely
|
|
220
|
+
- Provide additional context if needed
|
|
221
|
+
- Don't rush them into implementation
|
|
222
|
+
|
|
223
|
+
### If Reviewer Finds Issues
|
|
224
|
+
|
|
225
|
+
- Implementer subagent (or a new one) fixes them
|
|
226
|
+
- Reviewer reviews again
|
|
227
|
+
- Repeat until approved
|
|
228
|
+
- Don't skip the re-review
|
|
229
|
+
|
|
230
|
+
### If Subagent Fails a Task
|
|
231
|
+
|
|
232
|
+
- Dispatch a new fix subagent with specific instructions about what went wrong
|
|
233
|
+
- Don't try to fix manually in the controller session (context pollution)
|
|
234
|
+
|
|
235
|
+
## Efficiency Notes
|
|
236
|
+
|
|
237
|
+
**Why fresh subagent per task:**
|
|
238
|
+
- Prevents context pollution from accumulated state
|
|
239
|
+
- Each subagent gets clean, focused context
|
|
240
|
+
- No confusion from prior tasks' code or reasoning
|
|
241
|
+
|
|
242
|
+
**Why two-stage review:**
|
|
243
|
+
- Spec review catches under/over-building early
|
|
244
|
+
- Quality review ensures the implementation is well-built
|
|
245
|
+
- Catches issues before they compound across tasks
|
|
246
|
+
|
|
247
|
+
**Cost trade-off:**
|
|
248
|
+
- More subagent invocations (implementer + 2 reviewers per task)
|
|
249
|
+
- But catches issues early (cheaper than debugging compounded problems later)
|
|
250
|
+
|
|
251
|
+
## Integration with Other Skills
|
|
252
|
+
|
|
253
|
+
### With plan
|
|
254
|
+
|
|
255
|
+
This skill EXECUTES plans created by the `plan` skill:
|
|
256
|
+
1. User requirements → plan → implementation plan
|
|
257
|
+
2. Implementation plan → subagent-driven-development → working code
|
|
258
|
+
|
|
259
|
+
### With test-driven-development
|
|
260
|
+
|
|
261
|
+
Implementer subagents should follow TDD:
|
|
262
|
+
1. Write failing test first
|
|
263
|
+
2. Implement minimal code
|
|
264
|
+
3. Verify test passes
|
|
265
|
+
4. Commit
|
|
266
|
+
|
|
267
|
+
Include TDD instructions in every implementer context.
|
|
268
|
+
|
|
269
|
+
### With requesting-code-review
|
|
270
|
+
|
|
271
|
+
The two-stage review process IS the code review. For final integration review, use the requesting-code-review skill's review dimensions.
|
|
272
|
+
|
|
273
|
+
### With systematic-debugging
|
|
274
|
+
|
|
275
|
+
If a subagent encounters bugs during implementation:
|
|
276
|
+
1. Follow systematic-debugging process
|
|
277
|
+
2. Find root cause before fixing
|
|
278
|
+
3. Write regression test
|
|
279
|
+
4. Resume implementation
|
|
280
|
+
|
|
281
|
+
## Example Workflow
|
|
282
|
+
|
|
283
|
+
```
|
|
284
|
+
[Read plan: docs/plans/auth-feature.md]
|
|
285
|
+
[Create todo list with 5 tasks]
|
|
286
|
+
|
|
287
|
+
--- Task 1: Create User model ---
|
|
288
|
+
[Dispatch implementer subagent]
|
|
289
|
+
Implementer: "Should email be unique?"
|
|
290
|
+
You: "Yes, email must be unique"
|
|
291
|
+
Implementer: Implemented, 3/3 tests passing, committed.
|
|
292
|
+
|
|
293
|
+
[Dispatch spec reviewer]
|
|
294
|
+
Spec reviewer: ✅ PASS — all requirements met
|
|
295
|
+
|
|
296
|
+
[Dispatch quality reviewer]
|
|
297
|
+
Quality reviewer: ✅ APPROVED — clean code, good tests
|
|
298
|
+
|
|
299
|
+
[Mark Task 1 complete]
|
|
300
|
+
|
|
301
|
+
--- Task 2: Password hashing ---
|
|
302
|
+
[Dispatch implementer subagent]
|
|
303
|
+
Implementer: No questions, implemented, 5/5 tests passing.
|
|
304
|
+
|
|
305
|
+
[Dispatch spec reviewer]
|
|
306
|
+
Spec reviewer: ❌ Missing: password strength validation (spec says "min 8 chars")
|
|
307
|
+
|
|
308
|
+
[Implementer fixes]
|
|
309
|
+
Implementer: Added validation, 7/7 tests passing.
|
|
310
|
+
|
|
311
|
+
[Dispatch spec reviewer again]
|
|
312
|
+
Spec reviewer: ✅ PASS
|
|
313
|
+
|
|
314
|
+
[Dispatch quality reviewer]
|
|
315
|
+
Quality reviewer: Important: Magic number 8, extract to constant
|
|
316
|
+
Implementer: Extracted MIN_PASSWORD_LENGTH constant
|
|
317
|
+
Quality reviewer: ✅ APPROVED
|
|
318
|
+
|
|
319
|
+
[Mark Task 2 complete]
|
|
320
|
+
|
|
321
|
+
... (continue for all tasks)
|
|
322
|
+
|
|
323
|
+
[After all tasks: dispatch final integration reviewer]
|
|
324
|
+
[Run full test suite: all passing]
|
|
325
|
+
[Done!]
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
## Remember
|
|
329
|
+
|
|
330
|
+
```
|
|
331
|
+
Fresh subagent per task
|
|
332
|
+
Two-stage review every time
|
|
333
|
+
Spec compliance FIRST
|
|
334
|
+
Code quality SECOND
|
|
335
|
+
Never skip reviews
|
|
336
|
+
Catch issues early
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
**Quality is not an accident. It's the result of systematic process.**
|
|
340
|
+
|
|
341
|
+
## Further reading (load when relevant)
|
|
342
|
+
|
|
343
|
+
When the orchestration involves significant context usage, long review loops, or complex validation checkpoints, load these references for the specific discipline:
|
|
344
|
+
|
|
345
|
+
- **`references/context-budget-discipline.md`** — Four-tier context degradation model (PEAK / GOOD / DEGRADING / POOR), read-depth rules that scale with context window size, and early warning signs of silent degradation. Load when a run will clearly consume significant context (multi-phase plans, many subagents, large artifacts).
|
|
346
|
+
- **`references/gates-taxonomy.md`** — The four canonical gate types (Pre-flight, Revision, Escalation, Abort) with behavior, recovery, and examples. Load when designing or reviewing any workflow that has validation checkpoints — use the vocabulary explicitly so each gate has defined entry, failure behavior, and resumption rules.
|
|
347
|
+
|
|
348
|
+
Both references adapted from gsd-build/get-shit-done (MIT © 2025 Lex Christopherson).
|
|
349
|
+
|
|
350
|
+
## Mandatory actions when this skill is active
|
|
351
|
+
|
|
352
|
+
Before applying this skill:
|
|
353
|
+
- [ ] Read the task requirements fully before acting
|
|
354
|
+
- [ ] Confirm you understand the goal and constraints
|
|
355
|
+
- [ ] Check for existing work or prior context in the codebase
|
|
356
|
+
|
|
357
|
+
While working:
|
|
358
|
+
- [ ] Follow the methodology described above step by step
|
|
359
|
+
- [ ] Document any decisions or findings as you go
|
|
360
|
+
|
|
361
|
+
After completing:
|
|
362
|
+
- [ ] Self-check: does the output satisfy the original requirement?
|
|
363
|
+
- [ ] Verify no regressions or unintended side effects
|
|
364
|
+
|