/agentic-tools:chain-riskfrom agentic-tools
Computes compounding-error risk for multi-step/multi-agent pipelines using per-step success rate raised to step count and shows where cumulative reliability falls below a target, guiding gate and checkpoint placement.
Ships in agentic-tools. 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.
You are an orchestrator doing the reliability math that justifies where gates go. The uncomfortable arithmetic behind every long agent run:
A step that succeeds 99.9% of the time, run 50 times, succeeds end-to-end only ~95% of the time. At 95% per step, 50 steps in a row succeed only ~7.7% of the time — i.e. it fails more often than not.
p_success(pipeline) = p_step ^ n_steps (independent steps). Small per-step slips compound into near-certain failure over a long chain. This is the quantitative reason for /gate and /verdict: checkpoints reset the chain.
Enumerate the steps / tool calls / agent hops in the flow (read the plan, the /build decomposition, or the harness trace). For each step estimate a success probability (from /observe history if available — real err% beats guessing; otherwise use a conservative default and label it an assumption).
Ungated: p_end = Π p_step_i (all steps must succeed in a row)
Uniform: p_end = p^n (quick estimate at rate p over n steps)
Report the curve — how end-to-end success decays as n grows — and the break-even step count where p_end drops below the target (e.g. 90%).
| p_step | n=10 | n=25 | n=50 |
|---|---|---|---|
| 0.999 | 99.0% | 97.5% | 95.1% |
| 0.99 | 90.4% | 77.8% | 60.5% |
| 0.95 | 59.9% | 27.7% | 7.7% |
A gate/checkpoint that catches and corrects a failure resets the chain for the steps after it. Segment the pipeline so no ungated run exceeds the break-even length:
p_end ≈ Π ( p_segment_i ) where each segment is short enough that
p_step ^ segment_len stays above target,
and a gate corrects before the next segment.
Recommend:
p_step × highest downstream fan-out) — harden or route those up first (/route)./build) so segments are independently gated and, where possible, parallel rather than serial.Report, concise:
"Pipeline: 40 steps @ ~0.97 → ungated end-to-end ~29%. Break-even (90%) at 3 steps. Recommend gates after steps 3, 9, 18, 27 (4 segments, each ≥90%). Riskiest: step 22 (0.90, feeds 6 downstream) — route up."
/gate — build the checkpoints at the recommended positions./verdict — the terminal gate; also resets trust between owner and merge./observe — supplies real per-step err% so the model is measured, not assumed./route — escalate the model on the riskiest steps to raise their p_step.Independence is an approximation — correlated failures (one bad assumption poisoning many steps) can be worse than p^n predicts. Treat the number as a floor on how many gates you need, not a ceiling.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kurtlehnardt/agentic-tools --plugin agentic-tools29 skills in this plugin
/architect-reviewFull architectural review of the codebase by a senior architect subagent. Finds and fixes CRITICAL/HIGH issues, reports MEDIUM/LOW. Trigger: architect review, architecture review, full review, code review./babysitCron supervisor that checks on worker subagents every ~5 minutes, compares their progress against the original plan, and writes NUDGE.md into drifting worktrees. Trigger: babysit, supervise workers, watch agents./buildOrchestrate a spec-driven implementation pipeline: spec intake, requirements ledger, plan, architect gate, product gate, task decomposition with model tiering, parallel one-shot workers, a deterministic mechanical gate plus an opus judge, and verified merge. Trigger on "build this", "implement this", "orchestrate this", "build from this spec/contract/PRD", or whenever the user drops a spec, OpenAPI file, or requirements doc and asks for an implementation. Pass --quickly for a low-token variant that keeps subagent workers but replaces all per-phase and per-task reviews with one final opus review on a PR./captureTurn a failure — a bug, a bad output, a prod incident, a verdict FAIL — into a minimal, reproducible eval level added permanently to the suite, so the same failure can never silently return. Builds the eval flywheel. Trigger: capture this failure, add a regression eval, this bug came back, turn this into an eval, failure to level, lock in this fix, reproduce this failure./constitutionPin a north-star constitution for a multi-agent system and protect the prompt layer from tampering — detect and block unauthorized system-prompt mutation and prompt-injection that tries to redirect downstream agents. Trigger: pin the constitution, north star, protect the system prompt, prompt integrity, stop prompt tampering, agent alignment guardrail, injected intent./contractTurn a task into a declarative contract — objective/intent plus machine-checkable acceptance criteria and a stub-proof gate. Refuses prompt-as-wish and imperative pseudocode. Trigger: write a contract, define the contract, spec this task, contract for, declarative spec, acceptance criteria for.