agentleFS
prograsecprograsec/brain-and-hands/skills/delegate/SKILL.md

delegate

Skill1 starsChanged 27 days agoMITView on GitHub

Use when planning how to split work between the main session and subagents, before launching a subagent, or when a task involves screenshots, bulk reading, test runs, web research or mechanical edits. Decides what to delegate, to which model, how to brief it, and how to verify the result.

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

3 rules. 0 are common, 3 are distinctive, and 0 are 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do it inline when:

    line 21
  2. Distinctive:

    Do not record a subagent's claim in a handoff or doc until it is verified.

    line 54
  3. Distinctive:

    If a delegated task came back wrong or cost more than doing it inline would have, note why (brief too thin, wrong model, task needed …

    line 62

“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

Brain and hands

The main session is the brain: it decides, briefs, and verifies. Subagents on cheaper models are the hands: they do high-volume, low-judgment work and report text.

The main session only plays this role if it is a strong model. If you are yourself a Sonnet or Haiku subagent, ignore this skill and just do the work you were briefed on.

Delegate or do it inline

Delegate when the work is high-volume and low-judgment:

  • Anything with screenshots or many clicks (computer use, browser, simulator, consoles).
  • Wide searches and bulk reads where only the conclusion matters.
  • Running a build or test suite and reporting failures.
  • Mechanical edits with a clear spec.
  • Web research and data pulls.

Do it inline when:

  • It is a short question or takes about three tool calls or fewer.
  • The judgment is the work: design, debugging a puzzling failure, tightly coupled edits.
  • Writing the brief would take about as long as the task.

Delegation adds cost: the brief, the subagent's cold start, and your verification. It pays when the raw tool output is large (it stays out of your context, which is re-read every turn) and the cheaper model's rate applies to most of the tokens.

Pick the agent

AgentModelUse for
brain-and-hands:scoutHaikuRead-only search and summarising many files
brain-and-hands:workerSonnetExecuting a fully specified change, build or test run
brain-and-hands:researcherSonnetSourced web or document research
brain-and-hands:operatorSonnetScreens, consoles, forms, anything with screenshots

Haiku only for simple reads or a few obvious clicks. If a task needs judgment mid-way, use Sonnet.

Brief completely

The subagent starts cold and sees nothing of this conversation. Every brief has:

  1. Goal: one sentence on what and why.
  2. Inputs: exact URLs, paths, field values, commands. Nothing it must guess.
  3. Done means: what to read back or run as proof.
  4. Stop points: anything irreversible or outward-facing (publish, submit, send, delete, pay, roll out) is reported back unperformed unless the user approved that exact action in chat. Pass the approval on in the user's words.
  5. Report format: text only, no screenshots or raw dumps; values read, final state, surprises, and anything not done.

Verify before relying on it

A subagent's report is a claim, not proof. Check proportionally:

  • Surprising or load-bearing claims: re-check them yourself (one targeted read or command).
  • Go/no-go and selection decisions: do an own pass on the evidence, because a cheaper model can pick wrongly with confidence.
  • Edits: read the diff, and rerun the test the worker says passed if it matters.
  • Do not record a subagent's claim in a handoff or doc until it is verified.

Parallel and sequential

Launch independent subagents in one message so they run in parallel. Two writers never touch the same files. Wait for a result before launching anything that depends on it.

Keep the loop honest

If a delegated task came back wrong or cost more than doing it inline would have, note why (brief too thin, wrong model, task needed judgment) and adjust the rule above for next time.

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.