/amber:auditfrom amber
Runs a self-correction audit of Amber's mechanisms from the operator's ledger and Claude Code/Codex transcripts, producing a candidates report for keep/remove/tune verdicts.
Ships in amber. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read the operator's ledger (${AMBER_HOME:-$HOME/.amber}/runs.jsonl) and host
transcripts to produce a report of candidate mechanisms that never fire, lost
ledger events, orphan rows, and other anomalies, each with evidence and a
proposed disposition.
Read host integration (## Skill names and package root,
## Invocation and event records, and ### Audit transcripts) and
run protocol, and resolve amber_plugin_root.
On Codex, run invoke audit once (with any argument text after the skill
name); on Claude Code, S1 records typed /amber:audit automatically (never
call via a model-selected Skill-tool call); on pi, the extension records the
typed /amber:audit (or /skill:amber-audit) automatically.
Read-only helper:
node "$amber_plugin_root/scripts/audit.cjs" <command> [--period-end <ISO>] [--exclude <project>]...
Commands: summary (counts; line 1 period_end=<ISO>, line 2
excluded_projects=<list|none>), dead (mechanism | field_count | status),
sessions (newest first: session=<id> project=<p> first=<ISO> last=<ISO> rows=<n> completions=<k> transcript=<yes|no>), session <id-prefix>
(transcript events vs ledger rows: matched / matched-unattributed /
mention / refused / MISSING, orphan rows, stop count, re-entry count, and
summary:), check-summary <report.md> (exit 0 iff the report's fenced block
starting with period_end= reproduces), and check-session <id-prefix>
(exit 0 iff an opening-verdict text in the transcript lacks a skip row).
exclude=<project>[,<project>] - projects excluded from every count (default: none).sessions=<id>[,<id>] - session id prefixes to compare (default: chosen in step 4).period-end=<ISO> - end of the counted period (default: helper's now).Opening. Invoke amber:mark with
skip - opening verdict - no contract: read-only audit report on the operator's own ledger and transcripts
and proceed. If the operator asked for a contract, invoke amber:planning
instead and stop.
Summary first. Run summary with --exclude per project in exclude=
and --period-end if given. Pin the printed period_end=<ISO> value and
pass --period-end <ISO> (with the same --exclude flags) to every later
command.
Dead mechanisms and sessions. Run dead and sessions.
Samples. Use sessions= if given; otherwise take up to five newest
sessions rows with completions>=1 and transcript=yes. Run
session <id-prefix> for each. Report absent transcripts and unknown
outcome/Stop counts as unavailable evidence, never as zero events or clean
comparisons.
Candidates. Build the 5-column table
(# | Item | Evidence | Proposed disposition | Verdict) from the evidence:
DEAD mechanism (classified as no opportunity / bypassed /
unnecessary / unrecorded);MISSING event, orphan row, unattributed row, re-entry count, hold
usage, or other anomaly;n=1 rule) is a lesson listed below the table, not
a candidate row;keep / remove / tune with ledger or transcript line evidence,
leaving every Verdict cell empty.Report. At the zone root (git rev-parse --show-toplevel, fallback .),
write <zone>/docs/audits/<YYYY-MM-DD>-audit-<n>.md from
the template (n = existing *-audit-*.md count + 1).
Paste summary output verbatim into ## Ledger counts and dead output
into ## Dead mechanisms.
Reproduce. Run check-summary <report> with the same --exclude flags
until it exits 0.
Tell the operator in plain words: show the candidates table and state the ground rules (verdicts are theirs; empty verdict = keep; any disposition including reversing Amber's design is allowed; nothing is applied automatically; applying verdicts is a separate cycle on their installed copy; no transcript bodies are included so the report is shareable).
Signal. If .amber/active.json exists, report only. Otherwise run as the
last tool call in the zone root (no --goal):
node "$amber_plugin_root/scripts/record.cjs" done --review "<what was compared and reproduced>" --summary "audit: <report path>"
Done when the reproduced report is written, the table and ground rules are presented to the operator, and step 9 has run.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
amber, self-correction, audit, ledger-analysis, transcript-analysis
6 skills in this plugin
/initPort Amber into a project zone - scan the code into an oracle map, interview the operator until tensions are exhausted, generate or map the fixed documents, and finish the sensor install. Invoke ONLY on an explicit operator request to install, port, or initialize Amber in a project ("install amber here", "port amber into this project"); never by your own judgment. Do not open a planning cycle for init itself - init is the bootstrap act and its human gate is the ratification beat./markRecord one Amber cycle event in the ledger, from anywhere in a turn. Invoke with skip arguments for a declined gate or a no-contract opening verdict, finding arguments for a verification finding whose disposition is settled, or hold arguments to announce a legitimate stop while plan units are still open. Claude Code records the Skill invocation automatically; Codex and pi execute the recorder described here. Not for completion - that is the `record.cjs done` completion signal on every host./planningOpen an Amber cycle - judge inside whether the work needs a contract, then either elicit the material for one or record a no-contract verdict and proceed. Invoke for any work request - anything that would change zone files or produce a deliverable - or when the operator explicitly asks for a cycle; only pure Q&A, discussion, and status checks stay outside. Never invoke while a contract is already active (resume that run instead). If the operator declines a cycle you judged necessary, comply and record the declined opening via the amber:mark skill./setWrite and finalize an Amber per-run contract from a completed planning dialogue - draft the contract document and its plan, check the machine rows, commit, report, and wait for the operator's approval utterance; on an explicit approval create .amber/active.json and start the run. Invoke automatically when planning's elicitation is exhausted, or when the operator asks to finalize a hand-written draft. Approval is the operator's explicit utterance in conversation - never create the pointer without one./statusReport Amber's installation, sensor, and contract status. Runs only when the user explicitly invokes /amber:status in Claude Code or $amber:status in Codex.npx claudepluginhub minsubb13/amber --plugin amberOther plugins' skills for the same job