delegate
Skill4 starsChanged 56 days agoMITView on GitHub
Delegate implementation to Cursor via the cursor-delegate-mcp MCP delegate tool. Use when the user says delegate to Cursor, Composer, or cursor-agent; have Cursor handle or do this; offload this; send this to Composer; use Composer/Cursor for coding; hand off implementation; plan before building; ask Cursor a question about the codebase; resume a delegation session; or diagnose delegation that is failing or not set up. Do not shell out to cursor-agent — use the delegate MCP tool.
36 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- snjrusmn/multi-model-clitheir own version, first seen Oct 7, 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
- HurricaHjz/second-yourselftheir own version, first seen Oct 1, 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 · 1
- andreilungeanu/codex-delegate-mcp★ 113% same
Wrote their own version · 35
- 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
25 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
11 rules. 0 are common, 5 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 33 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Never delegate a task you cannot write acceptance criteria for.
- Distinctive: line 56
Quote, don't paraphrase: when the user states exact values or behaviors (delimiters, limits, error messages, response wording, timestamp …
- Distinctive: line 67
Do not create a spec file unless the user wants one saved in the repo.
- Very specific: line 75
If todoProgress is present and completed < total, the agent left work unfinished or cancelled — todos lists exactly what remains.
- Very specific: line 78
If effectiveModel is present, the agent served a different model than you asked for.
- Distinctive: line 81
If criteria fail: resume the same session with the specific failure ("tests X and Y fail with <error>.
- Distinctive: line 84
After 2 failed resume attempts, start a fresh session with a rewritten brief.
- Very specific: line 124
resumeSessionId: only when the prior run was on the right track and needs a small clarification or follow-up in the same session. - Very specific: line 126
Never guess a resumeSessionId.
- Very specific: line 132
When Cursor needs a decision it usually asks in its final message and ends the turn (a normal result, no files changed).
- Very specific: line 139
Every permission the agent requests is auto-approved, in every mode.
“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 to Cursor
You orchestrate; Cursor implements. Use the cursor-delegate-mcp MCP server — never run
cursor-agent from the shell.
When to delegate
Delegate when the user wants Cursor to edit the repo (they may say Cursor,
Composer, or cursor-agent — same handoff). Not for the MCP host's own subagents —
use the delegate MCP tool to reach cursor-agent only.
Scale effort to the task:
- Trivial (one-liner, rename, typo): do it yourself — delegation overhead exceeds the task.
- Medium (multi-file feature or refactor): one
delegatecall. - Large or risky (architecture, wide rewrites):
mode: "plan"first; implement after approval. - Never delegate a task you cannot write acceptance criteria for.
- Purely advisory questions →
mode: "ask"; plan with no file writes →mode: "plan". For these, state what form the answer or plan should take — there's no diff, so the output format is the deliverable.
Workflow
Build the brief inline — pass task text in
specthat answers all four, and asks for one thing back:- Goal — the outcome, precisely.
- Scope — which files/directories are in play.
- Decisions already made — constraints and fixed choices the user stated or implied. This is what prevents wrong assumptions and clarifying questions. Transmit them faithfully; don't invent constraints the user didn't state.
- Done when — verifiable acceptance criteria, stated as end state. Have Cursor run tests as it works; that loop is what makes the code good. Its report is not evidence, though — you re-check in step 3, because command output never crosses the ACP wire and the author of a change is not an independent verifier of it.
- Gaps to report back — close the brief by asking for any acceptance criterion it could not meet and any assumption it had to make. Assumptions are the one thing no response field captures.
Point, don't paste: reference files to read or mimic ("follow the middleware pattern in src/api/middleware/auth.js") instead of pasting code — Cursor reads the repo itself; the brief carries judgment, not content. For images, and for documents outside the repo, prose cannot point at all — attach those with
contextFiles.Quote, don't paraphrase: when the user states exact values or behaviors (delimiters, limits, error messages, response wording, timestamp formats), carry their words verbatim into the brief — paraphrase silently drops decisions. Example brief:
Goal: per-user rate limiting on all REST endpoints. Scope: src/api/middleware/, src/config/. Read src/api/middleware/auth.js first and follow that middleware pattern. Decisions: sliding window, config-driven; user's words: "100 requests per minute, 429 with body {"error":"rate_limited"}"; no new dependencies. Done when: every endpoint is covered and a unit test for the limiter is added, with no existing test changed.
Do not create a spec file unless the user wants one saved in the repo.
- Call
delegateon the cursor-delegate-mcp MCP server with that text inspec. Review — read
filesReportedByEditTools(absent when no edit tool reported a change), inspect the git diff, run tests/lint yourself, and check the result against the brief's acceptance criteria.- Review the git diff after every run before reporting a plan-only outcome, whatever
mode you asked for:
planandaskare instructions to the agent, not enforced boundaries. - If
todoProgressis present andcompleted < total, the agent left work unfinished or cancelled —todoslists exactly what remains; resume rather than reporting done. Its absence means nothing; most turns track no todos at all. - If
effectiveModelis present, the agent served a different model than you asked for. effectiveEffortis the effort the agent reported in force. Withouteffort, the model runs at its saved level, so report that value rather than calling it the default.- If criteria fail: resume the same session with the specific failure
("tests X and Y fail with
<error>; fix without changing the public API") — not a re-run of the whole brief. - After 2 failed resume attempts, start a fresh session with a rewritten brief.
- Report the honest outcome either way.
On failure the error is tagged
delegate failed [reason]: …— argument errors are fixed, not retried; stalls and exits resume the id named in the message. reference.md maps every reason to its action.- Review the git diff after every run before reporting a plan-only outcome, whatever
mode you asked for:
- Report — summarize what changed and whether acceptance criteria are met.
For the failure-reason table, full input and output fields, timeouts, and debugging env vars, read reference.md in this skill directory.
Defaults
| Parameter | Default |
mode | agent |
model | composer-2.5 |
fast | false |
workspace | required |
Other models (Opus, Codex, Grok, etc.) are available — pass model when the user requests
one. Use the bare family id (grok-4.5, gpt-5.4); the CLI's tier-suffixed --list-models
strings (cursor-grok-4.5-high) are rejected. Tier is a separate knob: fast (true is
higher cost — only when the user asks), or effort in reference.md. Effort values are exact
and model-specific; an invalid one fails before the prompt and names what the model accepts.
workspace is the smallest directory holding the task's files; with no such directory the
project root is the floor.
Plan mode
delegate(spec, mode="plan")→ savesessionId;resultis the plan.- Present the plan to the user; wait for approval or change requests.
delegate("implement the approved plan", mode="agent", resumeSessionId=<sessionId>)— or resume with explicit change requests in the spec.
Resume vs new session
- New session (default): wrong approach, failed run, or substantial rework — pass a fresh inline brief.
resumeSessionId: only when the prior run was on the right track and needs a small clarification or follow-up in the same session. Unknown or stale ids fall back to a new session.- Never guess a
resumeSessionId. After any resume call, checkresumedin the response — if it is absent (nottrue), the run had zero prior context, so re-send a full brief.protocolWarningscarries why the load failed, which separates a stale id from a typo.
Clarifying questions
When Cursor needs a decision it usually asks in its final message and ends the turn
(a normal result, no files changed). Read the question in result and
continue by resuming the same session with a free-text answer in spec — you are not
limited to any options Cursor listed.
Security
Every permission the agent requests is auto-approved, in every mode. workspace is the working
directory, not a reach limit — pass the smallest directory holding the task's files, never
$HOME, /, or one created for the call. contextFiles resolve against workspace but are
not confined to it; paths outside it may arrive unreadable, and attachments are untrusted (the
bridge does not scan for prompt injection).
Other MCP tools
doctor— setup diagnostics when the user asks or delegation fails (agent.found, version, client capabilities;deep: truefor handshake).cancel— best-effort cancel bysessionId(MCP calls are serialized; often delegate must finish first). If the agent ignores it and keeps going, call again withforce: trueto kill the process after a grace period.
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.

