agentleFS
febradc-githubfebradc-github/4ds/skills/delegate/SKILL.md

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.

36 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • MicrosoftSkill

    release

    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

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 33 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
  1. Very specific:

    Has a Task Breakdown table: if a [task] argument was given, match it against the table (by number or by clearly matching description).

    line 35
  2. Distinctive:

    If it looks properly single-scoped: continue to Step 4, no need to make a thing of it.

    line 55
  3. Very specific:

    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 …

    line 57
  4. Distinctive:

    Do the same lightweight gut-check even when resolving a row from an existing Task Breakdown table — brainstorming aims for well-scoped …

    line 65
  5. Very specific:

    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 …

    line 75
  6. Distinctive:

    If they're reassigning a task that already has an owner (Claude → Human, Human → Claude, or re-confirming the same owner after some work …

    line 78
  7. Distinctive:

    Never infer an owner from context or default to one silently.

    line 85
  8. Very specific:

    Use the Agent tool to invoke the 4ds:spec-writer subagent with MODE: cell-update:

    line 97
  9. Distinctive:

    Keep checking in ("anything else?") until they're actually done, not just after one round.

    line 123
  10. Very specific:

    If the conversation surfaces something that should change the spec itself (not just clarify it), don't edit it here — point them to …

    line 125
  11. Distinctive:

    Read the task's description in full along with whatever spec context is relevant (Goals, Non-Goals, Proposed Approach, and the task's own …

    line 134
  12. Very specific:

    Coding: read ${CLAUDE_PLUGIN_ROOT}/skills/code/SKILL.md and follow its process exactly (it assumes the spec, task, and Owner are already …

    line 184
  13. Very specific:

    Research: use the Agent tool to invoke the 4ds:researcher agent with the task description, relevant spec context, and the output path from …

    line 192
  14. Very specific:

    Writing: use the Agent tool to invoke the 4ds:writer agent with the task description, relevant spec context/decisions to ground it in, and …

    line 201
  15. Very specific:

    Analysis: use the Agent tool to invoke the 4ds:analyst agent with the question to investigate, relevant spec context, and the output path …

    line 208
  16. Very specific:

    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 …

    line 249
  17. Very specific:

    Never set Status to Done — that's the user's call, made via 4ds:refine once they've reviewed the output.

    line 254

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 Blocked or In progress task 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 user

Step 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 user

Step 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.md and 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 the coder agent 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:researcher agent 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. researcher doesn'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:writer agent 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 (like coder) since it writes directly to real files. Because it produces/modifies real files just like coder does, continue to Step 11 for Process Discernment before updating the spec.
  • Analysis: use the Agent tool to invoke the 4ds:analyst agent 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. Like researcher, 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.