delegate
Skill16 starsChanged 2 months agoMITView on GitHub
Delegate implementation or read-only research to Stuntman's headless workers (Claude via proxy, opencode, Codex, Antigravity, or Muse). The current host plans, reviews the diff, verifies, and iterates. Use when asked to use Stuntman to delegate a task, send work or research to a stunt double, or run the delegate skill.
- Installs packages
78 other projects use a version of this.
Adopted by
Most recently taken up by
- brasillero/brstacktheir own version, first seen Nov 8, 2026
- go-sphere/skillstheir own version, first seen Nov 8, 2026
- victor-falcon/skillstheir own version, first seen Nov 8, 2026
- AlomoesDataScience/claude-skillstheir own version, first seen Nov 8, 2026
- lehcode/claudelegatetheir own version, first seen Nov 8, 2026
- codewhale-hq/codewhale-plugin-marketplacetheir own version, first seen Nov 8, 2026
Used with
Projects with it also use state, preview 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.
MicrosoftSkillstate
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
kv0906Skillpreview
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
GitHubSkillprd
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
nicolasestremSkilldocument
Create focused documentation for specific components or features
Also in 3 projects that use this
anombyte93Skilldiscover
Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.
Also in 3 projects that use this
Microsoft AzureSkillskill-authoring
Write Agent Skills that comply with the agentskills.io specification. WHEN: "create a skill", "new skill", "write a skill", "skill template", "skill structure", "review skill", "skill PR", "skill compliance", "SKILL.md format", "skill frontmatter", "skill best practices". DO NOT USE FOR: general documentation. INVOKES: vally CLI.
Also in 3 projects that use this
Other versions78 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 78
- prassanna-ravishankar/repowire★ 270same name
- HurricaHjz/SecondSelf★ 156same name
- wlsdks/ontology-atlas★ 149same name
- HurricaHjz/second-yourself★ 105same name
- spmtitsolution/OpenBA-Kit★ 38same name
- pvjbuilds/delegate-router★ 32same name
- PyModel/claude-architect★ 31same name
- peterpme/skills★ 28same name
- jisuzzzz/haechi★ 17same name
- victor-falcon/skills★ 16same name
68 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
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 12 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 68 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Read host and tool setup first.
- Very specific: line 19
Use "$STUNT" everywhere below.
- Very specific: line 23
If the user specifies a worker, set STUNTMAN_WORKER for every exec and resume call.
- Distinctive: line 37
When it is set and the user named no worker for this task, spread the work across the list instead of sending everything to one backend:
- Distinctive: line 43
Scouts (step 0): prefer a listed worker that is free or flat-rate.
- Very specific: line 62
If unreachable, start fcc-server with the host's background execution tool, wait a few seconds, re-check.
- Distinctive: line 81
Ask numbered questions, and say what the answers are for.
- Very specific: line 83
Ask for evidence: path:line for code, a URL for web claims.
- Distinctive: line 86
Run it like any exec (step 2).
- Distinctive: line 114
Keep task units small. For large work, split into multiple sequential delegations, reviewing each before the next.
- Distinctive: line 125
Use the host's supported long-running process mechanism.
- Distinctive: line 129
Wait, don't poll: Start the worker in the background and wait for it to exit.
- Very specific: line 136
If the repo is dirty, snapshot the baseline first (git status --porcelain > /tmp/stunt-baseline.txt, plus git diff of files you expect the …
- Distinctive: line 139
Prefer delegating from a clean tree or a branch.
- Distinctive: line 143
Gate, then look: Run the verification commands yourself first — never trust the worker's claim.
- Distinctive: line 148
Check against the spec: correctness, edge cases, style match, no scope creep, no hallucinated APIs, no files touched beyond the spec.
- Distinctive: line 153
If review finds problems, send feedback to the SAME worker session:
- Very specific: line 171
Always include a cost line, summing usage/cost_usd across all worker calls (exec + resumes):
- Distinctive: line 178
Never infer orchestrator tokens from the worker totals.
“Common” is measured: kept by at least 6 in 10 of the 68 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
stuntman: plan → execute → review
Read host and tool setup first. You, in Claude Code or Codex,
are the architect and reviewer. A
worker model (stunt) is the executor. Never implement the task yourself
unless the worker fails twice.
Resolve the worker command
STUNT="$STUNTMAN_ROOT/bin/stunt"Use "$STUNT" everywhere below. The worker backend is $STUNTMAN_WORKER
(claude via local proxy — the default —, opencode, codex, agy, or
muse).
If the user specifies a worker, set STUNTMAN_WORKER for every exec and resume
call. Otherwise preserve their environment/default. Save the backend and any
model pin with the session ID so review resumes the same provider. Running in
Codex does not automatically select Codex as the worker.
Several workers: STUNTMAN_WORKER_ORDER
The user can list more than one worker, most preferred first, each with an optional model:
STUNTMAN_WORKER_ORDER="agy=gemini-3.8-flash-high opencode=opencode/big-pickle codex"When it is set and the user named no worker for this task, spread the work across the list instead of sending everything to one backend:
- One unit: the first listed worker that passes the probe below.
- Several units that touch different files: give each to a different listed worker and run them in parallel.
- Scouts (step 0): prefer a listed worker that is free or flat-rate; keep the strongest model for the hardest unit.
- A worker fails its probe, or two feedback rounds: move the unit to the next listed worker once before you take it over (step 4).
Set STUNTMAN_WORKER on each call, plus STUNTMAN_MODEL when the entry has
=model; an entry without one uses that backend's own default. Record which
worker ran each unit.
Probe before a large delegation. Subscription workers run out without
warning. Send a one-line prompt with the same STUNTMAN_WORKER /
STUNTMAN_MODEL ("$STUNT" exec "Reply with the single word ok."). If it
returns is_error or a quota message, pick another model or backend and tell
the user which one you used.
Preflight
- Backend
claude(default): check the proxy —curl -s -m 2 http://localhost:8082/v1/models -H "x-api-key: freecc" -o /dev/null -w "%{http_code}". If unreachable, startfcc-serverwith the host's background execution tool, wait a few seconds, re-check. If still down, tell the user and stop. - Backend
opencode: checkopencode --version. If missing, tell the user to install it (brew install sst/tap/opencode) and stop. - Backend
codex: checkcodex --versionandcodex login status. If the CLI is missing, tell the user to install it (npm install -g @openai/codex) and stop. If not logged in, tell the user to runcodex loginand stop. - Backend
agy: checkagy --version. If missing, tell the user to install Google Antigravity (theagyCLI ships with it;agy installwires the PATH) and stop. - Backend
muse: checkmuse --version. If missing, tell the user to install Meta's Muse Code CLI and runmuse login, then stop.
0. SCOUT (optional — let a worker do the reading)
Your own reading is the largest cost in this loop: every file you open is resent on every later turn. When the area is large or unfamiliar, or the question needs web research, send a read-only scout before you plan:
- Ask numbered questions, and say what the answers are for.
- Include: "Do not edit, create or delete any file."
- Ask for evidence:
path:linefor code, a URL for web claims. - Cap the reply: "Reply in at most 30 lines."
Run it like any exec (step 2). Check git status afterwards — a scout that
changed files broke its brief. Verify any number or claim your plan depends
on: scouts are fast, not authoritative.
1. PLAN
Explore the codebase yourself (or read the scout's report) and write a self-contained spec to a temp file. The worker has NO access to this conversation, so the spec must include:
- Exact goal and acceptance criteria.
- Files to create/modify with absolute or repo-relative paths, and precisely what changes to make (signatures, behavior, edge cases). Decide everything yourself — leave the worker zero design decisions. Weak models executing great instructions beat strong models executing vague ones.
- Constraints: match existing style, no extra refactors, no new dependencies unless listed, never run git write commands.
- Verification: the exact commands that must pass (tests, build, lint), including any env activation they need.
- Include: "You are the Stuntman executor. Implement directly; do not delegate or launch more Stuntman workers." This avoids recursive delegation when the worker also has Stuntman installed.
- A loop cap: "If verification still fails after 3 attempts, stop and report what fails." A worker that self-tests without limit costs what a lead costs.
- End with: "When done, run the verification commands and fix failures before finishing. Reply in at most 10 lines: files changed, verification result, anything unfinished." The reply lands in your context, so keep it short.
Keep task units small. For large work, split into multiple sequential delegations, reviewing each before the next.
2. EXECUTE (the stunt double)
From the project root:
"$STUNT" exec "$(cat /tmp/stunt-spec.md)"- Use the host's supported long-running process mechanism; workers can be slow. Retain the process handle and capture stdout/stderr to task-specific files when needed. An output file is not complete until the process exits. Never start a replacement worker just because the first poll returned no output.
- Wait, don't poll. Start the worker in the background and wait for it to exit; Claude Code notifies you when a background command finishes. Every "is it done yet?" check resends your whole context and returns nothing.
- Output is one JSON line:
{"backend", "session_id", "result", "is_error", "usage", "cost_usd"}. Capturesession_id(needed for iteration) and keepusage/cost_usdfrom every exec/resume call for the final report. - If the repo is dirty, snapshot the baseline first
(
git status --porcelain > /tmp/stunt-baseline.txt, plusgit diffof files you expect the worker to touch) so review covers only worker changes. Prefer delegating from a clean tree or a branch.
3. REVIEW (you — the second place expensive tokens go)
- Gate, then look. Run the verification commands yourself first — never trust the worker's claim. If the gate fails, send the failing output back (step 4); do not read the code to find the bug for the worker.
- Then read
git diff(against the baseline if the tree was dirty). Read the diff, not whole files; open a full file only where the diff is unclear. - Check against the spec: correctness, edge cases, style match, no scope creep, no hallucinated APIs, no files touched beyond the spec.
4. ITERATE or TAKE OVER
If review finds problems, send feedback to the SAME worker session:
"$STUNT" resume <session_id> "Code review feedback — fix these: ..."Maximum 2 feedback rounds. If still broken after that and
STUNTMAN_WORKER_ORDER lists another worker, hand the unit to the next one
once: a fresh exec with the same spec plus the failing output. If that also
fails, or there is no other worker, the task qualifies as "heavy": fix the
remaining issues yourself directly, and say so in the report.
Report to the user
End with: what was delegated, which backend/model executed, what review found, iterations needed, and verification results. Be explicit about anything you had to fix yourself.
Always include a cost line, summing usage/cost_usd across all worker
calls (exec + resumes):
Worker: 14,162 tokens (8,166 out) · $0.0002 · Orchestrator: planning + review
For orchestrator usage, use the current host's session accounting. Claude Code
offers /cost; Codex offers /status for limits and its own usage telemetry.
Never infer orchestrator tokens from the worker totals.
Notes
- Backend
claude= headless Claude Code + isolatedCLAUDE_CONFIG_DIR=~/.claude-stuntman+ a local Anthropic-compatible proxy (free-claude-code on :8082). Backendopencodetalks to its provider directly — no proxy. Backendcodexrunscodex exec/codex exec resumedirectly — no proxy, no isolated config; it reuses the user's owncodex login(ChatGPT subscription or API key), same as runningcodexinteractively, so worker sessions land in the samecodex resumehistory. Backendagyruns Google's Antigravity CLI headlessly (agy -p), reusing the user's own Antigravity subscription login — its roster (agy models) spans Gemini 3.x, Claude Sonnet/Opus, and GPT-OSS. The wrapper passes--add-dir "$PWD"(without it agy edits its own scratch workspace, not the project) — so specs for agy should use absolute paths. Backendmuseruns Meta's Muse Code CLI headlessly (muse exec --json; resume ismuse exec --session-id <id>— plainmuse resumeis TUI-only), reusing the user's ownmuse login; it emits no token usage, so usage reads zeros. Grok and Kimi models route through theopencodebackend (xai/…/moonshotai/…with the matching key). Worker usage is recorded separately from the orchestrator's per-call accounting. A worker using the same subscription as the host can share its quota. Pin a model withSTUNTMAN_MODEL(claude: proxy model id; opencode:provider/model; codex: a model id accepted bycodex exec -m; agy: an id fromagy models; muse: an id accepted bymuse exec --model). - The worker runs without permission prompts (claude and agy:
--dangerously-skip-permissions; opencode: its default run policy; codex:-s workspace-write, sandboxed to the project directory but no per-action approval; muse:--approval-mode neverwith muse's OS sandbox left ON) — only delegate within trusted project directories. - Codex, agy, and muse report
cost_usd: 0because this wrapper has no dollar accounting for them. This does not mean free execution; Codex can also use metered API-key billing. Muse additionally reports zero token usage (its event stream has no usage data) — say "usage not reported by muse" in the cost line.
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.

