agentleFS
roronoazoroshao369roronoazoroshao369/vibe-coding-os/skills/core/subagent-driven-development/SKILL.md

subagent-driven-development

Skill1 starsChanged 5 months agoMITView on GitHub

Use separate agent passes or delegated workers for bounded subtasks without losing ownership of integration, review, and verification. Use when independent subtasks can run in parallel, when a reviewer/tester pass can improve quality, or when exploration and implementation can be separated safely. Main task, accepted plan, independent subtask boundaries, file ownership, expected outputs, validation commands, and integration owner. For multi-subtask work, designate an orchestrator that owns the task graph, delegates subtasks, monitors lifecycle states, and integrates results. The orchestrator is…

189 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions 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-code-review

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

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    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
  • +2 more from math-inc

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use separate agent passes or delegated workers for bounded subtasks without losing ownership of integration, review, and verification.

    line 17
  2. Distinctive:

    Use when independent subtasks can run in parallel, when a reviewer/tester pass can improve quality, or when exploration and implementation …

    line 21
  3. Distinctive:

    Keep delegated write scopes disjoint when possible.

    line 32
  4. Distinctive:

    Loud failure: Check return codes, exit signals, and whether expected output files were actually created or modified.

    line 51
  5. Distinctive:

    Run dry-run validation before delegation: confirm task boundaries, scopes, and dependencies make sense before a worker starts.

    line 68
  6. Distinctive:

    After a failure, record the pattern in the orchestration retrospective to tune future decomposition.

    line 69

“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

Skill: Subagent-Driven Development

Purpose

Use separate agent passes or delegated workers for bounded subtasks without losing ownership of integration, review, and verification.

When to use

Use when independent subtasks can run in parallel, when a reviewer/tester pass can improve quality, or when exploration and implementation can be separated safely.

Inputs

Main task, accepted plan, independent subtask boundaries, file ownership, expected outputs, validation commands, and integration owner.

Workflow

  1. Decide which task remains on the critical path and keep that work local.
  2. Delegate only concrete, bounded subtasks with clear file ownership or read-only questions.
  3. Tell each worker they are not alone in the codebase and must not revert others' edits.
  4. Keep delegated write scopes disjoint when possible.
  5. Integrate returned work deliberately: inspect changed files, resolve conflicts, and run checks.
  6. Record which agent/pass did what only when useful for review or handoff.

Orchestrator role

For multi-subtask work, designate an orchestrator that owns the task graph, delegates subtasks, monitors lifecycle states, and integrates results. The orchestrator is not a manager role that blocks workers — it is a coordination role that ensures subtask boundaries are respected, dependencies are resolved, and integration validation runs. See skills/core/superagent-orchestration/SKILL.md for the full orchestrator pattern with lifecycle states (queued → planning → executing → reviewing → merging → complete).

Sandbox scoping

Before delegating a write subtask, declare the worker's sandbox scope: write zone (files the worker may modify), read-only zone (files the worker may inspect), and forbidden zone (files the worker must not touch). Include a side-effect declaration listing every operation outside pure file writes. Use templates/sandbox-scope-template.md and the sandboxed execution skill for the scope declaration discipline. This prevents silent conflicts when multiple workers touch the same repository.

Error-handling patterns for subagent failures

Subagents can fail silently (wrong output), loudly (crash or timeout), or partially (some work done, some wrong). Handle each case deliberately.

Detection

  • Silent failure: Validate subagent output against acceptance criteria before integration. Always run per-subtask gates.
  • Loud failure: Check return codes, exit signals, and whether expected output files were actually created or modified.
  • Partial failure: Compare the worker's output against the brief's acceptance criteria item by item. Accept valid portions; reject the rest.

Recovery strategies

Failure typeRecovery action
Wrong output, no integration yetRescope the brief with tighter constraints and re-delegate.
Wrong output, already integratedRevert the affected files from the worker, fix in the orchestrator pass, and add a regression gate.
Timeout or crashReduce subtask scope, add checkpoint gates inside the subtask, and re-delegate with a simpler brief.
Sandbox violation (wrote to forbidden zone)Revert all files touched by the worker, tighten the brief's forbidden-zone language, and re-delegate to a different worker.
Side-effect leak (ran a script instead of making file edits)Roll back the side effect if possible, add an explicit side-effect declaration requirement to the brief.

Prevention

  • Split large subtasks into smaller units with intermediate checkpoints.
  • Include a "stop if uncertain" instruction in every brief: the worker should block and report ambiguity rather than guess.
  • Run dry-run validation before delegation: confirm task boundaries, scopes, and dependencies make sense before a worker starts.
  • After a failure, record the pattern in the orchestration retrospective to tune future decomposition.

Outputs

Delegation brief(s), completed subtask outputs, integrated patch, and verification or review notes.

Failure modes

  • Delegating the immediate blocking task and stalling the main workflow.
  • Multiple agents edit the same files without coordination.
  • Subagent output is trusted without integration review.
  • Parallelism adds complexity without reducing risk or time.

Verification checklist

  • Subtasks are independent and bounded.
  • File ownership is clear for write tasks.
  • Returned changes were reviewed before finalizing.
  • Final verification covers the integrated result.

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.