agentleFS
iqbalhasandeviqbalhasandev/claude-code-config/skills/multi-account-subagent-driven-development/SKILL.md

multi-account-subagent-driven-development

Skill2 starsChanged 26 days agoMITView on GitHub

Execute a Superpowers implementation plan where each task is implemented by a second Claude account (worker-task / claude-b) and reviewed by this native Opus session. Use ONLY when the user explicitly asks to implement with the second account, worker account, claude-b, or this skill by name; otherwise use superpowers:subagent-driven-development as normal.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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
  1. Very specific:

    Use superpowers:using-git-worktrees — work on an isolated branch/worktree.

    line 14
  2. Distinctive:

    Read the plan file. Create a TodoWrite list with one item per task.

    line 15
  3. Very specific:

    Follow TDD (superpowers:test-driven-development is available to the worker), run the tests, commit with a clear message, do NOT push.

    line 26
  4. Distinctive:

    If blocked or the spec is ambiguous, stop and say so.

    line 29
  5. Very specific:

    Dispatch: run worker-task .worker-runs/task-<N>.md with Bash (run_in_background: true for long tasks, then wait.

    line 31
  6. Very specific:

    Review fails: write .worker-runs/task-<N>-fix-<k>.md with the original task, the reviewer's findings verbatim (file:line), and "fix only …

    line 45
  7. Very specific:

    Escalate: after 3 failed rounds, repeated worker errors (EXIT≠0, no JSON), or when every worker account is out of limits: tell the user, …

    line 49
  8. Distinctive:

    Mark the task complete: only when both reviews approve.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Multi-Account Subagent-Driven Development

Same loop as superpowers:subagent-driven-development, with one change: implementers run out-of-process on worker accounts via worker-task; reviewers stay in this session (account A, Opus).

You are the controller. You never write implementation code yourself unless escalating (step 6).

Setup (once per plan)

  1. Use superpowers:using-git-worktrees — work on an isolated branch/worktree.
  2. Read the plan file. Create a TodoWrite list with one item per task.
  3. Locate Superpowers' prompt templates and read them: Glob ~/.claude/plugins/**/subagent-driven-development/*-prompt.md Reuse implementer-prompt.md for briefs and the reviewer template(s) for reviews.

Per task — strictly sequential (never two workers in the same worktree)

  1. Write the brief to .worker-runs/task-<N>.md, based on implementer-prompt.md. It must be self-contained (the worker cannot see this conversation):
    • The full task text from the plan, verbatim (exact file paths, code, commands).
    • Relevant context: architecture notes, conventions, neighbouring files to read.
    • Follow TDD (superpowers:test-driven-development is available to the worker), run the tests, commit with a clear message, do NOT push.
    • Report: what was done, test command + result, files changed, open questions. If blocked or the spec is ambiguous, stop and say so.
  2. Dispatch: run worker-task .worker-runs/task-<N>.md with Bash (run_in_background: true for long tasks, then wait; otherwise timeout 600000). Optional second arg sets the worker model (e.g. opus for a hard task). The output names the WORKER account used; LIMIT_HIT= lines mean an account ran out and the next took over.
  3. Worker asked a question / blocked: answer from the plan or ask the user, append the answer to the brief, re-dispatch.
  4. Review — never trust the worker's report. Using BASE_SHA and HEAD_SHA from the output: a. Spec compliance: dispatch a native reviewer subagent (spec reviewer template) with the task text and git diff BASE_SHA..HEAD_SHA. It must read the actual code and run the tests. b. Only if spec passes: code quality review (superpowers:requesting-code-review) on the same range. Reviewers run in this session's account. Never send reviews to a worker account.
  5. Review fails: write .worker-runs/task-<N>-fix-<k>.md with the original task, the reviewer's findings verbatim (file:line), and "fix only these issues, re-run tests, commit". Dispatch again, re-review. Max 3 fix rounds.
  6. Escalate after 3 failed rounds, repeated worker errors (EXIT≠0, no JSON), or when every worker account is out of limits: tell the user, then fix natively, wait for the reset, or retry with opus.
  7. Mark the task complete only when both reviews approve. Then next task.

After all tasks

  • Final whole-branch review (native) over git diff <plan-base>..HEAD.
  • superpowers:finishing-a-development-branch.
  • Short summary: tasks done, worker account per task, fix rounds, escalations.

Red flags

  • Implementing code yourself instead of dispatching (except escalation).
  • Accepting a task because the worker says tests pass — reviewers must run them.
  • Running multiple workers concurrently in one worktree.
  • Putting secrets or .env contents into briefs.

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.