/amber:setfrom amber
Writes and finalizes an Amber per-run contract from planning dialogue, drafts the contract and plan, checks machine rows, commits, and waits for operator approval before creating .amber/active.json.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
set turns settled planning material into a contract that freezes the boundary
(plus a revisable plan when the run has multiple units), reports its
understanding, waits for the operator's approval utterance (protocol.md
"Approval"), and only then creates .amber/active.json.
.amber/), as during planning: keep drafts in docs/, and know that the pointer closes the phase with a ledger exit row listing what shell commands changed meanwhile.## Progress log during the run and to the completion report (What you need to do, What this does not answer) at the end; a plan-less contract uses the report alone.## Skill names and package root and ## Invocation and event records in
host integration, and ## Load-bearing test,
## Operator-facing voice, and ## Approval in run protocol.
Skip only sections already read in this session. On Codex, run its invoke set
command once; on Claude Code or pi, use the automatic skill record only.templates/contract-dev.md or
templates/contract-research.md; plus templates/mission.md only for
multi-session research, and templates/review-verdict.md only when planning
settled a review unit). Read reports (## The four questions, ## Common rules, ## Approval report) at step 5.docs/YYYY-MM-DD-<slug>-contract.md; copy
templates/contract-dev.md or templates/contract-research.md and fill its
slots.
## Completion conditions, ## Forbidden rows with
write scope first plus default git-hygiene and run-specific rows, ## Budget
with INCOMPLETE - RESUME REQUIRED and exact resume instruction) and
optional slots (## Settled decisions, ## Discretion with tunable
defaults and values from planning, ## Standing rules, ## Question handling).[machine: write-scope <glob>]
(zone-root-relative, unioned) or [machine: bash-deny <regex>]; others
end with [self-report]. Anchor every bash-deny regex to a command
segment boundary ((?:^|[\n;&|])\s*) and subcommand position, and consume
quoted arguments as whole tokens ((?:[^\n;&|"']|"[^"\n]*"|'[^'\n]*')*) so
flags after -m "..." are caught while ordinary prose inside commit -m,
--evidence, or PR bodies is ignored (quoted ;/&& and heredoc lines
starting with a command remain regex limits). When a run also forbids
normal pushes to main|release, add an optional row ((?:^|[\n;&|])\s*git(?:\s+-[Cc]\s+\S+|\s+--\S+)*\s+push\b(?:[^\n;&|"']|"[^"\n]*"|'[^'\n]*')*\s(?:HEAD:)?(?:refs/heads/)?(?:main|release)(?=\s|$)).templates/contract-research.md, keep the polarity sentence and
machine-row grammar, and fill its preregistered claims/criteria (append-only
vN), kill-question, reproducible oracles, positive/negative/partial-exclusion
completion definitions, stop lines, per-claim budgets, and assumptions;
--goal reports "promote / hold / reject against criteria vN + evidence summary" (hold closes the pass while the mission stays open). For
multi-session research, create/update docs/missions/<slug>.md from
templates/mission.md (single-pass: Mission reference: none; if the
question moves, close the old mission as moved and cross-link).planning marked a small single-unit task for a
plan-less (single-file) contract (no multi-unit split, no parallel
worktrees, no independent review unit), skip -plan.md and go to step 3
with the contract alone (activation records the baseline, so files already
dirty at that moment need no declaration; only files the run changes
outside the write scope need --out-of-scope "<path>=<reason>" on
record.cjs done). Otherwise write docs/YYYY-MM-DD-<slug>-plan.md
(revisable guidance; the frozen contract is authority), covered by a
write-scope row.
## Work units, list one column-0 checkbox row per
unit in this exact grammar (zone-root-relative scope= inside the
contract's write scope; optional after=; oracle= to end of tag;
integration verification last in the main checkout; parallel units get
disjoint scopes noted in prose), followed by ## Progress log:
- [ ] U1 <title> [unit: U1 scope=<glob>[,<glob>] after=<U#>[,<U#>] oracle=<command>]
after= naming every
deliverable unit. Calling the reviewer is the unit's work, not its oracle:
the reviewer reads the pinned commit, contract, artifacts, and evidence
read-only and returns the verdict (templates/review-verdict.md), which
the caller writes to docs/YYYY-MM-DD-<slug>-review.md (hosts.md). Its
oracle checks that the file exists, carries Verdict:, disposes every
F<n>, and leaves no open MUST-FIX.
Record each disposition via amber:mark (finding - F<n> <finding> - <disposition>);
re-run affected oracles and re-review after fixes; a disputed MUST-FIX on
a required condition means not complete. Hold with external: review by <host>
while waiting; unit verified --evidence states pass count and elapsed time.[machine: ...] row parses:
write-scope globs are zone-root-relative, bash-deny regexes compile, one
machine tag per line. Test every bash-deny regex via node -e against (a)
one dangerous command that must match, and (b) one false-positive negative
control where forbidden words appear inside prose/arguments (e.g., git commit -m "..." or --evidence "..."); also verify patterns do not anchor
on flag order (\.py\s+submit misses script.py --stage a submit).
.amber/ is in .gitignore. Any plan file is inside a write-scope row. If
a completion condition could force writes outside the write scope, widen the
scope or state the collision default. Report failures to the operator instead
of silently rewriting intent-bearing content.Pin: (start commit) and Approval: <operator> YYYY-MM-DD - verification state at approval: <wording>, then commit the contract (and plan, when present) with no pointer yet.## The four questions, ## Common rules, ## Approval report) and report what this run is, why it exists,
how it will be done, what will be true when it ends, what it will not touch,
and what the operator still decides, written for a reader with no context so
the operator can judge approval from the report alone. Speak in the
operator-facing voice and end with "Shall I go ahead with this scope?".
Show no shell command and open no popup: end the turn and wait.protocol.md ("Approval"): an unconditional yes to the report's question,
however short, is approval; a reply with a condition, edit, or question is
not. On approval, in that same turn: append a line to the plan's
## Progress log quoting the utterance with its time (or, for a plan-less
contract, record the quoted utterance in ## Settled decisions before
creating the pointer), then create the pointer in the zone root (main
checkout or linked worktree) with
node "<amber_plugin_root>/scripts/record.cjs" activate <contract-file> --by <operator> --at YYYY-MM-DD
(--by from the contract's approval line, --at = the day of the
utterance). The command writes .amber/active.json together with the run's
baseline - the HEAD and the content hash of every file already dirty or
untracked at that moment, plus the contract file's hash - which the scope
check later compares against; it refuses an existing pointer, a missing
contract file, and a zone outside git. Never write the pointer by hand.node "<amber_plugin_root>/scripts/record.cjs" unit init <plan-path>
in the zone root; for a plan-less single-file contract, skip unit init and
proceed directly to the work and protocol.md#Completion.set is done when step 7 completes: the pointer exists, execution is announced, and the loop body is seeded (when a plan exists). Until an approval utterance arrives, every set turn ends at step 5 or 6 waiting, with no pointer.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub minsubb13/amber --plugin amber6 skills in this plugin
/auditRun a self-correction audit of Amber's own mechanisms from the operator's ledger and Claude Code or Codex transcripts, and write a candidates report for the operator's keep/remove/tune verdicts. Runs only when the operator explicitly invokes /amber:audit in Claude Code or $amber:audit in Codex - never by your own judgment, and Amber never proposes it./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./Other plugins' skills for the same job