adr-bootstrap skill proposes a repository’s foundation set of architecture decision records (ADRs), from the conventions its code already follows. Your agent surveys the code, the files under docs/adr/ and, if you agree, your past coding-agent sessions in the checkout. It drafts up to ten ADRs and asks which to create, and the adr-draft skill creates only the ones you pick.
Call it with /actual-cli:adr-bootstrap in Claude Code or $adr-bootstrap in Codex, or ask in plain words. It comes with the plugin and needs Actual CLI 0.17.0 or later, with adr-draft beside it.
Calling the skill
In Claude Code, add the scope you want to the command:
In Codex, start the prompt with
$adr-bootstrap, adding a number of commits or “this session” to narrow it. In plain words, ask for something like “Propose the foundation ADRs for this repository”. The two narrower scopes read no past sessions.
When actual adr refresh finds that none of the repository’s decisions governs yet, it recommends this skill. When that recommendation alone brings your agent to the skill, it tells you the repository has no decisions yet, offers the survey in one question and runs it only on a yes. After a no, it doesn’t offer again in that session.
Past sessions
Earlier coding-agent sessions in a checkout often hold decisions the code doesn’t show yet: a rule someone stated, a correction made more than once, a trade-off settled along the way. In a whole-repository survey your agent asks before it reads them, and says that reading them puts their text in its context, which reaches its model provider. When you decline, it surveys without them. It reads only the sessions recorded for this checkout, the foldergit rev-parse --show-toplevel prints:
- Claude Code sessions under
~/.claude/projects/(or$CLAUDE_CONFIG_DIR/projects/), in the folder named for the checkout’s path, and only the files whose first recorded working directory is the checkout. - Codex sessions under
~/.codex/sessions/(or$CODEX_HOME/sessions/), and only the files whose opening entry names the checkout as the working directory.
Findings
Your agent sorts what it finds into three kinds, and notes where each one shows (for a session, only that one exists):
An ADR is warranted only for an architectural or cross-cutting decision that no existing ADR covers. Findings that point at one decision become one draft. When findings disagree, such as a stated rule the code breaks, the draft follows the direction they point and names the conflict. The agent ranks the decisions by how much of the code each one governs and what breaking it would cost, and proposes at most ten, most significant first. When nothing in scope warrants an ADR, it says so and stops; it won’t invent one.
Each draft follows the shape and rules on the
adr-draft page and rests on the files the agent read.
Decisions you already have
Your agent first reads the decisions the repository has withactual adr list: the decision files under docs/adr/ when you’re signed out, or the repository’s decisions in Actual AI when you’re signed in. It never proposes a decision that list shows.
A file under docs/adr/ with no ADR header records a decision in another format, which no check reads, so the agent drafts an ADR from it and names the file it came from. Files under docs/adr/drafts/ get the same treatment. You decide whether the old file stays.
Signed in, a headed file under docs/adr/ that Actual AI doesn’t have yet isn’t proposed again; a signed-out create may have written it before you signed in. Sending such files to Actual AI is actual adr create --all, which the agent offers in its report and runs only after a yes.
Your picks
The agent shows every draft in full, numbered in ranked order, each with a line naming what it rests on. Then it asks two things:- Which drafts to create, as multi-select questions with one option per draft.
- Their status, when you’re signed in. Accepted, the recommended answer, governs once it’s saved. A draft governs once someone publishes it. One answer covers every ADR the run creates, and you can set them one by one instead.
docs/adr/ with its rule file in .actual/rules/, which the checks enforce at once. For drafts, sign in first; see Sign in.
adr-draft then creates the picks in ranked order with the content you saw, checks each one and reports them, and the report adds the drafts you didn’t pick and anything the survey found that didn’t warrant an ADR on its own. Later, adr-draft can change or remove any of them.
Requirements
- Actual CLI 0.17.0 or later. On an older CLI your agent offers the upgrade, and without it drafts and shows the ADRs but creates none. The adr-draft skill lists what older versions do.
- The
adr-draftskill, which creates each pick. It comes with the plugin, and installing the skills on their own withnpx skills add actual-software/actual-skillbrings it too. Whenadr-draftis missing, your agent says so and stops before creating anything.
Related
- The adr-draft skill: drafts, changes or removes one ADR, and creates each of this skill’s picks.
- Decisions and rule files: what a decision holds and how the checks read its rule file.
- actual adr: every
actual adrcommand with its flags.

