delegate
Skill2 starsChanged 2 months agoMITView on GitHub
Route a coding task to whichever delegate agent fits — Antigravity (`agy`) or OpenAI Codex (`codex`) — and run several of them at once. Use this whenever the user says "delegate this", "offload this", "give this to another agent", "kisi aur agent se karwa", "use both", "run them in parallel", "burn the quota", asks which agent should do a job, or wants a large build split across the agent CLIs they pay for. Also use it when one delegate dies on quota and the work has to move to another.
36 other projects use a version of this.
Adopted by
Most recently taken up by
- snjrusmn/multi-model-clitheir own version, first seen Oct 7, 2026
- andreilungeanu/cursor-delegate-mcptheir own version, first seen Oct 5, 2026
- Magnus-Gille/claude-skillstheir own version, first seen Oct 5, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- ShalomPrinz/go2-dispatchertheir own version, first seen Oct 4, 2026
- mifunedev/skillstheir own version, first seen Oct 3, 2026
Used with
Projects with it also use release.
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.
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions36 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 36
- Encod3d-Sec/TORCH★ 329same name
- prassanna-ravishankar/repowire★ 265same name
- HurricaHjz/second-yourself★ 105same name
- DannyMac180/astrable★ 42same name
- mhlaghari/stuntman★ 14same name
- victor-falcon/skills★ 14same name
- gyroid-eth/orrery-telemetry★ 9same name
- bitflight-devops/hallucination-detector★ 8same name
- Magnus-Gille/claude-skills★ 5same name
- AbdurRafay2004/handoff★ 4same name
26 more not listed
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.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 33 edited versions we read keep these.
7
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
- Distinctive: line 21
Never assume a CLI is installed.
- Distinctive: line 35
If the user named an agent, use that agent.
- Distinctive: line 36
If they have said before that coding goes through one of these, keep using it until they say otherwise.
- Distinctive: line 74
By dependency: If B needs A's function signature, put the signature in both task files, or run them in sequence.
- Distinctive: line 85
Read the log to see how far it got, and git status --short to see what landed.
- Distinctive: line 86
Write a fresh task file covering only the remainder.
- Distinctive: line 91
If every delegate is exhausted, finish the remaining items yourself.
“Common” is measured: kept by at least 6 in 10 of the 33 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
delegate — one entry point for every agent you pay for
You are the parent process. agy and codex are child processes. You read the repo,
make the decisions, write the brief, and check the result; they do the typing.
This skill is the router. For the full flag reference of a single agent, read the agy or codex skill — this one decides which, how many, and what to do when one dies.
First: who is actually available
npx claude-code-delegate doctorNever assume a CLI is installed. A missing one is not an error — it just narrows the choice. If none are available, say so and do the work yourself rather than stalling.
Picking one
| the task | send it to | why |
| bulk scaffolding, many similar files, content authoring | agy (flash model) | cheapest per token, and the work is mechanical |
| algorithmic logic, tricky refactor, anything with a subtle invariant | codex (raise reasoning effort) | thinks harder before it types |
| a raster image — icon, illustration, hero, placeholder art | agy via scripts/gen_image_agy.sh | built-in generate_image; see the agy skill's "Generating images" |
| a second opinion on a diff | codex exec review --sandbox read-only | reports, does not edit |
| anything touching auth, payments, migrations or deletes | nobody — do it yourself | the review cost exceeds the typing saved |
Two rules that override the table:
- If the user named an agent, use that agent. Do not re-litigate it.
- If they have said before that coding goes through one of these, keep using it until they say otherwise.
Running several at once
This is the point of paying for more than one subscription. Independent work goes out in parallel; each delegate gets its own task file, its own log, and its own working tree.
Give each agent a worktree. Two agents in one tree collide, and "do not touch lib/**"
in a task file is advisory — a worktree makes it structural, and the branch is what makes
the result reviewable.
npx claude-code-delegate worktree add backend # → .ccd/worktrees/backend on ccd/backend
npx claude-code-delegate worktree add frontendThen point each agent at its own tree:
# one Bash call per agent, each with run_in_background: true
bash ~/.claude/skills/codex/scripts/run_codex.sh task-backend.md .ccd/worktrees/backend "" high
bash ~/.claude/skills/agy/scripts/run_agy.sh task-frontend.md .ccd/worktrees/frontendReview and merge one branch at a time:
git diff main..ccd/backend # read it before it touches your tree
git merge ccd/backend
npx claude-code-delegate worktree remove backendworktree remove refuses while there are uncommitted changes, so an unmerged agent's work
is not thrown away by a tidy-up. worktree list marks a dirty tree with ●.
Still split the work sensibly, because a worktree stops collisions, not confusion:
- By directory. One agent owns
data/, the other ownslib/. - By dependency. If B needs A's function signature, put the signature in both task files, or run them in sequence.
- Shared files — a barrel
index.ts, a router table, a global stylesheet — are yours. Each agent writes its own file; you wire them together.
See references/parallel-split.md for the full shape.
When a delegate dies on quota
Expect it. It is the normal end state of a long run, not a crash.
- Read the log to see how far it got, and
git status --shortto see what landed. - Write a fresh task file covering only the remainder. Do not re-send the original — the new agent will redo finished work and may undo it.
- Send it to the other agent.
- Tell the user you switched, and why.
If every delegate is exhausted, finish the remaining items yourself. Never hand back a half-built tree because a subscription ran out.
The rules that do not change with the agent
These hold for every delegate; the per-agent skills repeat them because they are the difference between a useful run and a wasted hour.
- Prompt in a file, never inline. Backticks,
$, quotes and heredocs in a multi-line prompt destroy shell quoting. Write the file, thencatit into the command.npx claude-code-delegate task <slug>scaffolds one. - The task file is the entire brief. The delegate starts cold with none of your conversation. Absolute working dir, exact files to read first, numbered deliverables with acceptance criteria, an explicit "not your job", and a closing "summarise what you wrote and what you were unsure about".
- Every decision made, none open. A non-interactive agent cannot ask a question. It guesses, and you find out at review time.
- Verify before you report.
npx claude-code-delegate verifyruns the project's own typecheck, lint, build and tests, stops at the first failure, counts the changed files and scans added lines for committed secrets. Run it in the agent's worktree, not just your own tree. Agents report success optimistically; unused imports, stubbed helpers, files in the wrong folder and tests "fixed" by weakening them are all faster to repair yourself than to re-prompt. It exits non-zero when something fails, so it also works as a gate in a script. - Never let a delegate commit. You read the diff first. It writes files; you decide what enters history.
Reporting back
Say which agent did what, what you verified, and what you fixed by hand. The user is paying for these subscriptions — they should be able to see where their quota went.
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.

