Skip to content
cccskills
FreePublished on GitHub

delegate

Decompose substantive work into phases, dispatch each phase to a sub-agent, and adjudicate what comes back. Use whenever a request asks for implementation, investigation, a fix, a review, or any change to files — including small ones — and whenever you are about to read source or run a diagnostic yourself instead of handing it off. Also use when a report from a sub-agent needs judging, when a phase needs re-dispatching, or when a user names one instance of a pattern. Does not apply when your own prompt begins "Your ROLE_TYPE is sub-agent." — then follow references/sub-agent-contract.md instead.

The English summary is being prepared. Showing the original description.

See how to install

Files included (5)

  • SKILL.md10.7 KB
  • references/fix-cycle.md1.1 KB
  • references/harness-notes/claude-code.md3.9 KB
  • references/sub-agent-contract.md2.2 KB
  • SKILL-GOALS.md1.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Delegate

The orchestrator's context is the one window that lasts the whole session. Every file it reads and every command output it holds is judgment budget spent. Sub-agents get a fresh window per task, so the orchestrator routes, defines done, and judges; the agents read, run, and write.

Two roles

Every dispatch prompt opens with Your ROLE_TYPE is sub-agent. That line is an anti-recursion marker: a sub-agent that inherits this skill must not fan out further. If your prompt opened that way, stop here and follow references/sub-agent-contract.md. Otherwise you are the delegator and the rest of this file applies.

When this applies

Any request that changes files, investigates a cause, gathers facts, fixes a bug, or reviews work — regardless of size — and any moment you are about to read source or run a diagnostic yourself instead of handing it off. "It's only two lines" is delegated. The one exception: a check scoped to a single file you edited yourself this turn.

Also applies once work is underway: judging a sub-agent's report (see Adjudicate), re-dispatching a phase, or generalizing a user-named pattern instance (see Pattern expansion).

Answer inline when the answer is already in your context and no file changes.

Decompose

Split the request into phases. Keep only the phases that produce work; never pad.

PhaseProduces
readThe material the work depends on, located and read
gatherExternal facts: docs, prior art, current system state
processThe analysis and the chosen approach
verifyThe approach checked against the real code and environment
writeThe change
validateLint, type-check, build results
testTest runs, plus new tests covering the change
reportWhat changed, with evidence
reviewIndependent critique of the result

Some shapes recur and have their own handling:

  • Bug fix → references/fix-cycle.md: reproduce before changing.
  • Same edit across many targets → one process dispatch decides the change; N generic dispatches apply it; one review dispatch checks. See parallel-work.

Dispatch

  • One phase per dispatch. A phase may fan out across N targets (N dispatches, same phase); it never blends with another phase.
  • Send independent dispatches together in one turn so they run concurrently. Serialize only where one consumes another's result, or two would write the same file without isolation.
  • Results from read/gather/process go to a file, not into your context. Pass the path to the next phase; do not forward the content.

Pick the agent

Classify by what the task asks of the agent, not by its name:

  • Specialist — any agent whose description matches the phase's domain. Gets observations, success criteria, and context. Never gets implementation steps.
  • Generic — general-purpose (or the harness equivalent) and Explore. Gets a prescribed implementation: exact edit, exact files, exact verification. Explore only for exact-match search.
  • Reviewer — for the review phase, an agent different from the one that wrote, preferring a reviewer- or auditor-typed agent for the domain.

When no specialist fits, dispatch generic with a prescribed task.

Both prompts open with the same two lines — copy them verbatim onto the first line of whichever template follows: Your ROLE_TYPE is sub-agent. Follow the sub-agent contract at <absolute path to references/sub-agent-contract.md>.

Prompt — specialist mode

PHASE: <one of the phase names>
TASK: <one sentence>

ORIGINAL OUTCOME:
- <the user's requested outcome>

ADMISSION:
- <the acceptance criterion this phase advances, or the applicable source contract>

OBSERVATIONS:
- <facts already in your context: user statements, prior STATUS reports, verbatim errors, file:line if known>

DEFINITION OF SUCCESS:
- <measurable outcome>
- <acceptance criteria>
- <how it is verified — a command and its expected result, or the reviewer that will check>

DELIVERY:
- Write anything longer than a line to .tmp/scratch/reports/<YYYYMMDD>-<slug>.md and return the path.

CONTEXT:
- Location: <where to look>
- Scope: <boundaries>
- Constraints: <user-mandated requirements; existing patterns to follow>
- Commands: <the project's quality gates for validate/test, or "discover the ones this project defines">

ECOSYSTEM CONTEXT:  (omit the section if empty)
- <session facts the agent cannot read anywhere: authenticated CLIs, a PR under review, another agent live on the same files>

YOUR TASK:
<the phase's row from the table below, verbatim>

Phase rows for YOUR TASK:

PhaseRow
readLocate and read the material this work depends on. Write exact paths and quoted content to the delivery file; do not summarize away detail a later phase needs. Edit nothing.
gatherCollect the external facts named in CONTEXT. Record each with its source in the delivery file. Edit nothing.
processAnalyze the material at the paths in OBSERVATIONS. Choose an approach; record it and why alternatives were ruled out. Edit nothing.
verifyCheck the chosen approach against the real code and environment in CONTEXT. Record where it holds and where it fails. Implement nothing.
writeMake the change in DEFINITION OF SUCCESS. Touch only files within CONTEXT Scope.
validateRun the commands in CONTEXT Commands, or discover this project's lint/type/build gates and state which you ran. Report exact output, pass and fail. A silenced failure is a failure.
testRun the test invocation in CONTEXT Commands, or discover it and state which you ran. Add tests covering the change. Report exact output.
reportState what changed and the evidence for it: files, commands, outputs. Make no claim the evidence does not support.
reviewCritique the result at the path in OBSERVATIONS against DEFINITION OF SUCCESS. Report gaps, contradictions, unsupported claims. Fix nothing.

Task-intent admission

Every delegated phase records:

  • ORIGINAL OUTCOME: the user's requested outcome; and
  • ADMISSION: the acceptance criterion it advances or applicable source contract.

An explicit skill or command selects its route. Discovery evidence is admitted only when the task or applicable contract makes autonomous routing a criterion.

A finding blocks only when its evidence shows a concrete impact on the ORIGINAL OUTCOME or ADMISSION. Direct security, data-loss, and correctness blockers remain blocking. Record other suggestions as advisory; they do not create a new test, subtask, or merge block.

Re-dispatch only when it can add new evidence, test a falsifiable hypothesis, correct a named defect, or use a changed condition to advance the ORIGINAL OUTCOME. Name that information value and what remains. For a missing input, re-dispatch when it can resolve the admitted criterion; otherwise change the approach or escalate.

The two-attempt re-dispatch cap is a terminal safeguard, not a reason to retry without new information. At the cap, report BLOCKED with the named gap.

Rules for filling it in:

  • A section you cannot fill from what is already in your context is omitted, not invented. Empty OBSERVATIONS or ECOSYSTEM CONTEXT is a valid state; a guess is not.
  • Fill ORIGINAL OUTCOME and ADMISSION as Task-intent admission defines.
  • OBSERVATIONS is pass-through: only what is already in your context. Reading, grepping, or running commands to fill it is pre-gathering; the agent does that with a fresh window.
  • State observations as facts ("exit code 1", "the error text is: …"). Where you hold a hypothesis, label it: Hypothesis to verify: ….
  • Constraints are outcomes and boundaries, never steps. Naming the project's own gate in Commands is a constraint, not a step.
  • Say nothing the agent inherits: repo conventions, toolchain, "explore freely", "use available skills". Those live in the project's agent instructions. Name a skill only when the agent must load it and would not on its own.
  • Paths: written as the agent will resolve them from its own working directory; relative inside the repo, and the symlink form (not the resolved target) for anything reached through a symlink.

Prompt — generic mode

PHASE: <write | validate | test | read>
TASK: <the exact instruction — the edit to make, the pattern to find, the command to run>

ORIGINAL OUTCOME:
- <the user's requested outcome>

ADMISSION:
- <the acceptance criterion this phase advances, or the applicable source contract>

FILES:
- <exact paths>

DEFINITION OF SUCCESS:
- <the verification command and its expected result>

DELIVERY:
- Include the verification output in your report.

Adjudicate

Reports are claims. For each one:

  • Check that the evidence supports the conclusion. "Tests pass" without the command output is not evidence; re-dispatch for the output.
  • Judge the returned work; do not re-derive it. Re-reading what the agent read spends the context that delegating saved.
  • Two reports conflict → find the falsifiable claim and dispatch a check for it. Confidence is not a tiebreaker.
  • Apply Task-intent admission before treating a finding as blocking or scheduling a re-dispatch.

Every request that changed code gets an independent review, from a reviewer other than the writer.

Pattern expansion

A user pointing at one instance of a smell, bug, or missing check is naming a pattern. Unless they said "only this one": dispatch an audit of the whole file or module for the pattern, report the instances found, and confirm with the user before fixing beyond the named file.

Pointers

  • references/sub-agent-contract.md — what dispatched agents follow.
  • references/fix-cycle.md — the reproduce-first cycle for bug-fix dispatches.
  • parallel-work — fan-out, fan-in, maker/checker, tournaments, loops with caps; also points to Claude Code harness mechanics.
  • If orchestrator-discipline is installed: what the orchestrator may read and run; enforced by hooks.
  • If process-siren is installed: writing decision points as evaluable Mermaid diamonds.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Add automated documentation updater to any Claude skill. Creates a Python sync script that downloads upstream docs, processes markdown for AI consumption, and maintains local cache with configurable refresh. Collects template variables, then delegates implementation through 5-phase workflow. Use when adding auto-updating reference documentation to plugins or skills.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

SAM-style feature initiation workflow — discovery through codebase analysis, architecture spec, task decomposition, validation, and context manifest. Use when a user asks to add a feature, plan a feature, or convert an idea into an executable SAM plan.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

Browser automation for AI agents using the agent-browser CLI and Playwright. Use when navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, logging into sites, or automating any browser task. Triggers on "open a website", "fill out a form", "click a button", "scrape data", "test this web app", "automate browser actions", or any programmatic web interaction request.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

Runs the description-drift experiment — spawns all Claude Code agents simultaneously to collect self-reported capabilities, then compares them against static frontmatter descriptions to reveal how reliable orchestrator routing based on descriptions actually is. Use when measuring description drift across the agent fleet, re-running the capability collection experiment, analyzing a specific agent's self-reported capabilities, or auditing whether frontmatter descriptions accurately reflect agent behavior.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

Create or adapt Claude Code agent definitions. Use when creating an agent, changing subagent configuration, selecting agent scope, or designing a specialized delegation role.

The English summary is being prepared. Showing the original description.

Jamie-BitFlight/claude_skills67Updated Oct 18, 2026

See all skills by Jamie-BitFlight

Report a problem with this skill