[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76V3HXPWQKJJXMC4YVWJDFR":3,"skill-same:01M76V3HXPWQKJJXMC4YVWJDFR":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M76V3HXPWQKJJXMC4YVWJDFR","subagent-driven-development",null,"Execute plans via delegate_task subagents (2-stage review).","lukemcqueen\u002Fsteadfaste-fleet","lukemcqueen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F405240?v=4","01M757MHPAGRXTJAT46SKZP98R","Luke McQueen","01M757MHPZ573KP8DT9GB8SBQ7",4,"MIT","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fsubagent-driven-development\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: subagent-driven-development\ndescription: \"Execute plans via delegate_task subagents (2-stage review).\"\nversion: 1.2.0\nauthor: Hermes Agent (adapted from obra\u002Fsuperpowers)\nlicense: MIT\nplatforms: [linux, macos, windows]\nmetadata:\n  hermes:\n    tags: [delegation, subagent, implementation, workflow, parallel]\n    related_skills: [writing-plans, code-review, change-test-loop]\n---\n\n# Subagent-Driven Development\n\n## Overview\n\nExecute implementation plans by dispatching fresh subagents per task with systematic two-stage review.\n\n**Core principle:** Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration.\n\n## When to Use\n\nUse this skill when:\n- You have an implementation plan (from writing-plans skill or user requirements)\n- Tasks are mostly independent\n- Quality and spec compliance are important\n- You want automated review between tasks\n\n**vs. manual execution:**\n- Fresh context per task (no confusion from accumulated state)\n- Automated review process catches issues early\n- Consistent quality checks across all tasks\n- Subagents can ask questions before starting work\n\n---\n\n## Delegation Decision Matrix\n\nNot every task needs subagent delegation. Use this matrix to decide:\n\n| Task type | Handle directly | Delegate |\n|---|---|---|\n| Research, planning, analysis | ✓ | ✗ |\n| Simple file edits (1–2 files) | ✓ | optional |\n| Complex code changes (3+ files) | ✗ | ✓ |\n| Test-heavy changes | ✗ | ✓ |\n| Large refactors | ✗ | ✓ |\n| Multi-agent parallel work | ✓ (delegate_task) | — |\n| Cross-session memory, cron, messaging | ✓ | ✗ |\n| Skill authoring\u002Fmaintenance | ✓ | ✗ |\n\n**Choose the smallest safe path:**\n- Simple (1–2 files): tools directly, no subagent\n- Complex (3+ files): delegate_task with full context\n- Research: tools directly or parallel delegate_task for multi-angle\n\n---\n\n## Security Boundaries\n\n**Never delegate to a subagent:**\n- `.env` file operations, key management, credential handling\n- Direct production data access\n- Session token or SSH key operations\n- Any operation that reads or exposes secrets\n\n**Never include in subagent context:**\n- API keys, tokens, passwords, private keys\n- Environment variable values\n- Session tokens or auth cookies\n\n**Safe for delegation:**\n- Code changes in project directories\n- Test writing and execution\n- Documentation updates\n- Non-secret config changes\n- Git operations (except `git push` without approval)\n\n**Subagent isolation guarantees:**\n- Isolated terminal session per subagent\n- No access to orchestrator skills, memory, or cron\n- No access to messaging platforms\n- No nested delegation (subagents cannot delegate further)\n\n---\n\n## The Process\n\n### 1. Read and Parse Plan\n\nRead the plan file. Extract ALL tasks with their full text and context upfront. Create a todo list:\n\n```python\n# Read the plan\nread_file(\"docs\u002Fplans\u002Ffeature-plan.md\")\n\n# Create todo list with all tasks\ntodo([\n    {\"id\": \"task-1\", \"content\": \"Create User model with email field\", \"status\": \"pending\"},\n    {\"id\": \"task-2\", \"content\": \"Add password hashing utility\", \"status\": \"pending\"},\n    {\"id\": \"task-3\", \"content\": \"Create login endpoint\", \"status\": \"pending\"},\n])\n```\n\n**Key:** Read the plan ONCE. Extract everything. Don't make subagents read the plan file — provide the full task text directly in context.\n\n### 2. Per-Task Workflow\n\nFor EACH task in the plan:\n\n#### Step 1: Dispatch Implementer Subagent\n\nUse `delegate_task` with complete context:\n\n```python\ndelegate_task(\n    goal=\"Implement Task 1: Create User model with email and password_hash fields\",\n    context=\"\"\"\n    TASK FROM PLAN:\n    - Create: src\u002Fmodels\u002Fuser.py\n    - Add User class with email (str) and password_hash (str) fields\n    - Use bcrypt for password hashing\n    - Include __repr__ for debugging\n\n    FOLLOW TDD:\n    1. Write failing test in tests\u002Fmodels\u002Ftest_user.py\n    2. Run: pytest tests\u002Fmodels\u002Ftest_user.py -v (verify FAIL)\n    3. Write minimal implementation\n    4. Run: pytest tests\u002Fmodels\u002Ftest_user.py -v (verify PASS)\n    5. Run: pytest tests\u002F -q (verify no regressions)\n    6. Commit: git add -A && git commit -m \"feat: add User model with password hashing\"\n\n    PROJECT CONTEXT:\n    - Python 3.11, Flask app in src\u002Fapp.py\n    - Existing models in src\u002Fmodels\u002F\n    - Tests use pytest, run from project root\n    - bcrypt already in requirements.txt\n    \"\"\",\n    toolsets=['terminal', 'file']\n)\n```\n\n#### Step 2: Dispatch Spec Compliance Reviewer\n\nAfter the implementer completes, verify against the original spec:\n\n```python\ndelegate_task(\n    goal=\"Review if implementation matches the spec from the plan\",\n    context=\"\"\"\n    ORIGINAL TASK SPEC:\n    - Create src\u002Fmodels\u002Fuser.py with User class\n    - Fields: email (str), password_hash (str)\n    - Use bcrypt for password hashing\n    - Include __repr__\n\n    CHECK:\n    - [ ] All requirements from spec implemented?\n    - [ ] File paths match spec?\n    - [ ] Function signatures match spec?\n    - [ ] Behavior matches expected?\n    - [ ] Nothing extra added (no scope creep)?\n\n    OUTPUT: PASS or list of specific spec gaps to fix.\n    \"\"\",\n    toolsets=['file']\n)\n```\n\n**If spec issues found:** Fix gaps, then re-run spec review. Continue only when spec-compliant.\n\n#### Step 3: Dispatch Code Quality Reviewer\n\nAfter spec compliance passes:\n\n```python\ndelegate_task(\n    goal=\"Review code quality for Task 1 implementation\",\n    context=\"\"\"\n    FILES TO REVIEW:\n    - src\u002Fmodels\u002Fuser.py\n    - tests\u002Fmodels\u002Ftest_user.py\n\n    CHECK:\n    - [ ] Follows project conventions and style?\n    - [ ] Proper error handling?\n    - [ ] Clear variable\u002Ffunction names?\n    - [ ] Adequate test coverage?\n    - [ ] No obvious bugs or missed edge cases?\n    - [ ] No security issues?\n\n    OUTPUT FORMAT:\n    - Critical Issues: [must fix before proceeding]\n    - Important Issues: [should fix]\n    - Minor Issues: [optional]\n    - Verdict: APPROVED or REQUEST_CHANGES\n    \"\"\",\n    toolsets=['file']\n)\n```\n\n**If quality issues found:** Fix issues, re-review. Continue only when approved.\n\n#### Step 4: Mark Complete\n\n```python\ntodo([{\"id\": \"task-1\", \"content\": \"Create User model with email field\", \"status\": \"completed\"}], merge=True)\n```\n\n### 3. Final Review\n\nAfter ALL tasks are complete, dispatch a final integration reviewer:\n\n```python\ndelegate_task(\n    goal=\"Review the entire implementation for consistency and integration issues\",\n    context=\"\"\"\n    All tasks from the plan are complete. Review the full implementation:\n    - Do all components work together?\n    - Any inconsistencies between tasks?\n    - All tests passing?\n    - Ready for merge?\n    \"\"\",\n    toolsets=['terminal', 'file']\n)\n```\n\n### 4. Verify and Commit\n\n```bash\n# Run full test suite\npytest tests\u002F -q\n\n# Review all changes\ngit diff --stat\n\n# Final commit if needed\ngit add -A && git commit -m \"feat: complete [feature name] implementation\"\n```\n\n---\n\n## Result Verification\n\nSubagent summaries are **self-reports — always verify independently.**\n\nAfter every subagent returns, run this triad before trusting its output:\n\n| Step | Action | Catches |\n|---|---|---|\n| 1. **Stat** | `stat \u003Cfile>` or `ls -la` | Phantom files, wrong paths |\n| 2. **Read back** | `read_file(\u003Ccritical files>)` | Wrong content, incomplete impl |\n| 3. **Test** | Run tests (`pytest`, `.\u002Frun test`) | Broken logic, regressions |\n\n**If any check fails:** dispatch a fix subagent with specific instructions about what was wrong. Do not fix manually in the orchestrator session — context pollution leads to cascading errors.\n\n**Never trust a subagent that says \"uploaded successfully\" without returning a verifiable handle** (URL, file path, HTTP status code). Fetch, stat, or read back to confirm.\n\n---\n\n## Task Granularity\n\n**Each task = 2-5 minutes of focused work.**\n\n**Too big:**\n- \"Implement user authentication system\"\n\n**Right size:**\n- \"Create User model with email and password fields\"\n- \"Add password hashing function\"\n- \"Create login endpoint\"\n- \"Add JWT token generation\"\n- \"Create registration endpoint\"\n\n## Red Flags — Never Do These\n\n- Start implementation without a plan\n- Skip reviews (spec compliance OR code quality)\n- Proceed with unfixed critical\u002Fimportant issues\n- Dispatch multiple implementation subagents for tasks that touch the same files\n- Make subagent read the plan file (provide full text in context instead)\n- Skip scene-setting context (subagent needs to understand where the task fits)\n- Ignore subagent questions (answer before letting them proceed)\n- Accept \"close enough\" on spec compliance\n- Skip review loops (reviewer found issues → implementer fixes → review again)\n- Let implementer self-review replace actual review (both are needed)\n- **Start code quality review before spec compliance is PASS** (wrong order)\n- Move to next task while either review has open issues\n\n## Handling Issues\n\n### If Subagent Asks Questions\n\n- Answer clearly and completely\n- Provide additional context if needed\n- Don't rush them into implementation\n\n### If Reviewer Finds Issues\n\n- Implementer subagent (or a new one) fixes them\n- Reviewer reviews again\n- Repeat until approved\n- Don't skip the re-review\n\n### If Subagent Fails a Task\n\n- Dispatch a new fix subagent with specific instructions about what went wrong\n- Don't try to fix manually in the controller session (context pollution)\n\n## Efficiency Notes\n\n**Why fresh subagent per task:**\n- Prevents context pollution from accumulated state\n- Each subagent gets clean, focused context\n- No confusion from prior tasks' code or reasoning\n\n**Why two-stage review:**\n- Spec review catches under\u002Fover-building early\n- Quality review ensures the implementation is well-built\n- Catches issues before they compound across tasks\n\n**Cost trade-off:**\n- More subagent invocations (implementer + 2 reviewers per task)\n- But catches issues early (cheaper than debugging compounded problems later)\n\n## Integration with Other Skills\n\n### With writing-plans\n\nThis skill EXECUTES plans created by the writing-plans skill:\n1. User requirements → writing-plans → implementation plan\n2. Implementation plan → subagent-driven-development → working code\n\n### With change-test-loop\n\nImplementer subagents should follow TDD:\n1. Write failing test first\n2. Implement minimal code\n3. Verify test passes\n4. Commit\n\nInclude TDD instructions in every implementer context.\n\n### With code-review\n\nThe two-stage review process IS the code review. For final integration review, use the code-review skill's review dimensions.\n\n### With root-cause-debugging\n\nIf a subagent encounters bugs during implementation:\n1. Follow root-cause-debugging process\n2. Find root cause before fixing\n3. Write regression test\n4. Resume implementation\n\n## Example Workflow\n\n```\n[Read plan: docs\u002Fplans\u002Fauth-feature.md]\n[Create todo list with 5 tasks]\n\n--- Task 1: Create User model ---\n[Dispatch implementer subagent]\n  Implementer: \"Should email be unique?\"\n  You: \"Yes, email must be unique\"\n  Implementer: Implemented, 3\u002F3 tests passing, committed.\n\n[Dispatch spec reviewer]\n  Spec reviewer: ✅ PASS — all requirements met\n\n[Dispatch quality reviewer]\n  Quality reviewer: ✅ APPROVED — clean code, good tests\n\n[Mark Task 1 complete]\n\n--- Task 2: Password hashing ---\n[Dispatch implementer subagent]\n  Implementer: No questions, implemented, 5\u002F5 tests passing.\n\n[Dispatch spec reviewer]\n  Spec reviewer: ❌ Missing: password strength validation (spec says \"min 8 chars\")\n\n[Implementer fixes]\n  Implementer: Added validation, 7\u002F7 tests passing.\n\n[Dispatch spec reviewer again]\n  Spec reviewer: ✅ PASS\n\n[Dispatch quality reviewer]\n  Quality reviewer: Important: Magic number 8, extract to constant\n  Implementer: Extracted MIN_PASSWORD_LENGTH constant\n  Quality reviewer: ✅ APPROVED\n\n[Mark Task 2 complete]\n\n... (continue for all tasks)\n\n[After all tasks: dispatch final integration reviewer]\n[Run full test suite: all passing]\n[Done!]\n```\n\n## Remember\n\n```\nFresh subagent per task\nTwo-stage review every time\nSpec compliance FIRST\nCode quality SECOND\nNever skip reviews\nCatch issues early\n```\n\n**Quality is not an accident. It's the result of systematic process.**\n\n## Further reading (load when relevant)\n\nWhen the orchestration involves significant context usage, long review loops, or complex validation checkpoints, load these references for the specific discipline:\n\n- **`references\u002Fcontext-budget-discipline.md`** — Four-tier context degradation model (PEAK \u002F GOOD \u002F DEGRADING \u002F 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).\n- **`references\u002Fgates-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.\n\nBoth references adapted from gsd-build\u002Fget-shit-done (MIT © 2025 Lex Christopherson).\n","# Subagent-Driven Development\n\n## Overview\n\nExecute implementation plans by dispatching fresh subagents per task with systematic two-stage review.\n\n**Core principle:** Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration.\n\n## When to Use\n\nUse this skill when:\n- You have an implementation plan (from writing-plans skill or user requirements)\n- Tasks are mostly independent\n- Quality and spec compliance are important\n- You want automated review between tasks\n\n**vs. manual execution:**\n- Fresh context per task (no confusion from accumulated state)\n- Automated review process catches issues early\n- Consistent quality checks across all tasks\n- Subagents can ask questions before starting work\n\n---\n\n## Delegation Decision Matrix\n\nNot every task needs subagent delegation. Use this matrix to decide:\n\n| Task type | Handle directly | Delegate |\n|---|---|---|\n| Research, planning, analysis | ✓ | ✗ |\n| Simple file edits (1–2 files) | ✓ | optional |\n| Complex code changes (3+ files) | ✗ | ✓ |\n| Test-heavy changes | ✗ | ✓ |\n| Large refactors | ✗ | ✓ |\n| Multi-agent parallel work | ✓ (delegate_task) | — |\n| Cross-session memory, cron, messaging | ✓ | ✗ |\n| Skill authoring\u002Fmaintenance | ✓ | ✗ |\n\n**Choose the smallest safe path:**\n- Simple (1–2 files): tools directly, no subagent\n- Complex (3+ files): delegate_task with full context\n- Research: tools directly or parallel delegate_task for multi-angle\n\n---\n\n## Security Boundaries\n\n**Never delegate to a subagent:**\n- `.env` file operations, key management, credential handling\n- Direct production data access\n- Session token or SSH key operations\n- Any operation that reads or exposes secrets\n\n**Never include in subagent context:**\n- API keys, tokens, passwords, private keys\n- Environment variable values\n- Session tokens or auth cookies\n\n**Safe for delegation:**\n- Code changes in project directories\n- Test writing and execution\n- Documentation updates\n- Non-secret config changes\n- Git operations (except `git push` without approval)\n\n**Subagent isolation guarantees:**\n- Isolated terminal session per subagent\n- No access to orchestrator skills, memory, or cron\n- No access to messaging platforms\n- No nested delegation (subagents cannot delegate further)\n\n---\n\n## The Process\n\n### 1. Read and Parse Plan\n\nRead the plan file. Extract ALL tasks with their full text and context upfront. Create a todo list:\n\n```python\n# Read the plan\nread_file(\"docs\u002Fplans\u002Ffeature-plan.md\")\n\n# Create todo list with all tasks\ntodo([\n    {\"id\": \"task-1\", \"content\": \"Create User model with email field\", \"status\": \"pending\"},\n    {\"id\": \"task-2\", \"content\": \"Add password hashing utility\", \"status\": \"pending\"},\n    {\"id\": \"task-3\", \"content\": \"Create login endpoint\", \"status\": \"pending\"},\n])\n```\n\n**Key:** Read the plan ONCE. Extract everything. Don't make subagents read the plan file — provide the full task text directly in context.\n\n### 2. Per-Task Workflow\n\nFor EACH task in the plan:\n\n#### Step 1: Dispatch Implementer Subagent\n\nUse `delegate_task` with complete context:\n\n```python\ndelegate_task(\n    goal=\"Implement Task 1: Create User model with email and password_hash fields\",\n    context=\"\"\"\n    TASK FROM PLAN:\n    - Create: src\u002Fmodels\u002Fuser.py\n    - Add User class with email (str) and password_hash (str) fields\n    - Use bcrypt for password hashing\n    - Include __repr__ for debugging\n\n    FOLLOW TDD:\n    1. Write failing test in tests\u002Fmodels\u002Ftest_user.py\n    2. Run: pytest tests\u002Fmodels\u002Ftest_user.py -v (verify FAIL)\n    3. Write minimal implementation\n    4. Run: pytest tests\u002Fmodels\u002Ftest_user.py -v (verify PASS)\n    5. Run: pytest tests\u002F -q (verify no regressions)\n    6. Commit: git add -A && git commit -m \"feat: add User model with password hashing\"\n\n    PROJECT CONTEXT:\n    - Python 3.11, Flask app in src\u002Fapp.py\n    - Existing models in src\u002Fmodels\u002F\n    - Tests use pytest, run from project root\n    - bcrypt already in requirements.txt\n    \"\"\",\n    toolsets=['terminal', 'file']\n)\n```\n\n#### Step 2: Dispatch Spec Compliance Reviewer\n\nAfter the implementer completes, verify against the original spec:\n\n```python\ndelegate_task(\n    goal=\"Review if implementation matches the spec from the plan\",\n    context=\"\"\"\n    ORIGINAL TASK SPEC:\n    - Create src\u002Fmodels\u002Fuser.py with User class\n    - Fields: email (str), password_hash (str)\n    - Use bcrypt for password hashing\n    - Include __repr__\n\n    CHECK:\n    - [ ] All requirements from spec implemented?\n    - [ ] File paths match spec?\n    - [ ] Function signatures match spec?\n    - [ ] Behavior matches expected?\n    - [ ] Nothing extra added (no scope creep)?\n\n    OUTPUT: PASS or list of specific spec gaps to fix.\n    \"\"\",\n    toolsets=['file']\n)\n```\n\n**If spec issues found:** Fix gaps, then re-run spec review. Continue only when spec-compliant.\n\n#### Step 3: Dispatch Code Quality Reviewer\n\nAfter spec compliance passes:\n\n```python\ndelegate_task(\n    goal=\"Review code quality for Task 1 implementation\",\n    context=\"\"\"\n    FILES TO REVIEW:\n    - src\u002Fmodels\u002Fuser.py\n    - tests\u002Fmodels\u002Ftest_user.py\n\n    CHECK:\n    - [ ] Follows project conventions and style?\n    - [ ] Proper error handling?\n    - [ ] Clear variable\u002Ffunction names?\n    - [ ] Adequate test coverage?\n    - [ ] No obvious bugs or missed edge cases?\n    - [ ] No security issues?\n\n    OUTPUT FORMAT:\n    - Critical Issues: [must fix before proceeding]\n    - Important Issues: [should fix]\n    - Minor Issues: [optional]\n    - Verdict: APPROVED or REQUEST_CHANGES\n    \"\"\",\n    toolsets=['file']\n)\n```\n\n**If quality issues found:** Fix issues, re-review. Continue only when approved.\n\n#### Step 4: Mark Complete\n\n```python\ntodo([{\"id\": \"task-1\", \"content\": \"Create User model with email field\", \"status\": \"completed\"}], merge=True)\n```\n\n### 3. Final Review\n\nAfter ALL tasks are complete, dispatch a final integration reviewer:\n\n```python\ndelegate_task(\n    goal=\"Review the entire implementation for consistency and integration issues\",\n    context=\"\"\"\n    All tasks from the plan are complete. Review the full implementation:\n    - Do all components work together?\n    - Any inconsistencies between tasks?\n    - All tests passing?\n    - Ready for merge?\n    \"\"\",\n    toolsets=['terminal', 'file']\n)\n```\n\n### 4. Verify and Commit\n\n```bash\n# Run full test suite\npytest tests\u002F -q\n\n# Review all changes\ngit diff --stat\n\n# Final commit if needed\ngit add -A && git commit -m \"feat: complete [feature name] implementation\"\n```\n\n---\n\n## Result Verification\n\nSubagent summaries are **self-reports — always verify independently.**\n\nAfter every subagent returns, run this triad before trusting its output:\n\n| Step | Action | Catches |\n|---|---|---|\n| 1. **Stat** | `stat \u003Cfile>` or `ls -la` | Phantom files, wrong paths |\n| 2. **Read back** | `read_file(\u003Ccritical files>)` | Wrong content, incomplete impl |\n| 3. **Test** | Run tests (`pytest`, `.\u002Frun test`) | Broken logic, regressions |\n\n**If any check fails:** dispatch a fix subagent with specific instructions about what was wrong. Do not fix manually in the orchestrator session — context pollution leads to cascading errors.\n\n**Never trust a subagent that says \"uploaded successfully\" without returning a verifiable handle** (URL, file path, HTTP status code). Fetch, stat, or read back to confirm.\n\n---\n\n## Task Granularity\n\n**Each task = 2-5 minutes of focused work.**\n\n**Too big:**\n- \"Implement user authentication system\"\n\n**Right size:**\n- \"Create User model with email and password fields\"\n- \"Add password hashing function\"\n- \"Create login endpoint\"\n- \"Add JWT token generation\"\n- \"Create registration endpoint\"\n\n## Red Flags — Never Do These\n\n- Start implementation without a plan\n- Skip reviews (spec compliance OR code quality)\n- Proceed with unfixed critical\u002Fimportant issues\n- Dispatch multiple implementation subagents for tasks that touch the same files\n- Make subagent read the plan file (provide full text in context instead)\n- Skip scene-setting context (subagent needs to understand where the task fits)\n- Ignore subagent questions (answer before letting them proceed)\n- Accept \"close enough\" on spec compliance\n- Skip review loops (reviewer found issues → implementer fixes → review again)\n- Let implementer self-review replace actual review (both are needed)\n- **Start code quality review before spec compliance is PASS** (wrong order)\n- Move to next task while either review has open issues\n\n## Handling Issues\n\n### If Subagent Asks Questions\n\n- Answer clearly and completely\n- Provide additional context if needed\n- Don't rush them into implementation\n\n### If Reviewer Finds Issues\n\n- Implementer subagent (or a new one) fixes them\n- Reviewer reviews again\n- Repeat until approved\n- Don't skip the re-review\n\n### If Subagent Fails a Task\n\n- Dispatch a new fix subagent with specific instructions about what went wrong\n- Don't try to fix manually in the controller session (context pollution)\n\n## Efficiency Notes\n\n**Why fresh subagent per task:**\n- Prevents context pollution from accumulated state\n- Each subagent gets clean, focused context\n- No confusion from prior tasks' code or reasoning\n\n**Why two-stage review:**\n- Spec review catches under\u002Fover-building early\n- Quality review ensures the implementation is well-built\n- Catches issues before they compound across tasks\n\n**Cost trade-off:**\n- More subagent invocations (implementer + 2 reviewers per task)\n- But catches issues early (cheaper than debugging compounded problems later)\n\n## Integration with Other Skills\n\n### With writing-plans\n\nThis skill EXECUTES plans created by the writing-plans skill:\n1. User requirements → writing-plans → implementation plan\n2. Implementation plan → subagent-driven-development → working code\n\n### With change-test-loop\n\nImplementer subagents should follow TDD:\n1. Write failing test first\n2. Implement minimal code\n3. Verify test passes\n4. Commit\n\nInclude TDD instructions in every implementer context.\n\n### With code-review\n\nThe two-stage review process IS the code review. For final integration review, use the code-review skill's review dimensions.\n\n### With root-cause-debugging\n\nIf a subagent encounters bugs during implementation:\n1. Follow root-cause-debugging process\n2. Find root cause before fixing\n3. Write regression test\n4. Resume implementation\n\n## Example Workflow\n\n```\n[Read plan: docs\u002Fplans\u002Fauth-feature.md]\n[Create todo list with 5 tasks]\n\n--- Task 1: Create User model ---\n[Dispatch implementer subagent]\n  Implementer: \"Should email be unique?\"\n  You: \"Yes, email must be unique\"\n  Implementer: Implemented, 3\u002F3 tests passing, committed.\n\n[Dispatch spec reviewer]\n  Spec reviewer: ✅ PASS — all requirements met\n\n[Dispatch quality reviewer]\n  Quality reviewer: ✅ APPROVED — clean code, good tests\n\n[Mark Task 1 complete]\n\n--- Task 2: Password hashing ---\n[Dispatch implementer subagent]\n  Implementer: No questions, implemented, 5\u002F5 tests passing.\n\n[Dispatch spec reviewer]\n  Spec reviewer: ❌ Missing: password strength validation (spec says \"min 8 chars\")\n\n[Implementer fixes]\n  Implementer: Added validation, 7\u002F7 tests passing.\n\n[Dispatch spec reviewer again]\n  Spec reviewer: ✅ PASS\n\n[Dispatch quality reviewer]\n  Quality reviewer: Important: Magic number 8, extract to constant\n  Implementer: Extracted MIN_PASSWORD_LENGTH constant\n  Quality reviewer: ✅ APPROVED\n\n[Mark Task 2 complete]\n\n... (continue for all tasks)\n\n[After all tasks: dispatch final integration reviewer]\n[Run full test suite: all passing]\n[Done!]\n```\n\n## Remember\n\n```\nFresh subagent per task\nTwo-stage review every time\nSpec compliance FIRST\nCode quality SECOND\nNever skip reviews\nCatch issues early\n```\n\n**Quality is not an accident. It's the result of systematic process.**\n\n## Further reading (load when relevant)\n\nWhen the orchestration involves significant context usage, long review loops, or complex validation checkpoints, load these references for the specific discipline:\n\n- **`references\u002Fcontext-budget-discipline.md`** — Four-tier context degradation model (PEAK \u002F GOOD \u002F DEGRADING \u002F 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).\n- **`references\u002Fgates-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.\n\nBoth references adapted from gsd-build\u002Fget-shit-done (MIT © 2025 Lex Christopherson).\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"platforms":38,"description":7},"Hermes Agent (adapted from obra\u002Fsuperpowers)","1.2.0",{"hermes":27},{"tags":28,"related_skills":34},[29,30,31,32,33],"delegation","subagent","implementation","workflow","parallel",[35,36,37],"writing-plans","code-review","change-test-loop",[39,40,41],"linux","macos","windows","main","6509c2742680f6f230c89044437ab43c0e29d530","skills\u002Fsoftware-development\u002Fsubagent-driven-development",1,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet","steadfaste.com","https:\u002F\u002Fgithub.com\u002Flukemcqueen","AI Architect | Building Hermes Cortex: governed multi-agent AI for autonomous software engineering | Enterprise Tech Consultant","2026-11-14 22:33:34",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill subagent-driven-development",{"tool":57,"command":58},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill subagent-driven-development",{"tool":60,"command":61},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill subagent-driven-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fsubagent-driven-development\u002FSKILL.md",true,[65,71],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fcontext-budget-discipline.md","REFERENCE","参考文档",4209,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fsubagent-driven-development\u002Freferences\u002Fcontext-budget-discipline.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fgates-taxonomy.md",4668,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fsubagent-driven-development\u002Freferences\u002Fgates-taxonomy.md",[76,84,91,98,105,112],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":83},"01M7DXY4G8NSVB59K8B6S2AQNP","macbook-linux-maintenance","Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":83},"01M7DXXYJCXFJ3TGB84ZQ8KFE6","governance-regression-triage","Triage a host's governance issues: what changed.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-regression-triage\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":83},"01M7DXXSAP1G8FDRJAMXQGBBMK","enforcement-immutability","Use when enforcement files lose their immutable flag.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fenforcement-immutability\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":83},"01M78SSDQVRYX64Y16X32TC0NS","steadfaste-fleet-repo-deploy","Use when committing to the steadfaste-fleet repo.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-repo-deploy\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":83},"01M78SS928F3R2RJAYVW4E30CE","steadfaste-fleet-maintenance","Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-maintenance\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":83},"01M78SP1CHW0T0BWE5ZT6JBPX8","fleet-preflight","DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its \"Repo-Specific Pre-Flight\" section covers git search, Hermes boundary, and deployment verification.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Ffleet-preflight\u002FSKILL.md",[],[]]