delegate-task
Skill288 starsChanged 6 days agoMITView on GitHub
Delegate one complex task to a single subagent, review its work in two stages before merging back. Sequential — one agent at a time, with oversight. Use when a task is complex and requires careful review before the result is accepted. Distinct from dispatch-agents (no parallelism here; reviewer sees full diff before proceeding).
4 other projects use a version of this.
Adopted by
Most recently taken up by
- bradautomates/second-braintheir own version, first seen Oct 9, 2026
- Samin12/skillstheir own version, first seen Aug 14, 2026
- Roentek/Claude_Code_Boilerplate_Frameworktheir own version, first seen May 5, 2026
- leavesprior/claude-skillstheir own version, first seen Feb 22, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- bradautomates/second-brain★ 217same name
- Samin12/skills★ 8same name
- Roentek/Claude_Code_Boilerplate_Framework★ 4same name
- leavesprior/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository162 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- .cursor/rules/align-grid.mdcCursor rule
- .cursor/rules/assess-impact.mdcCursor rule
- .cursor/rules/audit-code.mdcCursor rule
- .cursor/rules/audit-plan.mdcCursor rule
- .cursor/rules/build-epic.mdcCursor rule
- .cursor/rules/change-request.mdcCursor rule
- .cursor/rules/commit-message.mdcCursor rule
- .cursor/rules/compose-workflow.mdcCursor rule
- .cursor/rules/craft-skill.mdcCursor rule
- .cursor/rules/deepen-architecture.mdcCursor rule
- .cursor/rules/define-language.mdcCursor rule
- .cursor/rules/define-success.mdcCursor rule
- .cursor/rules/delegate-task.mdcCursor rule
- .cursor/rules/deploy.mdcCursor rule
- .cursor/rules/design-interface.mdcCursor rule
- .cursor/rules/develop-tdd.mdcCursor rule
- .cursor/rules/diagnose-root.mdcCursor rule
- .cursor/rules/diagnose-stall.mdcCursor rule
- .cursor/rules/dispatch-agents.mdcCursor rule
- .cursor/rules/edit-document.mdcCursor rule
- .cursor/rules/elaborate-spec.mdcCursor rule
- .cursor/rules/enforce-first.mdcCursor rule
- .cursor/rules/evolve-skill.mdcCursor rule
- .cursor/rules/execute-plan.mdcCursor rule
- .cursor/rules/extract-design.mdcCursor rule
- .cursor/rules/find-way.mdcCursor rule
- .cursor/rules/fix-bug.mdcCursor rule
- .cursor/rules/gate-trace.mdcCursor rule
- .cursor/rules/generate-allure-report.mdcCursor rule
- .cursor/rules/grill-me.mdcCursor rule
- .cursor/rules/grill-with-docs.mdcCursor rule
- .cursor/rules/guard-git.mdcCursor rule
- .cursor/rules/harden-vps.mdcCursor rule
- .cursor/rules/hook-commits.mdcCursor rule
- .cursor/rules/inspect-quality.mdcCursor rule
- .cursor/rules/investigate-bug.mdcCursor rule
- .cursor/rules/kickoff-branch.mdcCursor rule
- .cursor/rules/maintain-wiki.mdcCursor rule
- .cursor/rules/map-codebase.mdcCursor rule
- .cursor/rules/migrate-spec.mdcCursor rule
- .cursor/rules/model-domain.mdcCursor rule
- .cursor/rules/orchestrate-project.mdcCursor rule
- .cursor/rules/organize-workspace.mdcCursor rule
- .cursor/rules/plan-refactor.mdcCursor rule
- .cursor/rules/plan-release.mdcCursor rule
- .cursor/rules/plan-tests.mdcCursor rule
- .cursor/rules/plan-work.mdcCursor rule
- .cursor/rules/publish-package.mdcCursor rule
- .cursor/rules/quick-fix.mdcCursor rule
- .cursor/rules/release-branch.mdcCursor rule
- .cursor/rules/request-review.mdcCursor rule
- .cursor/rules/research-first.mdcCursor rule
- .cursor/rules/reset-baseline.mdcCursor rule
- .cursor/rules/respond-review.mdcCursor rule
- .cursor/rules/run-benchmark.mdcCursor rule
- .cursor/rules/run-evals.mdcCursor rule
- .cursor/rules/run-planning.mdcCursor rule
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Before spawning the agent, read specs/state.yaml if it exists.
- Distinctive: line 45
Do not include full file contents, full conversation history, or decisions unrelated to this task.
- Very specific: line 49
Use the Agent tool with a fresh context per spawn.
- Distinctive: line 54
All context the agent needs (it starts cold — no shared state)
- Distinctive: line 60
When the subagent returns, review its report before looking at the diff:
- Distinctive: line 65
If the report raises red flags, ask the subagent for clarification or re-run with adjusted instructions.
“Common” is measured: kept by at least 6 in 10 of the 4 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.
Files
<!-- story: e45s30 -->Delegate Task
HARD GATE — HARD GATE — Delegated work must have clear success criteria and verification commands. The delegate must be able to verify completion independently.
Delegate a single complex task to a subagent with a two-stage review gate before accepting the result. Use when oversight of a single task matters more than speed.
Distinct from dispatch-agents: This skill runs one subagent sequentially with a mandatory review. dispatch-agents runs multiple subagents in parallel without inter-task review gates.
Subagent depth tiers (e45s30)
Select brief depth from task risk: and skill effort: before spawning:
| Tier | When | Brief includes |
full_maturity | P0 stories, multi-file refactors, security work | Full template + CONVENTIONS excerpts + threat model if present |
standard | Default implementation tasks | Goal, scope, out-of-bounds, constraints, verify, prior decisions |
minimal_decisive | Light probes, read-only audits | Goal, verify, explicit file list (≤15 lines total) |
State depth: <tier> in the Agent tool description field.
Process
1. Define the task
Before spawning the agent, read specs/state.yaml if it exists. Then write a minimal self-contained brief using this template (brief size directly controls token cost and hallucination risk — do not pad):
Goal: [one sentence — specific, measurable outcome]
In scope: [explicit file or module list]
Out of bounds: [what NOT to do]
Constraints: [relevant CONVENTIONS.md rules, existing patterns, test requirements]
Verify: [runnable command]
Prior decisions: [relevant entries from specs/state.yaml — omit section if none apply]Do not include full file contents, full conversation history, or decisions unrelated to this task.
2. Spawn the subagent (iterative retrieval, max 3 cycles)
Use the Agent tool with a fresh context per spawn. Pass prior decisions only via specs/state.yaml.
Cycle: dispatch → evaluate output vs goal → refine brief → re-spawn if needed (max 3 cycles).
Include in each brief:
- All context the agent needs (it starts cold — no shared state)
- Reference to CONVENTIONS.md constraints
- The verify command it must run before reporting done
3. Stage 1 review — output inspection
When the subagent returns, review its report before looking at the diff:
- Did it run the verify command? Did it pass?
- Does it explain what it changed and why?
- Are there any concerns raised by the agent?
If the report raises red flags, ask the subagent for clarification or re-run with adjusted instructions.
4. Stage 2 review — diff inspection
Inspect the actual diff:
git diff main...HEADCheck:
- Changes are scoped to what was asked — nothing extra
- No
any, no@ts-ignore, no disabled lint rules - Tests added for new behavior
- CONVENTIONS.md compliance (naming, structure, no gh issue creation)
- Boy Scout Rule: touched areas are cleaner than before
5. Decision
- Accept: merge the result into the main working branch
- Revise: send back to the subagent with specific feedback
- Reject: discard and re-approach differently
After accepting, append to specs/state.yaml under ## Active Decisions:
**[task short name]**: [what approach the agent chose and why — one sentence]Report the decision and rationale to the user.
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
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.

