agentleFS
vadimvitvickiyvadimvitvickiy/vv-agent-kit/skills/delegating-work/SKILL.md

delegating-work

Skill0 starsChanged 50 days agoMITView on GitHub

Use when a change is expected to span multiple files or modules, or when deciding whether to hand work to subagents, run them in parallel, or keep it in the main conversation.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Test and review rules still apply.

    line 13
  2. Distinctive:

    Repetitive mechanical work across many sites: do one unit by hand, then build the script or tool that matches it for the rest.

    line 17
  3. Very specific:

    Research — fan out: Every applicable reader in one message, read-only, with an explicit model — vvkit:choosing-subagent-models.

    line 40
  4. Distinctive:

    Every spawn carries four things.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Delegating work

Parallel readers, single writer. Research fans out. Design decisions and edits never do.

Gate

  • A diff describable in one sentence — a single-file fix, a rename, a log tweak — skips all of this. Test and review rules still apply.
  • A subagent's main value is isolation, not parallelism. Early in a session, under ~5 tool calls is cheaper inline. In a large conversation, one subagent that contains verbose output — a test run, a log sweep, a grep-heavy search — pays for itself.
  • Repetitive mechanical work across many sites: do one unit by hand, then build the script or tool that matches it for the rest. Check the tool's output against the hand-done unit.

Single writer is not fresh writer

  • Single writer is concurrency: never two agents editing at once.
  • Fresh writer per task is context: deliberately discarding context between units.
A fresh writer per task winsOne writer holding full context wins
Tasks are mechanically independentTasks must be consistent with each other
Verbose tool output would flood contextJudgment built up earlier still applies
The brief is cheaper to write than the outputWriting the brief ≈ writing the output
Accumulated drift is the riskCold-start divergence is the risk
  • The third row decides most cases. A brief that must say what to keep, strip, and how it reads beside its neighbours is already the work. Never delegate understanding.
  • Coherent work split across cold starts produces N variants that each restate shared context, then drift.

Phases

  1. Scope. The goal, what is affected, what is out of scope.
  2. Research — fan out. Every applicable reader in one message, read-only, with an explicit model — vvkit:choosing-subagent-models. Usually: prior art — vvkit:architecture-surveyor; any contract, schema or interface touched; the spec or ticket. Several independent failures get one read-only investigator each, returning root cause and proposed change — unless one fix might fix the others, then investigate together.
  3. Plan — never delegated. Design stays where the full conversation is — vvkit:designing-changes — and the plan is written beside it.
  4. Implement — one writer at any moment; executing a plan is vvkit:planning-changes. Never parallel implementers in one working tree. Tasks the human asks to run side by side get a worktree and branch each — /vvkit:worktree — and merge one at a time.
  5. Verify, then review. Build and test first. Then one independent reviewer that never saw your reasoning, reading the diff itself — the one stage always worth delegating.

The spawn prompt

Every spawn carries four things; missing one is the usual cause of a useless result.

  1. Objective — the question, not the procedure. Over-prescribed steps yield shallow work.
  2. What is ruled out, so it does not re-derive dead ends.
  3. Known paths — files, symbols, line numbers.
  4. An output contract — exact shape and a length cap. A file:line or verbatim output behind every claim, verified facts apart from inferences.

A subagent gets no conversation history. Anything it needs is in the prompt.

Accepting a result

A report is a claim about the work, not evidence. It cites locations just as fluently whether or not it read them.

  • Read the cited file:line yourself for every claim a decision rests on.
  • Re-derive counts and outcomes from the machine — git diff --stat for "changed N places", a re-run or vvkit:test-runner's exit code for "tests pass".
  • High-risk conclusions need a second opinion that never saw the first — deletion, security, production config, anything the user will act on. Two independent agents, or one briefed to refute; accept what both agree on or the refuter failed to break.

Common mistakes

MistakeWhy it fails
Fanning out implementers to go fasterConflicting edits; writes stay serial
Delegating the planThe planner needs the full conversation
Accepting a subagent's "done"It reports what it intended
Running the pipeline on a one-sentence changeThat is what the gate is for
Omitting the output contractUnstructured results defeat the isolation
Nesting subagentsSubagents cannot spawn subagents; chain from the main conversation
Re-reading a result that timed outIt can double-count or truncate. Raise the timeout instead
Reporting a background agent's result before it landsYou do not know what it found until the notification arrives

Frontmatter fields, tool restrictions, memory, isolation and anti-patterns: references/subagent-reference.md.

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.