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

subagent-driven-development

Skill46 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

189 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-git-workflow, chinese-code-review 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.
  • Leodorareluctant259Skill

    chinese-git-workflow

    适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖

    Also in 9 projects that use this

  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • 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 19 projects that use this

  • Tommy-ywSkill

    webhook-subscriptions

    Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.

    Also in 5 projects that use this

  • math-incSkill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 5 projects that use this

  • math-incSkill

    pokemon-player

    Play Pokemon games autonomously via headless emulation. Starts a game server, reads structured game state from RAM, makes strategic decisions, and sends button inputs — all from the terminal.

    Also in 5 projects that use this

  • +3 more from Leodorareluctant259
  • +3 more from math-inc

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 179 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 179 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.