Booley Setup
ASecurityPerform design-aware Project Setup after Host Bootstrap and Project Initialization — plan first (feasibility + decision grill → SETUP-PLAN.md, Step 0), then execute gate-free (config, AGENTS.md, doctor audit — Steps 2–4). Phase-detects from the plan file; also runs a single step on request, or `new` for a from-scratch (`init --scaffold`) project with a lightweight grill. Post-gate Step 5 optionally cross-checks Booley's results against the repo's native build system; Step 6 reports findings; ...
- 28 stars
- 0 votes
- 0 copies
- 2 views
- Added September 19, 2026
Works with
Security analysis
100/100Pro scans all 14 files and shows the line behind each finding
npx -y skills add boldaxolotl/booley --skill booley-setup --agent claude-codeAre you the author of Booley Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/boldaxolotl-booley-setup)---
name: booley-setup
description: Perform design-aware Project Setup after Host Bootstrap and Project Initialization — plan first (feasibility + decision grill → SETUP-PLAN.md, Step 0), then execute gate-free (config, AGENTS.md, doctor audit — Steps 2–4). Phase-detects from the plan file; also runs a single step on request, or `new` for a from-scratch (`init --scaffold`) project with a lightweight grill. Post-gate Step 5 optionally cross-checks Booley's results against the repo's native build system; Step 6 reports findings; Step 7 removes the run's scratch root.
---
# Booley setup (plan → execute, Steps 0–7, + optional parity)
This skill owns Booley setup from **Step 0 (plan)** through **Step 7 (cleanup)**,
plus an **optional post-gate Step 5 (parity)** for projects that want their
Booley results cross-checked against the repo's native build system.
The parts outside it are installation and Host Bootstrap in
the install guide at https://booley.dev/docs/install/ (host doc, not shipped),
followed by Project Initialization with `booley init` in SETUP.md (host doc,
not shipped). Host
Bootstrap deploys this skill; Project Initialization records the Project's
agent provider and authentication policy before this design-aware work begins.
The model is **plan-first**: Step 0 gathers feasibility evidence and every
decision the later steps need, refines them in a grilling session, and writes
them to `.booley/SETUP-PLAN.md` for approval. Execution then runs
**gate-free** — no step stops to ask about anything the plan already decided.
In unattended mode the plan file replaces the approval conversation entirely
(see `steps/0-plan.md`).
**Audience — humans and Claude Code or Codex sessions.** A human can read the `steps/` files and
work through them by hand. Or invoke the skill **from the host** and let the
session drive: it plans, stops once for plan approval, and executes the rest
without interruption.
## The steps
| # | Step | Where | Always? | File |
| --- | --- | --- | --- | --- |
| 0 | **Plan** — feasibility + decision grill → `SETUP-PLAN.md`. | host | yes (lightweight in `new` mode) | `steps/0-plan.md` |
| 1 | **Environment** — planned image + `booley init` re-run. | host | only if the plan changes the sandbox image | (execution phase, below) |
| 2 | **Project config** — `.core`, `tests.toml`, `booley.toml`. | container; validate via `booley doctor` | yes | `steps/2-project-config.md` |
| 3 | **AGENTS.md** — Project-level guidance for Developer Agents. | container; file edits only | yes | `steps/3-agents-md.md` |
| 4 | **Doctor** — final audit; resolve every failure and warning, then the deep gate. | container terminal (+ one host run) | yes | `steps/4-doctor.md` |
| 5 | **Parity** — diff Booley vs the repo's native flow, where EDA tools match. | container | no (only if plan row 18 ≠ `none`) | `steps/5-parity.md` |
| 6 | **Findings** — report, triage, optional redacted export. | container | yes | `steps/6-findings.md` |
| 7 | **Cleanup** — preview and remove the run's scratch root. | container | yes | `steps/7-cleanup.md` |
Step 4 is the gate: setup is not complete until plain `booley doctor` and
`booley doctor --deep` both exit 0 **and report zero active (unwaived)
warnings**. A deliberate project constraint may use a reviewed
`.booley/doctor-waivers.toml` entry following Step 4's rules; an ignored
warning may not. **Steps 5–7 are post-gate** — Step 5
validates the finished setup against the native build system, Step 6 reports on
the run; Step 7 performs bounded cleanup. These steps do not block the gate (see
`steps/5-parity.md`, `steps/6-findings.md`, `steps/7-cleanup.md`).
## The plan file
`SETUP-PLAN.md` (template: `SETUP_PLAN_TEMPLATE.md`, written to
`.booley/`) is the skill's single state file; every section below
refers to its parts:
- **`status:`** — `draft` → `approved` | `auto-approved` → `executing` →
`complete`. Drives phase detection.
- **§1 Feasibility** — the per-flow verdict table plus determinant evidence.
- **§2 Decision sheet** — numbered decision rows (row 7 is the sandbox image,
row 16 the git footprint, row 20 the commit-message scrub, …), each with
a plain-English label, explanation, internal key, value, **resolution mode**,
confidence, and evidence (resolution and
confidence are separate columns — see `steps/0-plan.md`, "How a row
resolves") — followed by the **execution-time checks** list: planned
verifications that need the sandbox, run by Steps 2–4 as they are reached.
- **§3 Approval & deviations** — the approval record, and the deviation log
that execution appends to.
## Invocation and phase detection
Read `$ARGUMENTS`, then `.booley/SETUP-PLAN.md` (if present) to find
where setup stands:
- **Empty `$ARGUMENTS`** → phase-detect from the plan's `status`:
- **No plan file, or `draft`** → run **Step 0 (plan)** — `steps/0-plan.md`.
Runs on the host; if you find yourself in-container, planning still works,
but host authority, installation registration, and Project Grant evidence
must be confirmed by the user instead.
- **`approved` or `auto-approved`** → set `status: executing` and run the
**execution phase** (below).
- **`executing`** → resume execution at the first step not yet reported done
in the plan's §3.
- **`complete`** → nothing to do; tell the user and offer the step selector
for re-runs.
- **`new`** (or `greenfield`) → **greenfield mode** for a from-scratch
project — read `steps/new-greenfield.md` and follow it. It starts on the
**host** after plain `booley init`: the skill asks the design choices and
runs `booley init --scaffold` itself, then hands into the container for the
shared steps.
- **A step selector** (a number `0`–`7`, or a name like `plan`, `doctor`,
`project-config`, `agents-md`, `parity`, `findings`, `cleanup`) → run **only that step**,
then stop. Use this
to re-run or resume one step. If `SETUP-PLAN.md` exists, the step consumes
it as usual; if not, ask the user for just the decisions that step needs —
do not force a full plan for a one-step re-run.
## Host or container?
Steps 0–1 run on the **host** — the plan is written before anything runs in
the Sandbox. Greenfield mode's grill and `booley init --scaffold` are host
steps too. Steps 2–4 run **inside the Sandbox**, normally in a T3 Code thread
on the main checkout (item 4 of the
[execution phase](#execution-phase-after-an-approved-plan) gets there). There,
each step edits files in the
worktree and runs the `booley` CLI in a container terminal; the sandbox
toolchain ships in the container, so EDA-tool probes and smoke checks run directly
(`verilator --version`, or `booley flow <name> --quiet …` — runs any Booley Flow, passing
the rest of the line to it verbatim). `booley dashboard` and
`booley doctor` are container commands here. Use `--quiet` for captured Flow
reproduction output: direct shell calls otherwise add live stderr progress and
an observation transcript. Human live-output options are documented in
`/booley-docs/FLOW_REFERENCE.md` → “Live progress and logs”.
The Sandbox ships offline copies of the user docs cited here at `/booley-docs/`;
that path does not exist on the host, where you read the same pages matching the
installed version: the GitHub release tag `v<booley --version>`, folder `docs/user/`.
The docs site (https://booley.dev/docs/, one page per doc name) shows the latest
release, so use it only when its version equals the installed one.
The CLIs fail fast on the wrong side, each naming the fix: `booley init`
refuses inside a Booley-issued Sandbox (a hand-written Sandbox runs Project
Initialization only); the workflow CLI (`booley dashboard`, `bwave`) refuses
on the host. To check explicitly: `/.dockerenv` exists only in the container.
`SETUP-PLAN.md` carries the full context across the boundary — a fresh
in-container session just re-invokes this skill and phase detection resumes
execution.
## Running a step
1. Read the step file under `steps/` (numbered `0-…` … `7-…`). (Step 1 has no
`steps/` file — it is described in the execution phase below.)
2. **Delegate the step's work to a sub-agent** (Task MCP tool) whenever the step
is more than a couple of commands — config authoring and the doctor
fix-loop are both good candidates. Give the sub-agent the step file to
follow **plus the approved `SETUP-PLAN.md`** — it holds every decision the
step consumes. The rules a sub-agent must inherit are the **deviation
rule**, the **onboarding voice**, and **"Waiting on long runs"** (all below);
a stop-and-ask always surfaces through the Developer Agent, never inside the
sub-agent. Say the waiting rule out loud in the sub-agent's brief — a
delegated Step 2 or 4 is exactly where a sub-agent parks on "standing by" and
waits for a notification that never comes.
3. Run the plan's §2 execution-time checks as the step reaches the artifacts
they verify.
4. **Log findings as they happen** — see below. This is part of running a step,
not something Step 6 reconstructs afterwards.
## Logging findings
Every step appends to one log as it goes:
```console
booley feedback add --origin setup --title "…" --severity blocker|workaround|note \
--exposed-by "the exact check that surfaced it" --step 4-doctor \
--repro "booley doctor" --observed "…" --expected "…"
booley feedback win --origin setup --title "a check that passed first try" # keeps the sample honest
```
Every logging command takes `--origin setup`; it is required, and it keeps these
entries in `.booley/SETUP-REPORT.md` (later `/booley-feedback` entries go to a
separate `.booley/FEEDBACK-REPORT.md`).
Two rules, and the second is the one that gets skipped:
- **Log at the moment of friction, not at the end.** A report written from memory
after the gate is a plausible-sounding invention. Anything worth reporting was
visible the instant it happened, with the command still in scrollback — that is
when the `--repro` and `--observed` are free. Ten minutes later they are
guesses.
- **Every sub-agent logs its own findings, into the same log.** A delegated Step 2
or 4 is where most friction lives, and a sub-agent's context dies when it
returns — so its brief must say: *run `booley feedback add --origin setup` for anything that
surprised you, before you report back.* The log is a file precisely so that a
finding survives the sub-agent that found it. Do not ask sub-agents to summarize
findings in their return message and then re-log them yourself; that loses the
detail and duplicates the entries.
Bucketing (whose problem is it) and the decision about sending anything to
Booley's maintainers both belong to Step 6. While a step is running, just log
what happened.
## Waiting on long runs
Setup's real runs are minutes to hours — a sim suite, `booley doctor --deep`, an
ASIC synth. Flows and Specialists started through MCP tools are Jobs: with several
running, call `booley_poll` with no `run_id` to receive whichever of your Jobs
finishes first, and never wait with `sleep` loops or log tails. A sub-agent
shares its parent's client, so it waits for its own Jobs by `run_id`. The cadence
below is for CLI processes (`booley flow`, `booley doctor --deep`), which have no
`run_id` and **emit no completion notification**. Nothing will nudge you when one
ends. Parking on "standing by" is never a correct state: if you are waiting, you
are polling.
- **Start it detached.** Run the command in the background with stdout and
stderr redirected beneath the current run's scratch root,
created by `booley cleanup prepare`. A
foreground call that outlives your own MCP tool timeout loses the output and
reads as a hang.
- **Know the bound before you start.** Most Flow work uses
`[flows.<flow>].timeout_ms`, but Simulation can additionally consume one
`[flows.sim].build_timeout_ms` budget and an independent 600-second Pre-Sim
Commands budget per work unit, plus finalization. Credible compiler progress
calls for raising `build_timeout_ms`; credible simulator or standalone-sweep
progress calls for raising `timeout_ms`. Past the accounted outer bound, the
run is wedged and the answer is to investigate, not merely wait longer.
- **Poll on a fixed cadence**: every ~30 s for the first few minutes, then every
1–2 min. Each poll checks three things — the process is alive (`pgrep -f
verilator_run`, `pgrep -f yosys`, …), the redirected stdout grew, and for sims
the work dir's `run.log`, which carries a live tail stamped
`Ns elapsed, N output line(s), last output Ns ago`. **`last output` is the
hang-versus-slow signal**: a sim silent for minutes is stuck; a slow one keeps
talking.
- A `run.log` still headed `(run in progress …)` is a progress tail, **not a
verdict** — never score a run from it.
- **After any timeout or kill, hunt orphans**: `pgrep -f
'verilator_run|yosys|V<toplevel>'`. A killed run can leave its supervisor and
sim child burning a full core; kill them before starting the next run.
- Put the measured wall-clock times in the step's report — the timeout rows of
the next plan are written from those numbers.
## The deviation rule
Execution consumes the plan; it never re-asks a decided row and never silently
overrules one. When reality contradicts the plan (a probe fails, an EDA tool is
missing from the image, a target doesn't resolve):
- **Plan-invalidating** (the decision or anything built on it must change):
**stop and ask the user** — always, even mid-step. Unattended: halt, record
the open question in the plan's §3, surface it in the final report; do not
improvise a new plan.
- **Minor** (the decision stands, a detail shifts): apply the obvious fix and
append one line to the §3 deviation log.
## The onboarding voice
Every step that surfaces something to the user — the plan and its grill
(Step 0), the config draft (Step 2), the doctor findings (Step 4) — is
**first-run onboarding: assume the reader is new to Booley.** Lead with a
concise plain-English explanation before the artifact, define each Booley term
from `GLOSSARY.md` verbatim the first time it appears, and name the evidence
behind every decision. This is a communication rule, not a decision rule: it
changes how legibly a step explains itself, never *what* it does. Step 0's
grill leans hardest on it — a user who does not yet speak Booley still has to
make every call, so each question carries its recommended answer and the
plain-English reason it matters.
## Execution phase (after an approved plan)
1. **Step 1 — environment · host.** Only if the plan's row 7 calls for it:
write `.booley/docker/Dockerfile` and/or set `[sandbox].image` in
the placeholder `booley.toml`, then re-run `booley init` (idempotent) so it
builds/pulls the planned image and re-seeds the issued Sandbox
specification. Skip
entirely when the plan keeps the base image.
2. **Stealth footprint · host.** Only if row 16 keeps `.booley/` hidden
(including hybrid) with row 20 `enabled = true`. A fresh `booley init` records no Stealth choice
(missing key = off), so it neither hid `.booley/` nor gave it a repo. Write
the plan's `[stealth]` block into `.booley/booley.toml` now (Step 2 keeps
it). Then re-run `booley init`: it adds `/.booley` to
`.git/info/exclude`, creates the inner repo, and activates the commit-msg
and pre-push hooks.
3. **Commercial EDA authority · host.** Only if row 14 selects
host-provisioned EDA: perform Step 2's
[host-authority bootstrap](steps/2-project-config.md#host-authority-bootstrap)
before creating the licensed/mounted Sandbox. This writes the planned
`[eda.<kind>]` request, registers the installation, adds the exact Project
Grant, reseeds the issued specification, and runs host Doctor. Skip when
every selected EDA tool is image-provisioned.
4. **Enter the Sandbox** (skip this when already inside it). Tell the user to
run `booley session up --rebuild` on the host, open the pairing link it
prints in a browser, start a T3 Code thread on the main checkout, and invoke
this skill again there. Unattended, with nobody to do that: run
`booley session up --rebuild` yourself and run each later in-Sandbox command
with `booley session enter -- <command>`.
5. **Steps 2 → 4 in order**, per the plan: finish config, AGENTS.md, then the doctor
gate.
6. After the Step 4 gate is green, set `status: complete` and write the final
report: what was built, the §3 deviation log, and (unattended) the
`review`-flagged decisions the user should audit. Flow claims follow the
Delivered Flow results contract below and appear after Step 6 renders the report.
7. **Step 5 — parity · optional.** Only if the plan's row 18 selects an oracle
(≠ `none`): run `steps/5-parity.md` after the gate to diff Booley against the
repo's native flow where the EDA tools match. It produces
`.booley/PARITY-REPORT.md` and a note in the final report; it never
blocks completion and does not change `status`. Parity is the richest source
of real Booley findings in the whole run — a number that differs from the
native flow's is about as unambiguous as evidence gets — so log every
discrepancy with `booley feedback add --origin setup`, not just the ones you can explain.
8. **Step 6 — findings.** Always: `steps/6-findings.md` triages the log, writes
`.booley/SETUP-REPORT.md`, and creates a redacted export only when the
user explicitly requests one. Post-gate and non-blocking.
9. **Step 7 — cleanup.** Always: `steps/7-cleanup.md` previews and applies the
approved retention mode after the report exists. It removes only the
current run's marked scratch root, materializes structured Feedback
attachments before deletion, and does nothing for a plan without a run ID.
## Delivered Flow results
This contract applies to port and greenfield setup, in SETUP-REPORT and the final
summary. Keep requested choices separate from delivered evidence. Cite every Flow
result claim to its completed numbered `<Flow>/<N>/report.json` with literal field
paths and values: `target`, `eda_tool`, `exit_code`, `passed`, and the applicable
mode.
- Synthesis mode is `detail[Target].synth_mode` (there is no universal top-level
mode); quote `detail[Target].area_source` for area/PPA claims.
- Simulation's `mode` is its execution mode, not synthesis mode. For lint,
synthesis mode is `not applicable`.
- If the wrapper lacks a tool or another fact, cite the path and field of a linked
same-invocation artifact.
Match each report to the actual selected public Target and good-path invocation
(including `run_id` when present). Doctor aggregates, flat/latest copies, earlier
reports and known-bad self-test reports cannot establish that invocation's mode or
success. Retain contributing failed/incomplete runs separately, with their actual
verdict and deviation evidence.
Use one row per Flow: requested Target/tool/mode/part/profile/check; delivered
literal facts; report identity and field citations; verdict and differences. Flag
every requested-versus-delivered mismatch and every failed, skipped or not-run
check. Missing or ambiguous evidence is `not reported` and unverified; never fill
a delivered field from the request or config. A missing report limits the claim
without blocking post-gate reporting.
Before scratch cleanup, snapshot the cited reports and required linked artifacts
into `setup-evidence/<run-id>/` in the resolved Booley Directory (`.booley/` by
default), where `<run-id>` is the run ID in the plan's §3 Execution ledger,
recording original path, source digest and cited field paths. The
Booley Directory's ignore rules exclude `setup-evidence/`, so Git ignores the
copies. Cite the retained copies in the report and summary, keeping original
paths as provenance. That directory lies outside the run's scratch root, so
Step 7 does not remove it.
After each setup-owned Feedback render, Step 6 adds or replaces one Delivered Flow
results section at its returned path; the final summary quotes the same evidence
rows. Later independent Feedback renders keep their existing behavior and are not
promised to retain this section.
## Setup guardrails
Two rules that outrank any step's local convenience. A step may look like it
wants you to break these; it doesn't.
- **Stay out of the repo (minimal footprint).** All of Booley's operational
state lives under `.booley/` — config, hooks, the project
`docker/` image, logs, and `SETUP-PLAN.md`. Do **not** add or commit
Booley-generated files into the target repo's tracked tree: no
`README.booley.md` / integration notes, no logs, no generated artifacts
explaining the onboarding. **This includes Step 6's own output** — the
findings log and the setup report `SETUP-REPORT.md` live in `.booley/`; a
report about the setup is still a Booley-generated file. A redacted
`BOOLEY-FEEDBACK.md` exists only after an explicit `booley feedback export`.
The only Booley-touched files that legitimately
join the tracked tree are genuine **design/verification inputs the project
owns**. For an **open** footprint, that includes a `.core`
design-description: reuse/modernize the appropriate native core when one
exists, and create a tracked core only when none exists. For a **hidden**
stealth footprint, never edit native tracked cores; its core belongs under
`.booley/cores/` and uses repository-root-relative filesets. Booley
uses the core in place; do not create source symlinks. (The
`booley_vcd_dump.sv` trace
module is **not** one of them: Booley adds it from its
`refs/` when it builds a traced Icarus Target.) Notes for the next Developer
Agent or the user go in `.booley/handoffs/`, not the repo. Whether
`.booley/` **itself** is tracked is the plan's row-16 call: **hidden**
(default) keeps it out via the
parent repo's `.git/info/exclude` — never `.gitignore`, which is tracked and
would advertise Booley — and versions it in its own inner git repo; **open**
commits it to the RTL repo. (Row 16 selects the footprint; row 20 records
the required stealth framing and history policy.) Step 4 executes
that row (mechanics in `steps/4-doctor.md`). Either way, nothing else
Booley-generated joins the tracked tree.
**One sanctioned exception:** the maintainer dogfood workflow
(`booley-port-ip`) may explicitly instruct Step 6 to render the report to the
*root* of its throwaway public-IP clone (`booley feedback report
--user-report-path SETUP-REPORT.md`) and commit it — the port *is* the
deliverable there. When the enclosing workflow gives that instruction, write
the root report **instead of** an inner copy. A normal setup leaves the report
in `.booley/` and never passes that flag. If you *find* a **tracked**
`SETUP-REPORT.md`, it is the fingerprint of a port — an earlier one, or **the
one running right now** (on a dogfood repo it is usually created hours ago, with
sections still waiting on the step you are about to run). Either way: record
it, read it as evidence, leave it in place unless the enclosing port workflow
explicitly owns and rerenders it, and follow the prior-footprint branch in
`steps/0-plan.md`. An **untracked**
`.booley/SETUP-REPORT.md` is a different thing entirely — the previous
setup run's own report, which Step 6 will simply overwrite.
- **Ship the toolchain, not the artifact.** When a design needs a software
build step to produce a simulation input (CPU-core firmware, a compiled
ROM/memory image, generated RTL), bake the required toolchain into the
project sandbox image and build the artifact **on demand inside the
sandbox** — never compile it once on the host and vendor the prebuilt binary
into the repo. A frozen `firmware.hex` hides the real dependency and rots on
the first source change. Step 0's worked example and Step 2's data-files
guidance give the mechanics (project `Dockerfile` + `post-setup` hook for
per-checkout steps; `[flows.sim].pre_run_commands` for per-test
builds).
## Configuration reference
The steps author the config files; they do **not** re-explain every field.
When a step needs the meaning of a `booley.toml` section, a `.core`
fileset/target, `tests.toml`, sentinels, or an advanced setup, it links to
the Booley user docs: `/booley-docs/CONFIG.md` for Project-wide `booley.toml`
settings, `/booley-docs/TARGETS.md` for `.core` files, `/booley-docs/TESTS.md`
for `tests.toml`, the per-Flow pages (`/booley-docs/FLOW-SIM.md` for sentinels),
and `/booley-docs/SANDBOX.md` for the Sandbox image. Bundled templates live at this skill's root:
`../SETUP_PLAN_TEMPLATE.md`, `../BOOLEY_TEMPLATE.toml`,
`../TESTS_TEMPLATE.toml`, `../CORE_TEMPLATE.yaml`, `../AGENTS_TEMPLATE.md`
(paths relative to the step files in `steps/`).
Files in this skill
- AGENTS_TEMPLATE.md
- BOOLEY_TEMPLATE.toml
- CORE_TEMPLATE.yaml
- SETUP_PLAN_TEMPLATE.md
- SKILL.md
- TESTS_TEMPLATE.toml
- agents/openai.yaml
- steps/0-plan.md
- steps/2-project-config.md
- steps/3-agents-md.md
- steps/4-doctor.md
- steps/5-parity.md
- steps/6-findings.md
- steps/new-greenfield.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.