/clanker-skills:adaptive-code-orchestratorfrom clanker-skills
Adaptively choose single-agent work, parallel reconnaissance, dependency waves, or independent review for reliable repository changes. Use for uncertain, cross-cutting, multi-file, long-running, or high-risk coding work where agent coordination may improve evidence or speed, or when the user asks how much agent coordination to use. When explicitly invoked for a small localized edit, stay single-agent and keep the workflow minimal.
Ships in clanker-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Make the smallest correct change with proof proportional to risk. Breadth is for independent evidence; depth is for stateful execution and falsification. Agent count is a cost, not a success metric.
The lead agent exclusively owns contract tracking, the global plan, shared state, integration, and the completion claim. It enforces user-granted scope and authority; it does not own or expand permissions. Workers receive bounded questions or DAG nodes. They do not broaden scope, rewrite the objective, merge their own work, or certify completion.
Prefer a one-level star for ordinary coding work:
user -> lead -> optional scouts or isolated implementers -> lead
-> optional risk verifier
Add another delegation level only for a genuinely self-contained subtree that cannot be managed directly. Do not create hierarchy merely to relay status. Give every level the same evidence standards and authority boundaries, not the same evidence payload.
Workers are read-only by default. Parallel writers require disjoint ownership and isolated worktrees or equivalent sandboxes. Never allow concurrent writers to mutate the same working tree.
Use the full contract before delegation or when the work crosses a subsystem, changes a shared or public invariant, lacks a direct acceptance check, or touches persistence, money, authorization, security, concurrency, migrations, deployment, external systems, or irreversible state. For a localized reversible edit with a direct check, use a one- to three-line contract and remain SOLO.
OUTCOME: user-visible result
ACCEPTANCE: observable evidence that proves it
NON-GOALS: nearby behavior that must not change
AUTHORITY: allowed reads, writes, external actions, and approvals
BASELINE: current behavior and repository state
UNKNOWNS: facts that could change the implementation
RISK: blast radius, reversibility, and costly failure modes
RECON: SOLO | SCOUT | FAN-OUT
EXECUTION: SOLO | DAG-WAVES | SEQUENTIAL
REVIEW: SELF-CHECK | INDEPENDENT | ADVERSARIAL
SWITCH TRIGGER: evidence that would expand or contract the topology
STOP: success, partial, or needs-input condition
Keep an obligation ledger separate from a progress ledger. The obligation ledger holds the stable contract and invariants. The progress ledger holds claims, evidence, disproved hypotheses, edits, tests, and open gaps. Keep both in working context unless the user explicitly requests or authorizes a durable artifact. A worker may update evidence, never the contract.
If an unknown is an irreducible user or product choice—such as the target, desired behavior, compatibility contract, rail set, or risk tolerance—stop before editing and ask one concise question. Do not infer the choice or delegate workers to manufacture it.
Choose reconnaissance, execution, and review independently. Use SOLO reconnaissance when the change is localized, sequential, reversible, well specified, and has a direct verification command. This is the default.
Use SCOUT for one bounded uncertainty where an independent read-only pass would materially change the plan or review it.
Use FAN-OUT only when at least two independent uncertainty classes exist, such as competing root causes, separate product surfaces, more evidence than one context can inspect reliably, or orthogonal security, performance, and API contract questions. Start with the smallest wave that covers those classes, normally two to four sealed scouts. Diversity must come from different hypotheses, evidence channels, tools, or surfaces—not cosmetic role names.
Use DAG-WAVES execution when implementation nodes have explicit dependencies and unblocked nodes can be edited in isolation. The lead integrates in dependency order and verifies after each wave.
Use SEQUENTIAL execution when work shares files or runtime state, has a narrow critical path, or affects money, authorization, migrations, deployment, security boundaries, or irreversible state. Use one writer and deterministic verification.
Use INDEPENDENT review for changes spanning product surfaces or public contracts and for any persistence, money, authorization, security, concurrency, migration, deployment, external-system, or irreversible-state change. Use ADVERSARIAL review only when a high-risk finding remains ambiguous: one critic may challenge unsupported review claims; do not convene a voting council.
Do not fan out merely because slots are available. If one root cause gates all work, drill it first. If coordination, context duplication, merge risk, and verification cost exceed the value of independent evidence or latency saved, stay concise.
The phases are conditional, not a required ritual. SOLO runs seed depth and the depth drill. SCOUT adds one bounded read-only check. FAN-OUT uses a breadth wave and convergence. DAG-WAVES applies only to isolated execution nodes.
The lead first discovers enough repository structure to partition honestly: canonical sources, current behavior, relevant definitions and calls, tests, shared invariants, and the first unproved edge. Do not delegate an unbounded "understand the repo" task.
Only when SCOUT or FAN-OUT reconnaissance was selected, dispatch one scout or an independent wave respectively. Give each a sealed packet with one decision-changing question, exact scope, constraints, evidence priority, falsifier, and return schema. Workers form initial findings before seeing peer conclusions. They return compact evidence deltas, not transcripts.
The lead merges findings into the progress ledger, deduplicates by claim and artifact, preserves minority findings, and reconciles contradictions. Evidence outranks consensus in this order:
reproduced runtime or executed checks
> compiler, type, static, and structural evidence
> exact source inspection
> canonical documentation
> agent judgment
Agreement alone never authorizes an edit. Resolve a disagreement with the cheapest discriminating test, trace, or canonical source check.
Choose the smallest falsifiable implementation path. Reproduce or capture the baseline, trace the affected call/data chain, make the minimal edit, and run a focused check. Explore multiple repair candidates only when selection can be grounded in executable or structural evidence.
Use one SCOUT when a failed gate creates one bounded decision-changing unknown. Breathe out into FAN-OUT only when it creates at least two independent unknowns. Otherwise remain in depth. Remove a role when its evidence channel is exhausted.
For fan-out, DAG execution, review packets, ledgers, and merge gates, read references/orchestration-protocol.md.
Before editing, establish the acceptance obligations, baseline, relevant callers and user surfaces, canonical implementation source, and verification commands. After editing:
A reviewer supplies hypotheses, not authority. Worker self-reports and passing tests alone do not prove intent fit or coverage.
Stop breadth when every independent uncertainty class has evidence, another worker would duplicate an existing channel, or the last wave added no decision-changing candidate or falsifier. Do not start a second wave unless the first reveals a named new frontier.
Stop a depth branch when it is disproved, dominated by a better verified path, or repeated work produces no new discriminating evidence. Reformulate rather than adding agents to a stale hypothesis.
Report:
Finish with the selected mode, changes, decisive proof, residual risks, and why more agents would or would not add a distinct evidence channel.
When the user asks why this protocol works, requests a research refresh, or wants to tune the topology, read references/evidence.md. Treat it as a dated evidence snapshot and browse current primary sources before claiming it is the latest research.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub canerkocak/clanker-skills --plugin clanker-skills22 skills in this plugin
/analyze-data-qualityAssess whether structured data, financial equations, state-machine accounting, query results, dashboards, or analytical evidence are trustworthy enough to use. Use to check data quality, reconcile conflicting sources or metric definitions, adjudicate financial-data findings, or decide whether evidence is safe to cite./ast-grep-callchain-auditPerform strict AST-based call-chain and code-quality audits with ast-grep. Use for code reviews, refactors, unfamiliar code, dead parameters, duplicate helpers, wrong call-site usage, stale functions, AI-generated slop, or multi-rail and multi-surface changes.
/better-englishLine-edit English prose when the user wants to tighten a draft, cut filler, or remove repetition. Preserve the writer's meaning and voice.
/call-chain-invariantsClassify which discovered product surfaces actually share an invariant before claiming a fix is complete. Use for multi-rail, admin/app, API/UI, lifecycle, explorer, fee, status, or repeated-state bugs where a one-surface patch may leave a reachable sibling broken. Consume the semantic blast-radius graph; do not assume a hard-coded chain or UI matrix applies.
/codebase-searchTrace repository behavior with a read-only Astra low/fast Codex session. Use for implementation searches, call-chain analysis, and source-backed code questions when delegation is permitted. Handle simple known-file lookups directly.
/deepen-promptUse when the user asks to deepen a prompt or task brief while keeping its scope. Rewrite it around expert judgment, primary material, a concrete method, the conditions it must satisfy, and independent checks.