> ## Documentation Index
> Fetch the complete documentation index at: https://docs.actual.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# The adr-bootstrap skill

> The plugin's adr-bootstrap skill proposes ADRs for the decisions a repository's code already follows, and creates the ones you pick.

The `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`](https://docs.actual.ai/plugin/skills/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:

| Command | Scope |
| - | - |
| `/actual-cli:adr-bootstrap` | The whole repository: the code, the files under `docs/adr/` and, once you agree, this checkout's Claude Code or Codex sessions |
| `/actual-cli:adr-bootstrap 5` | Only what the last five commits changed |
| `/actual-cli:adr-bootstrap this session` | Only what changed in the current session |

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 folder `git 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.

Your agent uses the sessions to find decisions, and that's all. No draft, question or report quotes a transcript, says who said what or when, or repeats a credential, a name or any other personal detail found there. Each ADR states its decision in its own words, and its policies rest on the code or on what you confirm.

## Findings

Your agent sorts what it finds into three kinds, and notes where each one shows (for a session, only that one exists):

| Kind | Examples |
| - | - |
| Intents | Decisions people stated or wrote down: a decision file without an ADR header, a rule in a README, a contributing guide or a code comment, a choice settled in a session |
| Observations | What the code does consistently: one database client or HTTP layer, module boundaries nothing crosses, how errors, retries, logging or configuration are handled, test conventions |
| Signals | Signs that a decision is being made or is changing: a dependency added or removed, a migration under way, a new lint rule or CI check, a TODO that names a direction, an ADR the code no longer follows |

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`](https://docs.actual.ai/plugin/skills/adr-draft#the-shape-of-an-adr) page and rests on the files the agent read.

## Decisions you already have

Your agent first reads the decisions the repository has with `actual 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:

1. **Which drafts to create**, as multi-select questions with one option per draft.
2. **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.

Signed out, there's no status to pick: each pick becomes an accepted decision document in `docs/adr/` with its rule file in `.actual/rules/`, which the checks enforce at once. For drafts, sign in first; see [Sign in](https://docs.actual.ai/sign-in.md).

`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](https://docs.actual.ai/plugin/skills/adr-draft.md#requirements) lists what older versions do.
* **The `adr-draft` skill**, which creates each pick. It comes with the plugin, and installing the skills on their own with `npx skills add actual-software/actual-skill` brings it too. When `adr-draft` is missing, your agent says so and stops before creating anything.

The skill comes with the plugin in Claude Code and Codex. To install it without the plugin, see [The skill on its own](https://docs.actual.ai/install-plugin.md#the-skill-on-its-own).

## Related

* [The adr-draft skill](https://docs.actual.ai/plugin/skills/adr-draft.md): drafts, changes or removes one ADR, and creates each of this skill's picks.
* [Decisions and rule files](https://docs.actual.ai/concepts/decisions-and-rule-files.md): what a decision holds and how the checks read its rule file.
* [actual adr](https://docs.actual.ai/cli/adr.md): every `actual adr` command with its flags.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.