agentleFS
carsteneucarsteneu/yesmem/skills/bundled-skills/subagent-driven-development/SKILL.md

subagent-driven-development

Skill42 starsChanged 8 months agoApache-2.0View on GitHub

Use when executing implementation plans with independent tasks in the current session - dispatches visible YesMem swarm agents per task with two-stage review

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

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 145 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write the full task text + context into the scratchpad auftrag.

    line 113
  2. Very specific:

    Model selection: Use haiku for mechanical tasks (1-2 files, clear spec), sonnet for integration tasks, opus for architecture/judgment tasks.

    line 115
  3. Distinctive:

    Always: stop agents after their task is done (no zombies)

    line 190

“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

Swarm-Driven Development

Execute plans by dispatching visible YesMem swarm agents per task, with two-stage review (spec compliance, then code quality) after each.

Overrides superpowers:subagent-driven-development — uses YesMem swarm (spawn_agent, scratchpad, send_to) instead of invisible Claude Code Agent tool. All agents run in separate visible terminals.

When to Use

  • Have an implementation plan with mostly independent tasks
  • Want to stay in current session as orchestrator
  • Want to SEE agent work in real-time (vs. invisible subagents)

Core Tools

ToolReplacesPurpose
spawn_agent(project, section, model?)Agent toolSpawn visible agent in own terminal
scratchpad_write(project, section, content)Agent prompt parameterPass task context to agent
scratchpad_read(project, section)Agent return valueRead agent results
send_to(target, content)Inline resultAgent notifications
relay_agent(to, content)N/A (new)Inject instructions into running agent
stop_agent(to)AutomaticExplicit agent cleanup
list_agents(project)N/AMonitor agent status

Process

digraph process {
    rankdir=TB;

    subgraph cluster_setup {
        label="Setup";
        "Read plan, extract all tasks" [shape=box];
        "Choose project name" [shape=box];
        "Write plan to scratchpad" [shape=box];
        "whoami() for caller_session" [shape=box];
    }

    subgraph cluster_per_task {
        label="Per Task";
        "Write auftrag-impl-N to scratchpad" [shape=box];
        "spawn_agent(section=impl-N)" [shape=box];
        "Wait for DONE via send_to" [shape=box];
        "Handle status" [shape=diamond];
        "Write auftrag-spec-review-N" [shape=box];
        "spawn_agent(section=spec-review-N)" [shape=box];
        "Spec PASS?" [shape=diamond];
        "relay_agent impl-N with fix instructions" [shape=box];
        "Write auftrag-quality-review-N" [shape=box];
        "spawn_agent(section=quality-review-N)" [shape=box];
        "Quality PASS?" [shape=diamond];
        "relay_agent impl-N with quality fixes" [shape=box];
        "stop_agent all three" [shape=box];
    }

    "More tasks?" [shape=diamond];
    "Final review + finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];

    "Read plan, extract all tasks" -> "Choose project name";
    "Choose project name" -> "Write plan to scratchpad";
    "Write plan to scratchpad" -> "whoami() for caller_session";
    "whoami() for caller_session" -> "Write auftrag-impl-N to scratchpad";

    "Write auftrag-impl-N to scratchpad" -> "spawn_agent(section=impl-N)";
    "spawn_agent(section=impl-N)" -> "Wait for DONE via send_to";
    "Wait for DONE via send_to" -> "Handle status";
    "Handle status" -> "Write auftrag-spec-review-N" [label="DONE"];
    "Handle status" -> "relay_agent impl-N with fix instructions" [label="NEEDS_CONTEXT"];
    "Handle status" -> "Write auftrag-impl-N to scratchpad" [label="BLOCKED\n(re-dispatch)"];

    "Write auftrag-spec-review-N" -> "spawn_agent(section=spec-review-N)";
    "spawn_agent(section=spec-review-N)" -> "Spec PASS?";
    "Spec PASS?" -> "relay_agent impl-N with fix instructions" [label="FAIL"];
    "relay_agent impl-N with fix instructions" -> "spawn_agent(section=spec-review-N)" [label="re-review"];
    "Spec PASS?" -> "Write auftrag-quality-review-N" [label="PASS"];

    "Write auftrag-quality-review-N" -> "spawn_agent(section=quality-review-N)";
    "spawn_agent(section=quality-review-N)" -> "Quality PASS?";
    "Quality PASS?" -> "relay_agent impl-N with quality fixes" [label="FAIL"];
    "relay_agent impl-N with quality fixes" -> "spawn_agent(section=quality-review-N)" [label="re-review"];
    "Quality PASS?" -> "stop_agent all three" [label="PASS"];

    "stop_agent all three" -> "More tasks?";
    "More tasks?" -> "Write auftrag-impl-N to scratchpad" [label="yes"];
    "More tasks?" -> "Final review + finishing-a-development-branch" [label="no"];
}

Setup Phase

1. Read plan file — extract ALL tasks with full text (don't make agents read the plan)
2. Choose project name (e.g. "feature-auth")
3. whoami() → get your session_id for caller_session
4. scratchpad_write(project, section="plan", content=full plan text)

Per-Task Cycle

1. Dispatch Implementer

scratchpad_write(project=PROJECT, section="auftrag-impl-N", content=IMPLEMENTER_PROMPT)
spawn_agent(project=PROJECT, section="impl-N",
            caller_session=MY_SESSION, model=MODEL_CHOICE)

Write the full task text + context into the scratchpad auftrag. See implementer-prompt.md for template.

Model selection: Use haiku for mechanical tasks (1-2 files, clear spec), sonnet for integration tasks, opus for architecture/judgment tasks.

2. Wait for Implementer

Agent sends send_to with status when done. Handle:

StatusAction
DONEProceed to spec review
DONE_WITH_CONCERNSRead concerns from ergebnis-impl-N, address if needed
NEEDS_CONTEXTrelay_agent(to="impl-N", content="CONTEXT: ...") — inject missing info
BLOCKEDAssess: provide more context, re-dispatch with stronger model, or break task down

3. Spec Compliance Review

scratchpad_write(project=PROJECT, section="auftrag-spec-review-N", content=SPEC_REVIEW_PROMPT)
spawn_agent(project=PROJECT, section="spec-review-N",
            caller_session=MY_SESSION, model="sonnet")

See spec-reviewer-prompt.md. Reviewer reads actual code, compares to spec.

  • PASS → proceed to quality review
  • FAIL → relay_agent(to="impl-N", content="FIX: [issues from reviewer]"), then re-review

4. Code Quality Review

scratchpad_write(project=PROJECT, section="auftrag-quality-review-N", content=QUALITY_REVIEW_PROMPT)
spawn_agent(project=PROJECT, section="quality-review-N",
            caller_session=MY_SESSION, model="sonnet")

See code-quality-reviewer-prompt.md. Only after spec compliance passes.

  • PASS → stop all agents for this task, mark complete
  • FAIL → relay_agent(to="impl-N", content="QUALITY: [issues]"), then re-review

5. Cleanup

stop_agent(project=PROJECT, to="impl-N")
stop_agent(project=PROJECT, to="spec-review-N")
stop_agent(project=PROJECT, to="quality-review-N")

Scratchpad Sections (Convention)

SectionWriterContent
planOrchestratorFull plan text
auftrag-impl-NOrchestratorImplementer task with full context
ergebnis-impl-NImplementerImplementation report (status, files, tests)
auftrag-spec-review-NOrchestratorSpec + implementer report for reviewer
ergebnis-spec-review-NSpec ReviewerReview verdict (PASS/FAIL + details)
auftrag-quality-review-NOrchestratorQuality review task
ergebnis-quality-review-NQuality ReviewerQuality verdict

Advantages over Invisible Subagents

  • Visible: Watch agents work in real-time in separate terminals
  • Crash recovery: Daemon auto-restarts crashed agents with quarantine
  • relay_agent: Inject fix instructions into running implementer (no re-spawn needed)
  • Budget control: token_budget and max_turns per agent
  • Model per agent: haiku for simple, opus for complex
  • Status monitoring: list_agents() shows all running agents
  • Persistent results: Scratchpad survives agent crashes

Red Flags

  • Never dispatch implementation agents in parallel (conflicts)
  • Never skip either review stage
  • Never proceed with unfixed review issues
  • Never make agents read the plan file — paste full task text into scratchpad
  • Always stop agents after their task is done (no zombies)
  • Always spec review BEFORE quality review (wrong order = waste)

Integration

  • superpowers:writing-plans — creates the plan this skill executes
  • superpowers:test-driven-development — implementer agents follow TDD
  • superpowers:finishing-a-development-branch — after all tasks complete
  • superpowers:requesting-code-review — template for quality reviewer

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.