Skip to content

Onboarding

A Tauri app has two features, Notes and Settings. Its config names the person who gets every question nobody else owns:

ashlar.config.ts
import { defineConfig } from '@kurvball/ashlar';
export default defineConfig({
include: ['desktop'],
apps: [{ root: 'desktop', stack: 'tauri' }],
onboard: { owner: '@ana' },
});

Nobody has written anything down yet, and its package.json has dev and test scripts. ashlar onboard writes the guide, and finds four things it can't answer:

Terminal window
$ pnpm exec ashlar onboard
Wrote the guide in docs/onboarding: 4 written, 0 removed.
2 areas, 0 decisions, 0 rules, 4 open questions: @ana 4.
docs/onboarding/questions.md
## @ana
- [ ] TODO(@ana) What must an agent know before changing Notes (`desktop/src/features/notes`)? Answered by a line in DECISIONS.md: `- <date> @you [desktop/src/features/notes] rule: what to know`, or a rule in `.claude/rules/` whose paths cover it. `know:desktop/src/features/notes`
- [ ] TODO(@ana) What must an agent know before changing Settings (`desktop/src/features/settings`)? Answered by a line in DECISIONS.md: `- <date> @you [desktop/src/features/settings] rule: what to know`, or a rule in `.claude/rules/` whose paths cover it. `know:desktop/src/features/settings`
- [ ] TODO(@ana) Who owns what? No area names its owner yet, so every question goes to @ana. Answered by a line in DECISIONS.md: `- <date> @you [<area>] owner: @handle` for each area, or one for `*`. `owner:*`
- [ ] TODO(@ana) Is `README.md` current, and who keeps it? Answered by a line in DECISIONS.md: `- <date> @you [README.md] trust: what holds`. `trust:README.md`

Ana answers them with lines in DECISIONS.md, one per decision:

DECISIONS.md
# Decisions
- 2026-12-01 @ana [*] owner: @ana
- 2026-12-01 @ana [desktop/src/features/notes] owner: @ben
- 2026-12-02 @ben [desktop/src/features/notes] Notes are plain text: no Markdown, no rich text.
- 2026-12-02 @ana [README.md] trust: It says what the app is and how to run it.
- 2026-12-03 @ana [desktop/src/features/settings] access: @ana grants access to the signing keys.

and with a rule for each feature's folder, such as:

.claude/rules/desktop-src-features-settings.md
---
paths:
- 'desktop/src/features/settings/**'
owner: '@ana'
date: 2026-12-03
gotcha: scheme-reset
---
# The scheme is saved before the window reloads
Save the colour scheme through `client/`, and wait for it, before the window reloads. A reload that came
first once reset every user's scheme to light.
Terminal window
$ pnpm exec ashlar onboard
Wrote the guide in docs/onboarding: 4 written, 0 removed.
2 areas, 4 decisions, 2 rules, 0 open questions.

The access line says who to ask, never the credential itself, and no brief shows it.

What a team knows about its code lives in people's heads, in chat threads and in documents nobody keeps current. A person can ask. An agent can't, so it guesses, and a person corrects the guess.

Ashlar gives each kind of knowledge one home in the repository, where people write it and Git keeps its history. What nobody has written down becomes a question, sent to the person who owns that part of the code, instead of a guess. An agent then reads only what the files it will change need, in its brief, not a long document about everything.

The guide is generated and deterministic: it holds no dates but the decisions' own, and no owner guessed from Git. So ashlar onboard --check can tell when it is stale.

Kind Its home Who writes it
What the system is The map, the layout, the workspace and package scripts Generated by ashlar onboard
Decisions people made DECISIONS.md: one line per decision, with its date, owner, area and kind People
Rules scoped to folders .claude/rules/<folder>.md, scoped by Claude Code's paths: frontmatter People, and agents on a person's word
Gotchas A folder rule marked gotcha: <ticket> in its frontmatter People and agents
Where things stand ashlar snapshot, printed for one date Generated, never kept

A decision is one list line in DECISIONS.md:

- 2026-12-03 @robin [src/plugin] rule: Every rule ships with the case it came from as a test.
  • The date the decision was made, then the handle of the person who made it.
  • The areas in brackets: folders or files from the repository's root, separated by commas, or * for the whole project.
  • The kind, when it isn't a plain decision: rule, trust (a document is current), access (who grants access to what, never a credential), owner (the text is the owner's handle) or setup (how to run something).
  • What was decided, in the person's words.

Add a line only on a person's word. To change a decision, edit or delete its line: Git keeps the history. Headings and paragraphs in the file are left alone, but a list line that doesn't parse stops the command and names its line:

Terminal window
$ pnpm exec ashlar onboard
DECISIONS.md:8 isn't a decision line: - 2026-12-03 @owner [area, another/area] kind: what was decided

A folder rule is a Markdown file in .claude/rules/, named after the folder it covers with its slashes as dashes. Its frontmatter is optional, and Ashlar reads these keys:

Key What it holds
paths The globs the rule covers. Without it, the rule covers every folder.
gotcha A ticket or a short name, for a rule that guards against a mistake made before.
owner The handle of the person who keeps it.
date When it was written.
description A line about it.

Claude Code reads the same paths:, so an agent meets the rule when it opens those files, and Ashlar puts it in the guide and the brief for those folders.

An area is a part of the code an owner answers for: each feature and service area in an app's layout. A repository with no apps uses the folders onboard.areas names, or else each folder directly inside the include folders.

Each area's owner comes from the first of these that names one:

  1. onboard.owners in the config: a folder to a handle.
  2. An owner line in DECISIONS.md. The line for the deepest folder wins, and a later line wins over an earlier one for the same folder.
  3. onboard.owner, the project's default owner, who gets every question nobody else owns.

ashlar onboard needs a default owner, and says so:

Terminal window
$ pnpm exec ashlar onboard
Name the project’s default owner, who gets every question nobody else owns: `onboard: { owner: "@handle" }` in ashlar.config.ts.

Each gap becomes a question with an id, made of its kind and its area (setup:tests is the one exception), that stays the same from run to run:

Id Asked when Answered by
owner:* No area names its owner yet. Asked once, for the whole project. An owner line for each area, or one for *
owner:<area> Some areas name an owner, and this one doesn't. An owner line, or onboard.owners
reach:<feature> A feature folder has no reach script. The feature's reach.ts
know:<area> No decision or folder rule covers the area. A line for the area, such as a rule line, or a folder rule whose paths cover it
setup:<app> The app's package.json, or the root's, has no dev or start script. A setup line, or the script
setup:tests The root package.json has no test script. A setup line, or the script
trust:<document> A document has no trust line. A trust line

The documents are the root README.md and each app's, unless onboard.documents names others.

ashlar onboard writes the guide into docs/onboarding/, or the folder onboard.out names:

  • README.md: what the system is (its apps, stacks and sides, its packages), how to run and check it, each area with its owner, the rules that apply where, the data rules and the decisions for the whole project.
  • areas/<folder>.md: a page per area, named after its folder with the slashes as dashes, with its owner, its reach and proofs, its folder rules, gotchas, decisions and open questions.
  • questions.md: every open question, grouped by its owner.

Each file opens with a line saying it is generated. Don't edit it: change the code, the decisions or the rules, then run ashlar onboard again. --check writes nothing, and fails when a file is stale or was edited by hand:

Terminal window
$ pnpm exec ashlar onboard --check
The guide in docs/onboarding is out of date:
docs/onboarding/README.md is stale or was edited by hand.
Run `ashlar onboard` to write it again.

Put ashlar onboard --check in your lint script, as Ashlar does for its own guide.

Before it changes files, an agent runs ashlar brief on them. It prints only what that area needs: the data rules, the rules that apply there, the folder rules and gotchas, the decisions, the features and the open questions.

Terminal window
$ pnpm exec ashlar brief desktop/src/features/settings/index.ts
# Brief for `desktop/src/features/settings/index.ts`
## Areas
- Settings (`desktop/src/features/settings`), owned by @ana
## Data rules
- Real data never enters the repository: not in code, tests, fixtures or documents.
- Secrets are never printed, logged or written into the repository.
## Ashlar’s rules here
- **no-cross-process-import**: `src/` and `src-tauri/` never import each other, not even types. Put the contract in `shared/`.
- **public-api-only**: Import another feature or area through its `index.ts`. If you need something inside it, it belongs in its index or in `shared/`.
…
## Folder rules
### The scheme is saved before the window reloads (gotcha: scheme-reset)
Save the colour scheme through `client/`, and wait for it, before the window reloads. A reload that came
first once reset every user's scheme to light.
## Features
- Settings: Settings › Colour scheme

A brief never holds an access line or an owner line, and nothing about other areas. The onboard skill tells an agent to read its brief first. See Give an agent its brief.

ashlar snapshot prints where things stand today, and writes nothing:

Terminal window
$ pnpm exec ashlar snapshot
Where things stand on 2026-12-03, at 8761e34 on main.
The ratchet holds 0 breaks in its baseline.
The map has 2 features, 2 with a reach script.
5 decisions and 2 folder rules are kept; 0 questions are open.
Areas, busiest in the last 30 days first:
desktop/src/features/notes: 1 commit, last 2026-12-03
desktop/src/features/settings: 1 commit, last 2026-12-03
This is printed for today and never kept: run it again when you need it.

Secrets never enter knowledge files. Every command that reads DECISIONS.md and the folder rules refuses a line shaped like a key, a token, a password or a private key, and names its file and line:

Terminal window
$ pnpm exec ashlar onboard
Secrets never enter knowledge files, and these lines look like one:
DECISIONS.md:8:45 holds what looks like a password or token.
Take the value out. Say who grants access instead, as an `access` line, never the credential.

The data rules at the top of the guide and of every brief say the same for code: real data never enters the repository, and secrets are never printed, logged or written into it. onboard.dataRules replaces them.