Skip to main content
The adr-draft skill writes one architecture decision record (ADR) with you. You state a decision, or you or your agent notice one in the code, and the agent drafts the ADR, shows it in full and runs actual adr create only once you agree. It changes or removes an ADR the same way, with actual adr update and actual adr delete. Ask for one in plain words, or call it with /actual-cli:adr-draft in Claude Code or $adr-draft in Codex. It comes with the plugin, though it needs Actual CLI 0.17.0 or later.

Calling the skill

Ask in plain words, and your agent loads the skill when the request matches it:
To call it directly, type the decision after /actual-cli:adr-draft in Claude Code, or after $adr-draft in Codex. It’s one ADR at a time. When a request holds several decisions, it drafts the one the request centres on and names the others for you to draft next. For several decisions across a repository, its recent commits or a session, there’s adr-bootstrap.

Signed out and signed in

What each command does depends on whether you’re signed in to Actual AI with actual login:

The steps

1

Check the CLI

Your agent runs actual --version. When the Actual CLI is missing or older than 0.17.0, it offers to install or upgrade it and doesn’t go on until you answer. Without 0.17.0 it can still draft an ADR and show it, but it won’t create, change or remove one, because only the CLI writes ADRs in the layout the checks read.
2

Read the decisions you have

actual whoami tells it whether you’re signed in, which decides where each command acts. actual adr list reads the decision files under docs/adr/ when you’re signed out, or the repository’s decisions in Actual AI when you’re signed in, and actual adr show opens the related ones. For a new ADR it also looks in docs/adr/ itself, since list doesn’t show files with no ADR header. When a decision you have already covers the request, it names that decision and offers to update it instead.
3

Draft

It searches the code for where the decision shows, such as imports, module boundaries, configuration and tests, so each policy states what the code does or what you asked for. When the request holds no architectural or cross-cutting decision, or an ADR already covers it, the agent says so and stops. For a change, you’ll see each line that changes, before and after.
4

Ask you

It shows the draft in full and asks one question. Signed out, that’s whether to create it. Signed in, it’s whether to create it as accepted (the recommended answer), as a draft, or not at all. For a change it asks whether to apply it, and for a removal whether to delete or keep the ADR. It doesn’t write anything before you answer, or when you decline.
5

Create, change or remove

It runs actual adr create, update or delete from the repository root with the content you saw. Signed out, it then checks the new or changed file with actual adr check. When the check names a likely duplicate among your ADRs, it shows you both and asks whether to keep the new ADR, fold it into the existing one or remove it. Signed in, Actual AI refuses a decision that looks like one the repository already has, and the agent sends it anyway only when you say to keep it after seeing the match.
6

Report

Signed out, it names the decision document and the rule file it wrote, rewrote or removed; both are yours to commit with your change. Signed in, it gives the decision’s id and status in Actual AI, and for a draft, how to publish it.

The shape of an ADR

The agent drafts in the shape of the decision document the CLI writes: a title, a Deciders: line, Context bullets saying why the decision exists, and a Decision section of numbered policies. Rationale, Consequences and References are optional, and you don’t write Status: or Date:, since the CLI fills them in.
Each policy is one numbered line, LEVEL: statement. The level is MUST, MUST_NOT, SHOULD, SHOULD_NOT or MAY, and the statement is one directive a check can judge against code. A decision that covers part of the repository carries path globs relative to the root, such as services/**, with a leading ! to exclude a path (!services/legacy/**). Each policy becomes a rule in the decision’s rule file; Decisions and rule files covers how the checks read it. Signed in, Actual AI keeps the title, the Context bullets, the policies and the scope. The agent folds a reason worth keeping into a Context bullet and leaves out Deciders, Rationale, Consequences and References.

Decision files not yet in Actual AI

Signed in, actual adr refresh can list decision files under docs/adr/ that aren’t in Actual AI yet, such as ones a signed-out create wrote before you signed in, and say that actual adr create --all sends them. The agent never runs it on its own. It names the files, asks whether to send them to Actual AI, and runs create --all only after a yes. The report then lists the files saved, skipped and not saved, with the reason for each one skipped or not saved. Signed out, the CLI refuses create --all, since sending needs a sign-in, and the files need no sending: actual adr check checks them where they are, and actual adr refresh writes the rule file of each accepted one in the layout create writes.

Requirements

  • Actual CLI 0.17.0 or later, the first release whose create, update and delete work on docs/adr/ signed out. From 0.14.0 through 0.16.0 those commands need a sign-in, and a CLI older than 0.14.0 answers actual adr with unrecognized subcommand 'adr'. Check with actual --version, and upgrade the way you installed it, such as npm install -g @actualai/actual@latest or brew upgrade actual-software/actual/actual; Install the CLI has the command for each install method.
  • A sign-in to Actual AI only for drafts and for decisions kept in Actual AI. actual login opens a browser, so you run it yourself, in your terminal or, in Claude Code, by typing ! actual login at the prompt; see Sign in.
The skill comes with the plugin in Claude Code and Codex. To install it without the plugin, see The skill on its own.
  • The adr-bootstrap skill: proposes a repository’s foundation set of ADRs and creates the ones you pick through this skill.
  • The actual skill: lists, publishes, archives, accepts and rejects decisions, and runs and troubleshoots the rest of the Actual CLI.
  • actual adr: every actual adr command with its flags.