delegate
Skill1 starsChanged 4 months agoMITView on GitHub
Explicitly assign or reassign who owns a task from a 4ds spec — Claude or Human — and, if assigned to Claude, actually act on it right away by classifying what kind of task it is and dispatching to the right specialist (implementation, research, writing, analysis, or handling it directly). If assigned to Human, stays engaged to answer outstanding questions rather than just recording the decision. Runs Process Discernment automatically after any file-producing agent (coder/writer) finishes, and closes every run with a Performance Discernment check-in. This is the actual Delegation act in the 4Ds sense, and it can happen anytime, independent of when the spec was written. Always operates at the level of a single, well-scoped task — never a whole undecomposed feature if that can be avoided. Explicit-invocation only.
97 other projects use a version of this.
Adopted by
Most recently taken up by
- zaherg/chorustheir own version, first seen Nov 29, 2026
- divanc/skillstheir own version, first seen Nov 29, 2026
- awtotty/claude-code-setuptheir own version, first seen Nov 29, 2026
- prograsec/brain-and-handstheir own version, first seen Nov 29, 2026
- andreilungeanu/agy-delegate-mcptheir own version, first seen Nov 29, 2026
- zji996/AIA-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use state, ask 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
dubwoahSkillask
Answer questions about the codebase without generating or modifying any code. Use when the user wants to understand how something works, find where something is defined, or explore the project structure. Invoked with /ask.
Also in 7 projects that use this
jaaxkSkillafk
Toggle AFK (Away From Keyboard) mode. When enabled, a PostToolUse hook sends a summary of every tool (that involves writing to files or changing settings) Claude runs to a dedicated Slack thread so the user can monitor remotely. Toggle on with /afk, toggle off with /afk again.
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
SentrySkillspec
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.
Also in 5 projects that use this
Other versions97 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 97
- prassanna-ravishankar/repowire★ 280same name
- wlsdks/ontology-atlas★ 173same name
- HurricaHjz/second-yourself★ 157same name
- HurricaHjz/SecondSelf★ 157same name
- pvjbuilds/delegate-router★ 46same name
- spmtitsolution/OpenBA-Kit★ 38same name
- PyModel/claude-architect★ 31same name
- peterpme/skills★ 29same name
- jisuzzzz/haechi★ 17same name
- mhlaghari/stuntman★ 16same name
87 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.
In this repository4 other files it gives its agents.
- brainstormSkill
- codeSkill
- discernSkill
- refineSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 6 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 84 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Has a Task Breakdown table: if a [task] argument was given, match it against the table (by number or by clearly matching description).
- Distinctive: line 55
If it looks properly single-scoped: continue to Step 4, no need to make a thing of it.
- Very specific: line 57
If it looks like it should have been broken down: say so plainly, name the natural seams you see, and ask whether they'd rather split it …
- Distinctive: line 65
Do the same lightweight gut-check even when resolving a row from an existing Task Breakdown table — brainstorming aims for well-scoped …
- Very specific: line 75
If they're assigning it to Claude for the first time (from Unassigned), this is a plain, low-stakes confirmation — just make sure you both …
- Distinctive: line 78
If they're reassigning a task that already has an owner (Claude → Human, Human → Claude, or re-confirming the same owner after some work …
- Distinctive: line 85
Never infer an owner from context or default to one silently.
- Very specific: line 97
Use the Agent tool to invoke the 4ds:spec-writer subagent with MODE: cell-update:
- Distinctive: line 123
Keep checking in ("anything else?") until they're actually done, not just after one round.
- Very specific: line 125
If the conversation surfaces something that should change the spec itself (not just clarify it), don't edit it here — point them to …
- Distinctive: line 134
Read the task's description in full along with whatever spec context is relevant (Goals, Non-Goals, Proposed Approach, and the task's own …
- Very specific: line 184
Coding: read ${CLAUDE_PLUGIN_ROOT}/skills/code/SKILL.md and follow its process exactly (it assumes the spec, task, and Owner are already …
- Very specific: line 192
Research: use the Agent tool to invoke the 4ds:researcher agent with the task description, relevant spec context, and the output path from …
- Very specific: line 201
Writing: use the Agent tool to invoke the 4ds:writer agent with the task description, relevant spec context/decisions to ground it in, and …
- Very specific: line 208
Analysis: use the Agent tool to invoke the 4ds:analyst agent with the question to investigate, relevant spec context, and the output path …
- Very specific: line 249
Use the Agent tool to invoke 4ds:spec-writer with MODE: cell-update to set that task's Status to the value above, and append one Revision …
- Very specific: line 254
Never set Status to Done — that's the user's call, made via 4ds:refine once they've reviewed the output.
“Common” is measured: kept by at least 6 in 10 of the 84 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
You are running the 4ds delegate workflow. This is the moment Delegation actually happens in this plugin — not during brainstorming (which only describes tasks, never assigns or acts on them). It can be run any time: right after writing a spec, days later, or repeatedly as plans change. Delegating to Claude isn't just a record-keeping step — it's the point where the work actually gets done. Delegating to Human isn't just record-keeping either — you stay engaged to make sure they're actually set up to succeed before you step back.
This plugin treats Discernment as three distinct things, per the AI
Fluency framework: Product (is the output good — code-reviewer, via
4ds:discern, on-demand), Process (did the agent get there soundly —
process-reviewer, automatic, below), and Performance (was the
interaction itself effective — a direct check-in with you, below). This
skill is responsible for Process and Performance; Product stays a
separate, on-demand command.
Step 1 — Resolve the spec
Find specs/<spec-name>.md (the spec name comes from $ARGUMENTS). If it
doesn't exist, say so and offer to list specs/*.md. Read the whole file.
Step 2 — Resolve the task
- No Task Breakdown table (single-piece spec): the whole spec is "the
task." Its current Owner/Type are on the
**Owner:**/**Type:**metadata lines. - Has a Task Breakdown table: if a
[task]argument was given, match it against the table (by number or by clearly matching description). If it's missing or ambiguous, show the full table (with Type, Owner, and Status columns visible) and ask the user which task they mean.
Step 3 — Sanity-check the scope before delegating anything
Delegation in this plugin always operates at the level of one well-scoped task — never a whole undecomposed feature, if that can reasonably be avoided. A large, multi-part chunk of work handed off wholesale — to a human or to Claude — is exactly where things fall through the cracks or go subtly wrong, regardless of who's doing it.
This matters most when there's no Task Breakdown table (the whole spec is about to be delegated as one unit). Look honestly at the Goals, Non-Goals, and Proposed Approach: does this genuinely read as one coherent piece of work, or does it actually span multiple natural pieces — different components/layers, a mix of mechanical and judgment-heavy work, things that don't obviously need the same person/agent to do them all?
- If it looks properly single-scoped: continue to Step 4, no need to make a thing of it.
- If it looks like it should have been broken down: say so plainly, name
the natural seams you see, and ask whether they'd rather split it into
tasks first (point them to
/4ds:refine <spec-name>to restructure the spec into a Task Breakdown table — that's refine's job, not this skill's) or proceed with the whole thing as one delegation anyway. This is a flag, not a block — if they want to proceed as-is after hearing the concern, that's their call to make; continue to Step 4.
Do the same lightweight gut-check even when resolving a row from an existing Task Breakdown table — brainstorming aims for well-scoped rows, but it can still under-split something. Same treatment: flag it, let the user decide.
Step 4 — Decide the new owner
State the task's current owner plainly (Unassigned, Claude, or
Human). Ask the user who should own it now: Claude or Human.
- If they're assigning it to Claude for the first time (from
Unassigned), this is a plain, low-stakes confirmation — just make sure you both agree on the task's scope before acting on it. - If they're reassigning a task that already has an owner (Claude →
Human, Human → Claude, or re-confirming the same owner after some work
may have already happened), confirm explicitly and ask whether the
task's Status should reset too — e.g. reassigning a
BlockedorIn progresstask to a different owner usually means whoever picks it up next is starting over or picking up someone else's partial work; ask rather than assuming either way. - Never infer an owner from context or default to one silently. If the user's answer is ambiguous, ask again — don't guess.
If the new owner is Human: go to Step 5 — recording it is not the end of this flow.
If the new owner is Claude: skip to Step 7 before recording anything — you want to know the task's Type before you write the Owner and Type cells together in one update.
Step 5 — Record a Human assignment (via spec-writer)
Use the Agent tool to invoke the 4ds:spec-writer subagent with
MODE: cell-update:
TARGET_PATH: specs/<spec-name>.md
Cell update: Task <#> Owner -> Human (or the **Owner:** metadata line, for single-task specs)
Status update (if discussed in Step 4): <new value, or omit>
REVISION_HISTORY_ENTRY: <today's date> | Delegated task <#/description> to Human (was <previous owner>) | requested by userStep 6 — Stay engaged: check for outstanding questions (Human-owned tasks)
Recording the assignment is not a stopping point. Ask the user directly: something like "Any outstanding questions about this task before you get started?" Then actually have that conversation:
- Answer questions using the spec's own context (Goals, Non-Goals, Proposed Approach, any relevant checklist items) and, if useful, by reading the actual codebase (Read/Grep/Glob) to point them at relevant existing code or patterns.
- This is discussion and support only — Description, not Delegation. Do not write code, do not produce a deliverable, do not do any part of the task yourself here, no matter how small. If they ask you to just do a piece of it, remind them this task is Human-owned and redirect: either they do it, or it gets reassigned to Claude via a fresh run of this same command.
- Keep checking in ("anything else?") until they're actually done, not just after one round.
- If the conversation surfaces something that should change the spec
itself (not just clarify it), don't edit it here — point them to
/4ds:refine <spec-name>afterward.
Once they confirm they're set, continue to Step 14 (Performance Discernment check-in) to close out — don't stop here.
Step 7 — Understand the task before classifying it
Read the task's description in full along with whatever spec context is relevant (Goals, Non-Goals, Proposed Approach, and the task's own description if it's part of a breakdown). If the scope is genuinely unclear — you can't tell what "done" looks like, or the task could reasonably mean two different things — ask the user now. You're conversational here, unlike the one-shot specialist agents you might dispatch to next, so resolve ambiguity now rather than passing it along.
Step 8 — Classify the task's Type
Decide which of these the task actually is, based on what it needs, not how it was phrased:
- Coding — writing, changing, or fixing code/config/tests in the repo.
- Research — finding out something you don't already know, especially from external sources, that needs to be reported with citations.
- Writing — producing prose (docs, README updates, release notes, user-facing copy) grounded in decisions/facts you already have.
- Analysis — investigating data/logs/metrics/code already in the repo to explain something (a regression, a gap, a pattern) — not writing new code, not looking things up externally.
- Other — doesn't fit the above; you'll handle it directly using your own judgment about what's appropriate for that kind of task.
State your classification to the user in one line (e.g. "This looks like a Research task — I'll have the researcher agent look into it and cite sources.") so they're not surprised by what happens next. If they push back on the classification, use theirs instead — this isn't a hard gate, just a heads-up.
Step 9 — Record Type + Owner together (via spec-writer)
Use the Agent tool to invoke the 4ds:spec-writer subagent with
MODE: cell-update:
TARGET_PATH: specs/<spec-name>.md
Cell update: Task <#> Type -> <Coding|Research|Writing|Analysis|Other>, Owner -> Claude, Status -> Not started (or the **Type:**/**Owner:** metadata lines, for single-task specs)
REVISION_HISTORY_ENTRY: <today's date> | Delegated task <#/description> to Claude, classified as <Type> | requested by userStep 10 — Dispatch based on Type
Determine an output location before dispatching, for any type other than
Coding: outputs/<spec-name>-task-<#>.md if the spec has a Task
Breakdown table, or outputs/<spec-name>.md for a single-task spec —
unless the task is Writing-type and clearly targets a real project file
(e.g. "update the README," "write the migration guide at
docs/migration.md"), in which case use that real path instead.
- Coding: read
${CLAUDE_PLUGIN_ROOT}/skills/code/SKILL.mdand follow its process exactly (it assumes the spec, task, and Owner are already resolved, which they are by this point). It covers resolving any remaining ambiguity, invoking thecoderagent in an isolated worktree, running Process Discernment (process-reviewer) automatically, updating the spec's Status, and reporting to the user. Once that process is done, skip straight to Step 14 — do not repeat Steps 11-13. - Research: use the Agent tool to invoke the
4ds:researcheragent with the task description, relevant spec context, and the output path from above as its TARGET_PATH. The researcher agent has no Write access to arbitrary paths beyond what it's given — trust its own file-writing if it reports writing to that path; otherwise take the findings it returns and write them there yourself.researcherdoesn't create or modify anything in the actual codebase, so it does not get a Process Discernment pass — continue to Step 12. - Writing: use the Agent tool to invoke the
4ds:writeragent with the task description, relevant spec context/decisions to ground it in, and the target path from above. It runs in its own isolated worktree (likecoder) since it writes directly to real files. Because it produces/modifies real files just likecoderdoes, continue to Step 11 for Process Discernment before updating the spec. - Analysis: use the Agent tool to invoke the
4ds:analystagent with the question to investigate, relevant spec context, and the output path from above as its intended TARGET_PATH. It has no Write tool — take the report it returns and write it to that path yourself. Likeresearcher, it doesn't modify the codebase, so skip Process Discernment — continue to Step 12. - Other: handle it directly, in this conversation, using whatever approach and tools are actually appropriate for the task — there's no dedicated agent for this bucket by design, since "other" tasks vary too much to generalize. Apply the same spirit as the specialist agents: ground claims in something real, don't fabricate, don't overstate what you accomplished. Write your output to the target path from above if the task produces a deliverable, or just report inline if it doesn't. Continue to Step 12 — Process Discernment is specific to the dedicated file-producing agents, not to work you did yourself here.
Step 11 — Invoke process-reviewer (Writing-type only)
Process Discernment runs automatically here too, the same as it does
inside the coding process — this is not optional and not something to ask
the user about. Use the Agent tool to invoke the 4ds:process-reviewer
subagent with:
Specialist report: <the writer agent's full report>
Spec: specs/<spec-name>.md
Task: <the exact task text/row>
Branch/worktree: <the branch name and worktree path the writer agent returned>Save its returned report to outputs/<spec-name>-task-<#>-process-review.md
(or outputs/<spec-name>-process-review.md for a single-task spec) using
the Write tool.
Step 12 — Update the spec from the outcome (Research / Writing / Analysis / Other)
Determine an outcome the same way the coding process does:
- Completed with no blockers → new Status:
Completed — pending review - Partially completed or blocked → new Status:
Blocked
Use the Agent tool to invoke 4ds:spec-writer with MODE: cell-update to
set that task's Status to the value above, and append one Revision History
row summarizing the outcome, the output path, and — for Writing — the
process-review output path too.
Never set Status to Done — that's the user's call, made via 4ds:refine
once they've reviewed the output.
Step 13 — Report to the user (Research / Writing / Analysis / Other)
Relay the agent's (or your own, for Other) report in full, give the exact
output path, and — for Writing — the process-reviewer's report/path as
well. Remind the user that reviewing it and deciding it's actually
satisfactory is theirs to do — Discernment and Diligence stay with them
regardless of task type. Note that 4ds:discern's checklist (Product
Discernment) is code-diff-focused, so for non-Coding output, that
particular check is manual (reading the file) rather than running
4ds:discern against it.
Continue to Step 14.
Step 14 — Performance Discernment check-in (always, every path)
Regardless of what happened above — Human-owned, or any Claude-owned Type
— close every /4ds:delegate run with this. This is about how this
interaction went, not the deliverable. Present it as a markdown table and
actually ask the user to reflect on it; don't fill it in yourself or treat
it as rhetorical:
| Dimension | What to consider | Your take |
|---|---|---|
| Clarity | Was my explanation of what I was doing/finding easy to follow? | |
| Question-asking | Did I ask clarifying questions at the right moments — not too many, not too few? | |
| Responsiveness | Did I correctly incorporate any corrections or redirection you gave me? | |
| Transparency | Did I flag uncertainty/limitations honestly, or overstate confidence anywhere? | |
| Efficiency | Did I get to the point without unnecessary verbosity? | |
| Collaboration style | Did this feel like a genuine collaboration — offering options, pushing back when useful — rather than just compliant? | |Say plainly that this is optional and low-stakes — a quick gut-check, not a form to fill out — and that there's no need to answer every row. Don't persist their answers anywhere or act on them further unless they ask you to; this is their own reflection, not a record this plugin keeps.
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.

