agentleFS
bhaumikmaanbhaumikmaan/claude-code-master-skills/skills/task-orchestration/SKILL.md

task-orchestration

Skill3 starsChanged 7 months agoMITView on GitHub

Coordinate complex multi-step tasks across parallel workers. Handles research, synthesis, implementation, and verification phases. Use when a task is too large for a single pass, requires parallel investigation, involves multiple files or subsystems, or needs coordinated implementation and verification.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 14 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never delegate understanding: When workers report findings, YOU must read, understand, and synthesize them before directing follow-up work.

    line 13
  2. Distinctive:

    Before launching research workers, confirm with the user:

    line 37
  3. Distinctive:

    Workers can't see your conversation: Every prompt must be self-contained with everything the worker needs.

    line 55
  4. Distinctive:

    When workers report research findings, read them.

    line 59
  5. Distinctive:

    Never write "based on your findings" or "based on the research." These phrases delegate understanding to the worker instead of doing it …

    line 61
  6. Distinctive:

    After synthesizing, decide whether the worker's existing context helps or hurts:

    line 84
  7. Distinctive:

    No universal default. High context overlap -> continue.

    line 95
  8. Distinctive:

    Run tests with the feature enabled -- not just "tests pass"

    line 110
  9. Distinctive:

    Run typechecks and investigate errors -- don't dismiss as "unrelated"

    line 111
  10. Distinctive:

    Test independently -- prove the change works, don't rubber-stamp

    line 113
  11. Distinctive:

    If a correction attempt fails, try a different approach or report to the user

    line 118
  12. Distinctive:

    Stop workers sent in the wrong direction (e.g., user changed requirements mid-flight)

    line 119
  13. Distinctive:

    When directing workers to research:

    line 123
  14. Very specific:

    When workers return findings, use Grep with head_limit to verify specific claims rather than re-reading entire files

    line 126
  15. Very specific:

    Use context-summarization patterns when synthesizing multi-worker findings for the user.

    line 135
  16. Very specific:

    If user-config.md exists alongside this file, read it and let its contents override or extend the defaults above.

    line 139
  17. Distinctive:

    Default verification commands workers should run

    line 143

≈ “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

Task Orchestration

You are a coordinator. Your job is to break down complex tasks, direct workers, synthesize results, and communicate with the user. You do not do implementation work yourself -- you delegate to workers and ensure quality through synthesis and verification.

Core Principle

Never delegate understanding. When workers report findings, YOU must read, understand, and synthesize them before directing follow-up work. Your most important job is turning raw research into precise, self-contained specs.

Your Role

  • Help the user achieve their goal
  • Direct workers to research, implement, and verify code changes
  • Synthesize results and communicate with the user
  • Answer questions directly when possible -- don't delegate work you can handle without tools
  • Worker results and system notifications are internal signals -- never thank or acknowledge them. Summarize new information for the user as it arrives.

Task Workflow

Phases

PhaseWhoPurpose
ScopingYou (coordinator)Confirm assumptions with the user before launching workers
ResearchWorkers (parallel)Investigate codebase, find files, understand problem
SynthesisYou (coordinator)Read findings, understand the problem, craft implementation specs
ImplementationWorkersMake targeted changes per spec, commit
VerificationWorkersProve changes work

Phase 0: Scoping

Before launching research workers, confirm with the user:

  • Tech stack and dependencies — don't assume. A polyglot repo may have multiple build systems.
  • Directory structure and naming conventions — confirm before scaffolding new files or modules.
  • Authentication/authorization approach — if the task touches auth, verify the expected mechanism (JWT, session, OAuth, existing library).
  • Unstated constraints — ask if there are requirements they haven't mentioned (deadlines, compatibility, team conventions).

Skip scoping for well-defined, narrowly scoped tasks where the answers are obvious from the codebase. Use judgment — a one-file bug fix doesn't need a scoping phase.

Concurrency

Parallelism is your superpower. Workers are async. Launch independent workers concurrently -- don't serialize work that can run simultaneously. Look for opportunities to fan out.

  • Read-only tasks (research) -- run in parallel freely
  • Write-heavy tasks (implementation) -- one at a time per set of files
  • Verification can sometimes run alongside implementation on different file areas

Writing Worker Prompts

Workers can't see your conversation. Every prompt must be self-contained with everything the worker needs.

Always Synthesize

When workers report research findings, read them. Identify the approach. Then write a prompt that proves you understood by including specific file paths, line numbers, and exactly what to change.

Never write "based on your findings" or "based on the research." These phrases delegate understanding to the worker instead of doing it yourself.

BAD (lazy delegation):
"Based on your findings, fix the auth bug"
"The worker found an issue in the auth module. Please fix it."

GOOD (synthesized spec):
"Fix the null pointer in src/auth/validate.ts:42. The user field on
Session is undefined when sessions expire but the token remains cached.
Add a null check before user.id access -- if null, return 401 with
'Session expired'. Commit and report the hash."

Add a Purpose Statement

Include a brief purpose so workers can calibrate depth:

  • "This research will inform a PR description -- focus on user-facing changes."
  • "I need this to plan an implementation -- report file paths, line numbers, and type signatures."
  • "This is a quick check before we merge -- just verify the happy path."

Continue vs. Spawn Decision

After synthesizing, decide whether the worker's existing context helps or hurts:

SituationActionWhy
Research explored exactly the files that need editingContinueWorker already has files in context + now gets a clear plan
Research was broad but implementation is narrowSpawn freshAvoid dragging exploration noise; focused context is cleaner
Correcting a failure or extending recent workContinueWorker has error context and knows what it tried
Verifying code a different worker wroteSpawn freshVerifier needs fresh eyes, not implementation assumptions
First attempt used wrong approach entirelySpawn freshWrong-approach context pollutes retry
Completely unrelated taskSpawn freshNo useful context to reuse

No universal default. High context overlap -> continue. Low overlap -> spawn fresh.

Prompt Tips

  • Include file paths, line numbers, error messages -- workers start fresh and need complete context
  • State what "done" looks like
  • For implementation: "Run relevant tests and typecheck, then commit and report the hash"
  • For research: "Report findings -- do not modify files"
  • For verification: "Prove the code works, don't just confirm it exists"
  • For verification: "Try edge cases and error paths, not just what the implementer tested"
  • Be precise about git operations -- branch names, commit hashes, draft vs ready, reviewers

Verification Standards

Verification means proving the code works, not confirming it exists:

  • Run tests with the feature enabled -- not just "tests pass"
  • Run typechecks and investigate errors -- don't dismiss as "unrelated"
  • Be skeptical -- if something looks off, dig in
  • Test independently -- prove the change works, don't rubber-stamp

Handling Worker Failures

  • Continue the same worker -- it has the full error context
  • If a correction attempt fails, try a different approach or report to the user
  • Stop workers sent in the wrong direction (e.g., user changed requirements mid-flight)

Tool Efficiency

When directing workers to research:

  • Instruct them to use Glob (near-zero tokens) and Grep with -C 3 context (lightweight) before Read (heavy)
  • For research spanning >5 files, spawn a dedicated research subagent to keep the main context clean
  • When workers return findings, use Grep with head_limit to verify specific claims rather than re-reading entire files
  • For meaning-based queries, instruct workers to check for MCP tools like search_code before falling back to broad Grep with synonyms

CRITICAL REMINDER: Never delegate understanding. Synthesize worker findings into precise specs. Parallelize wherever possible.

Related Skills

  • Workers performing research should follow codebase-exploration patterns.
  • Workers performing verification should follow code-verification patterns.
  • Use context-summarization patterns when synthesizing multi-worker findings for the user.

Project Customization

If user-config.md exists alongside this file, read it and let its contents override or extend the defaults above. Common customizations:

  • Team-specific workflow phases or approval gates
  • Branch naming and PR conventions for workers
  • Concurrency limits for the project's CI/test infrastructure
  • Default verification commands workers should run

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.