agentleFS
mmgordon82mmgordon82/agent-skills/skills/delegate/SKILL.md

delegate

Skill3 starsChanged 7 days agoMITView on GitHub

Use for multi-file features, cross-component debugging, repo-wide changes, parallel workstreams, or when asked to use subagents. Root plans and integrates; bounded subagents explore, implement, test, research, review.

97 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use state, ask 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.
  • MicrosoftSkill

    state

    Store and query a Microsoft Managed App's built-in state and file attachments with `ms project state` CLI schema commands and generated TypeScript clients. First, with the user signed in to the CLI, run `ms feature status --name state --json`; if `feature.enabled` is not `true`, recommend an alternative connector or data source.

    Also in 3 projects that use this

  • dubwoahSkill

    ask

    Answer questions about the codebase without generating or modifying any code. Use when the user wants to understand how something works, find where something is defined, or explore the project structure. Invoked with /ask.

    Also in 7 projects that use this

  • jaaxkSkill

    afk

    Toggle AFK (Away From Keyboard) mode. When enabled, a PostToolUse hook sends a summary of every tool (that involves writing to files or changing settings) Claude runs to a dedicated Slack thread so the user can monitor remotely. Toggle on with /afk, toggle off with /afk again.

    Also in 3 projects that use this

  • kv0906Skill

    preview

    Render vault notes as styled HTML and open in browser. Turn markdown docs, decisions, progress reports into readable previews. Use for "/preview docs/project-a/checkout-flow.md", "/preview progress all", "/preview decide auth-approach", or when user wants to see a doc before sharing.

    Also in 3 projects that use this

  • GitHubSkill

    prd

    Generate high-quality Product Requirements Documents (PRDs) for software systems and AI-powered features. Includes executive summaries, user stories, technical specifications, and risk analysis.

    Also in 5 projects that use this

  • nicolasestremSkill

    document

    Create focused documentation for specific components or features

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 84 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do it yourself only when the task is small and local.

    line 12
  2. Very specific:

    Use the harness's role definitions when it has them (e.g.

    line 32
  3. Distinctive:

    Use only the roles that help.

    line 46
  4. Distinctive:

    Every subagent you spawned has completed or explicitly failed, and none is still running.

    line 51

“Common” is measured: kept by at least 6 in 10 of the 84 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

Delegate

The root agent owns the goal, the architecture, the integration, and the final answer. Subagents return evidence and bounded execution. Never hand architectural ownership to a subagent.

Gate

Do it yourself only when the task is small and local. Delegate when any of these hold:

  • it spans several files, modules, or services, or has two or more independent workstreams;
  • the repo needs exploring before you can implement;
  • debugging crosses components;
  • external or version-specific facts need checking;
  • an independent review after the change would catch real risk;
  • the user asks for subagents or parallelism.

Once delegating, actually spawn the subagents. If spawning fails, say so. Don't quietly do the delegated work in the root.

Roles and models

RoleJobWrites?Model
explorermap code paths, symbols, tests, confignostrong at high
workerbounded implementation with named file ownershipyesstrong at high
testerreproduce, run targeted tests, report exact evidencetests onlystrong at high
researcherversion-specific APIs and docs, from primary sourcesnostrong at high
reviewercorrectness, security, regression, and missing-test reviewnostrong

Use the harness's role definitions when it has them (e.g. ~/.codex/agents/*.toml). Otherwise pick models per the tiers in the poteto-mode skill's Subagents section. Only the root escalates a subagent to a stronger model, when it reports a real reasoning blocker.

Contract for every subagent

Give each one: objective (one outcome), scope (exact files or question), only the context it needs, constraints (what must not change), deliverable, and acceptance check. Explorers and reviewers must not edit files. Each file has one writer.

Bad: "Fix the backend." Good: "Trace where POST /invoices validates currency. Return the files, the validation path, and existing tests. Don't edit files."

Subagents report back instead of widening scope when they hit an architectural choice, a breaking API or schema change, a new dependency, a security-sensitive choice, unclear requirements, or another worker's files.

Order

  • Independent tasks: spawn all of them, then wait for all.
  • Dependent work runs in sequence: explore → root decides → implement → test → review → fix material findings → verify.
  • Use only the roles that help. Don't let workers attempt competing fixes unless the root asks for alternatives.
  • Subagents return conclusions, paths, line refs, commands run, and results. They don't return raw logs or whole files.

Done when

  • Every subagent you spawned has completed or explicitly failed, and none is still running.
  • Findings are integrated and conflicts resolved.
  • You read the final diff yourself, not only the subagents' summaries.
  • You never claim a subagent did work unless the spawn actually succeeded.

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.