<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
yigitkonur/plugin-agentic-maker/derail
──Details
PublishedOctober 21, 2026 at 01:26 PM
Content Hashsha256:db132375559a1cbe...
Git SHAb424e9bc72ac
──Files
Files (1 file, 10.2 KB)
SKILL.md10.2 KBactive
SKILL.md · 92 lines · 10.2 KB

version: "1.0.0" name: derail description: Test a skill, plugin, CLI or MCP tool with fresh agents, read their runs, fix the text that caused each drift, rerun. Started by you; spends model usage. disable-model-invocation: true argument-hint: "<target path or scenario> [--rounds N] [--runner headless|existing] [--from <record>]" allowed-tools: Bash(agentic-maker ) Bash(${CLAUDE_PLUGIN_ROOT}/bin/agentic-maker ) Bash(git diff ) Bash(git -C diff *) Read(///am-ws-*/) hooks: Stop:

  • hooks:
  • type: command

command: '"${CLAUDE_PLUGIN_ROOT}/bin/agentic-maker" ledger gate'


<!-- src: audit-skill-by-derailment/SKILL.md#When to Use -->

Derail

Arguments: $ARGUMENTS

Environment: !${CLAUDE_PLUGIN_ROOT}/bin/agentic-maker doctor --human 2>&1 || true

Use this when you want to know whether a skill (or plugin, CLI, script or MCP tool) holds up when an autonomous agent uses it for a real task, why an agent drifted, guessed or stopped early, or whether a fix closed the drift it was meant to close. Do not use it to create a skill from nothing, to rewrite a one-off prompt, or for copy edits that would not change what an agent does.

Method and vocabulary come from the derailment-method skill (invariants, markers, the root-cause codes, fix patterns). Read it before judging anything.

The loop

Lost your place (a long loop, a compaction)? agentic-maker ledger status --session ${CLAUDE_SESSION_ID} names the phase you are in and the one command that moves it on; run that.

Work serially through these steps. Every step ends in a command whose output you read; a claim is not a result.

How to run the commands: one agentic-maker command per Bash call, with literal paths copied from the previous reply (every reply carries the next command in next_actions). Shell variables, && or ; chains and heredocs cannot be checked against the allowed-tools patterns and are denied. A scenario can be named instead of pathed: agentic-maker run release-notes.

  1. Frame.
  • The target is in the arguments. If it is not, or you cannot tell its kind (skill, plugin, cli, mcp), ask the user once.
  • Scenarios are files in .agentic-maker/scenarios/. If there are none for this target, propose three (a normal task, an ambiguous one, a failure-injection one) following scenarios, and write them once the user agrees. A scenario prompt must read like a user's request and must never name the target.
  • Preview the cost: agentic-maker run <scenario> --dry-run for each scenario. Show runner, model, turn cap, budget ceiling, the environment variable names the worker gets, the number of takes and the receipts it will run afterwards (receipts_run_after; a cmd receipt runs through /bin/sh as you), then ask before spending. Read its warnings: the worker's tools are exactly the scenario's allowed_tools (read-only by default), so a task that writes files needs Write listed, and the dry-run says when the receipts expect a file the worker cannot write.
  • Open the ledger: agentic-maker ledger init --session ${CLAUDE_SESSION_ID} --target <the target directory, exactly as given in the arguments> --budget-usd <n> --rounds <n> (the --rounds value from the arguments; without it the limit is 5). Files a fix later touches are added automatically.
  1. Run. agentic-maker run <scenario> --session ${CLAUDE_SESSION_ID} starts a fresh worker in a clean room, keeps everything, and checks the scenario's Receipts when the take ends: the reply carries receipts (passed of total, and what failed). A take whose receipts fail is not a success, whatever the worker said. Several takes of the same scenario are normal (agents are not deterministic). The worker's files stay in the temp workspace named in the reply (workspace); you may Read them to see why a receipt failed. Long runs: start them with the Bash tool in the background and wait for the completion notice; do not poll. Runner choices: runners.
  2. Read. Spawn the agentic-maker:trace-reader agent once per take (at most five at a time) with absolute paths to trace.md, trace.norm.jsonl, receipts.json, env.json, the target files and the scenario prompt. It is read-only and runs in the background: wait for its completion notice, and do not sleep or poll. When it stops, a hook saves its reply as <take>/findings/<n>.json, runs check findings on it and, if a quote does not verify, sends the reply back to the reader once with the reasons. You copy and save nothing. Then run agentic-maker ledger status: it names the findings file and the next command. Never fix a finding that did not verify; ledger fix refuses it.
  3. Synthesize. Merge findings across takes and scenarios, rank by severity, apply the compound-P0 rule. See synthesis-matrix.
  4. Fix the cause. agentic-maker ledger fix <ids> --session ${CLAUDE_SESSION_ID} --findings <the findings file> first (it keeps a copy of the controlling file and refuses if the file was already edited), then rewrite or delete the controlling text named in the finding (patterns: derailment-method/references/fix-patterns.md). You are the only writer. After each edit run agentic-maker check diff --findings <file> --finding <id> --session ${CLAUDE_SESSION_ID} (it judges the edit against the copy ledger fix kept, so only this round counts, and flags an edit that adds a rule while the cause text is unchanged) and agentic-maker check nice --findings <file>.
  5. Rerun in a fresh session: run the scenario again, then agentic-maker check predicate --findings <file> --trace <new take>/trace.norm.jsonl --session ${CLAUDE_SESSION_ID}. It judges the findings being fixed and records each verdict. A fix is closed only when its predicate passes on a take that ran after the fix and that take's receipts pass. When a predicate cannot decide (type judged) or tested the wrong thing, read the new trace yourself and record your verdict with its reason: agentic-maker ledger judge <id> --session ${CLAUDE_SESSION_ID} --findings <file> --pass|--fail --reason "<what the trace shows>". Do not edit the predicate to make it pass.
  6. Stop when there is no P0 or P1, the receipts pass and two consecutive takes are clean; or when the round limit (default 5) or the budget is reached (ledger fix and run --session refuse past either; the budget counts the workers, the readers' tokens are listed in ledger status). Then agentic-maker ledger close --session ${CLAUDE_SESSION_ID} --outcome clean|open|unverified --reason "<why>". clean is refused until every fix has a passing verdict from a take that ran after it; the refusal names what is missing and the command for it. Report the rounds, the text that changed (git diff -- <target>, run from the project directory), the evidence references, and everything left open or unverified.

Rules

  • Before you ask the user a question mid-loop, run agentic-maker ledger set-status awaiting_user --session ${CLAUDE_SESSION_ID}; the Stop gate otherwise treats an edited target with no fresh run as "about to claim fixed" and blocks. Set it back with running when you continue.
  • If a fix cannot be re-tested (no budget, no access), close with --outcome unverified and say so; do not report it fixed.
  • A harness restriction that stops the worker from reading the skill's own files is a defect of the run (O6), not of the skill. Check env.json and the permission denials in the trace before blaming the text.
  • Do not edit scenario Receipts to make a run pass.
  • No errata files, no mistake notebooks: the corrected source is the deliverable.

<!-- src: audit-skill-by-derailment/SKILL.md#Tri-Modal Routing Decision Tree -->

Runners

How is the target being evaluated?
|- a fresh agent on a realistic task, cheap, repeatable ......... runners/headless.md (default)
|- a session you already ran (any harness, any source) ........... runners/existing.md
`- a live interactive agent: dialogs, approvals, multi-turn ...... runners/herdr.md (follow herdr-conductor)

<!-- src: audit-skill-by-derailment/SKILL.md#Available Scripts -->

Commands (agentic-maker, on PATH while the plugin is enabled)

CommandPurpose
`run <scenario> [--dry-run] [--runner headless\existing --from <record>] [--session id]`start a fresh worker (or ingest a record), keep the trace, env report and workspace, and check the Receipts
normalize <take or file>trace.norm.jsonl and trace.md from stream-json or a session transcript
check receipts <take> [--list]the Receipts again (--list shows them without running anything)
check findings <file> --trace <norm>every quote verbatim in the cited events (the reader's hook runs it for you)
check diff / nice / predicatethe applied edit fixed the cause / a [NICE] line survived / the rerun passed
ledger init / status / fix / judge / set-status / close / abandonthe loop's state and phase; survives compaction; backs the Stop gate

Each command has --help with examples and its exit codes (0 ok, 2 usage, 3 not found, 6 validation, 8 partial).

<!-- src: audit-skill-by-derailment/SKILL.md#Reference Routing -->

Read when

FileRead when
references/scenarios.mdwriting or proposing scenarios and receipts
references/clean-room.mddeciding isolation, or a run looks contaminated
references/runners/headless.mdthe default runner, its flags, its limits
references/runners/existing.mdauditing sessions that already happened
references/runners/herdr.mda live round under herdr
references/trace-sources.mdchoosing what record to read; what Ctrl+O does
references/session-recipes.mdreading a Claude, Codex or agy session by id with jq: events, last message, tokens, failed commands
references/synthesis-matrix.mdmerging findings across takes, scenarios, repos
references/targets/target-specific scenarios and lenses: skill, plugin, cli, mcp
All versions