agentleFS
weselbenweselben/RooForge/skills/subagent-driven-development/SKILL.md

subagent-driven-development

Skill4 starsChanged 3 months agoApache-2.0View on GitHub

Coordinator-driven parallel implementation — dispatch one implementer subagent per task in its own worktree, per-task review, fix loop, integrate. Load when the plan has independent tasks ready to execute.

153 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use diagnosing-superpowers, workflow-runner and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 6 projects that use this

  • MorningStar0709Skill

    workflow-runner

    Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.

    Also in 5 projects that use this

  • MorningStar0709Skill

    chinese-git-workflow

    Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".

    Also in 4 projects that use this

  • AlexAI-MCPSkill

    native-mcp

    MCP server integration in Claude Code — add servers to .mcp.json, configure transports, and use their tools natively.

    Also in 5 projects that use this

  • shibit-netSkill

    chinese-code-review

    中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • shibit-netSkill

    chinese-commit-conventions

    中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

    Also in 3 projects that use this

  • +1 more from shibit-net

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 145 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Leading word: dispatch + report: Every implementer reports back with the four-item contract (branch, commits, tests, summary).

    line 11
  2. Distinctive:

    Read the plan once. Note Global Constraints.

    line 26
  3. Very specific:

    Create one worktree per task via using-git-worktrees:

    line 28
  4. Distinctive:

    Run project setup + baseline tests in each.

    line 32
  5. Very specific:

    Keep moving without check-ins.

    line 47
  6. Distinctive:

    Never rush an implementer asking questions — answer clearly and completely.

    line 58
  7. Very specific:

    After each DONE, record BASE (integration-branch head the task branched from — never HEAD~1, truncates multi-commit tasks).

    line 62
  8. Distinctive:

    Every round: implementer fixes, re-runs covering tests (name the files — a one-line fix doesn't need full suite), commits, reports same …

    line 85
  9. Very specific:

    Every round ends with a scoped re-review (re-review-prompt.md) over the fix range only (FIX_BASE = previous review's head).

    line 86
  10. Distinctive:

    After all tasks complete, dispatch ONE final reviewer on the most capable available model over the full branch range.

    line 98
  11. Distinctive:

    If findings return, dispatch ONE fix subagent with the complete list.

    line 100
  12. Distinctive:

    Run full test suite on merged result.

    line 105
  13. Very specific:

    Before declaring integration complete, load verification-before-completion — check each subagent's claimed state against git status and …

    line 108

“Common” is measured: kept by at least 6 in 10 of the 145 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Subagent-Driven Development

You are the coordinator. Dispatch a fresh implementer per task — each in its own worktree — review every task (spec compliance + code quality), integrate branches locally. Your context stays clean for coordination.

Leading word: dispatch + report. Every implementer reports back with the four-item contract (branch, commits, tests, summary). You integrate; subagents never merge.

Hard rules

  • Task branches FROM the PR integration branch (dev, feat/*, fix/*), merge back INTO it only. Never main/master — main changes only via PR.
  • One worktree per task: .worktrees/<task-slug>/, branch <task-slug>, off the integration branch.
  • Worktrees share the object store: subagent commits are visible to you immediately. Integration is local merge — no push between subagents and coordinator.
  • Subagents never merge, never present options. They commit in their worktree, verify, report. You decide integration.
  • MANDATORY FIRST in every subagent prompt. Implementer: using-git-worktrees + conventional-commits + caveman-commit + verification-before-completion. Reviewer: add caveman-review.
  • No-ambiguity prompts — see dispatching-parallel-agents "Prompt rules". Every subagent prompt includes broader context (plan, why, what came before, what comes after) AND task context (exact files, exact commands, exact output). STE100 prose: one meaning per word, short sentences, active voice. The subagent must never need to ask a clarifying question — that signal means the prompt was incomplete.

Steps

1. Setup

  1. Read the plan once. Note Global Constraints. Create a todo per task.
  2. Determine the PR integration branch (dev/feat/*/fix/*, never main/master). If unclear, ask before any work.
  3. Create one worktree per task via using-git-worktrees:
    git worktree add ".worktrees/$TASK_SLUG" -b "$TASK_SLUG" "$INTEGRATION_BRANCH"
    Run project setup + baseline tests in each.
  4. Pre-flight scan for conflicts (contradictory tasks, plan text mandating something review treats as a defect). Batch into one question for the user before execution.

Done when: integration branch confirmed, worktrees created with green baselines.

2. Dispatch the swarm

Dispatch all implementers in ONE AgentSwarm call (see dispatching-parallel-agents):

  • prompt_template with {{item}} placeholder
  • Reference template: implementer-prompt.md — fill in the worktree, branch, and per-task spec where indicated
  • subagent_type: coder
  • Each item carries: full task spec, worktree path, branch name, commit instructions, binding global constraints, return contract
  • Up to 10 parallel; independent tasks in one wave, dependent in later waves

Keep moving without check-ins. As each implementer returns, handle its report, dispatch its reviewer, run the fix loop until review is clean/parked/BLOCKED.

3. Handle the implementer report

Implementers report one of four statuses:

  • DONE — dispatch the task reviewer.
  • DONE_WITH_CONCERNS — read concerns. Correctness/scope doubts: address before review. Observations: note and proceed.
  • NEEDS_CONTEXT — provide missing context, resume or re-dispatch.
  • BLOCKED — assess: context problem → provide; needs more reasoning → bigger subagent; too large → split; plan wrong → escalate to human.

Never rush an implementer asking questions — answer clearly and completely.

4. Per-task review

After each DONE, record BASE (integration-branch head the task branched from — never HEAD~1, truncates multi-commit tasks). Generate the diff:

git log --oneline <BASE>..<HEAD>  > /tmp/review-<task-slug>.diff
git diff --stat <BASE>..<HEAD>   >> /tmp/review-<task-slug>.diff
git diff -U10   <BASE>..<HEAD>   >> /tmp/review-<task-slug>.diff

Dispatch a task reviewer (read-only explore) with: task spec, implementer report, diff path, binding global constraints verbatim. Reference template: task-reviewer-prompt.md — fill in TASK_SPEC, REPORT, BASE_SHA, and the diff path. Both verdicts required: spec compliance AND task quality. Implementer self-review never replaces this.

⚠️ "cannot verify from diff" items don't block — resolve each yourself before completion.

5. Fix loop

Triggers: spec ❌, Critical/Important finding, or confirmed ⚠️ gap. Two exits:

  • Minor findings — record as deferred for final review.
  • Plan-mandated findings — present beside plan text, ask which governs.

Everything else loops, 5 rounds max per task:

  • Rounds 1–3: resume the original implementer (Agent(resume=...)) with open findings verbatim — context intact.
  • Rounds 4–5: dispatch fresh implementer — "Prior attempts N times; you own it. Read existing commits for what was tried."
  • Every round: implementer fixes, re-runs covering tests (name the files — a one-line fix doesn't need full suite), commits, reports same contract + covering-test command/output.
  • Every round ends with a scoped re-review (re-review-prompt.md) over the fix range only (FIX_BASE = previous review's head).

Breaker. Round 5 still has findings? Stop dispatching, adjudicate each:

  • Reviewer wrong / contestable → park with ruling (final review sees both).
  • Real but nothing downstream builds on it → park with "real, deferred".
  • Real and load-bearing → STOP. Report BLOCKED with finding, plan text collision, fix history.

Adjudicate only at the cap. Every ruling recorded; silent discard forbidden. Never fix findings yourself — coordinator fixes skip review and pollute context.

6. Final whole-branch review

After all tasks complete, dispatch ONE final reviewer on the most capable available model over the full branch range. Point it at deferred-minor and parked findings for triage.

If findings return, dispatch ONE fix subagent with the complete list. Then one scoped re-review of the fix wave; adjudicate residuals. No second fix wave — residual load-bearing findings surface to the user at handoff.

7. Integrate & finish

  1. Merge each task branch into the integration branch locally via squash: git checkout <integration-branch> && git merge --squash <task-slug> && git commit -m "<conventional-commit>". One commit per task on the integration branch, each a natural Conventional Commit (e.g. feat(api): add user profile endpoint). Never main/master.
  2. Run full test suite on merged result. Red: stop, leave everything in place, investigate (nothing pushed, merge is local + recoverable).
  3. Green: load finishing-a-development-branch for cleanup and PR creation.

Before declaring integration complete, load verification-before-completion — check each subagent's claimed state against git status and full suite run, not against the summary it returned.

Failure modes (no-ops → positive form)

ExcuseReality
"Close enough on spec"Spec gaps = not done. Fix, or hit the cap and adjudicate.
"I'll fix it myself, dispatching is overhead"Coordinator fixes skip review. Resume the implementer.
"One more round will converge"Past the cap, rounds don't converge. Adjudicate and route.
"This finding is obviously wrong"Adjudicate only at the cap, record every ruling.
"The fix was small, skip re-review"Unreviewed fixes = regressions. Every round ends with re-review.
"Subagents can share one worktree"Parallel agents in one tree collide. One per task.
"Subagents should push their branches"Worktrees share object store. Local merge.
"Merge everything to main when done"Main changes only via PR.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.