Skip to content
Back to skills

Booley Heal

ASecurity

Repair a Booley project's environment, configuration, and build-system health by running Doctor, resolving every actionable FAIL and WARN, reviewing packaged release changes after a version update, and verifying the result with plain and deep checks. Use when `booley doctor` is red or warning, an automatic Doctor notice reports problems, Booley reports a pending upgrade review, setup has drifted, a Booley Flow, Specialist, EDA tool, or Target stopped working, or the user asks to heal, repair,...

  • 28 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentspythongorailsgitdocumentation

Works with

  • terminal
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add boldaxolotl/booley --skill booley-heal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Booley Heal?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Booley Heal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/boldaxolotl-booley-heal/badge)](https://www.skillsdirectory.com/skills/boldaxolotl-booley-heal)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: booley-heal
description: Repair a Booley project's environment, configuration, and build-system health by running Doctor, resolving every actionable FAIL and WARN, reviewing packaged release changes after a version update, and verifying the result with plain and deep checks. Use when `booley doctor` is red or warning, an automatic Doctor notice reports problems, Booley reports a pending upgrade review, setup has drifted, a Booley Flow, Specialist, EDA tool, or Target stopped working, or the user asks to heal, repair, or make Doctor green. Hand host-only or otherwise external actions to the user with exact instructions, and route verified Booley or documentation defects through `booley-feedback`.
---

# Heal a Booley project

Turn Doctor findings into a verified clean project. Doctor remains the source
of truth; this skill supplies the diagnosis, repair loop, external-action hand-offs, and
completion discipline around it.

Do not turn this into a second setup workflow. Repair the project as it exists,
preserve its decisions, and avoid creating `SETUP-PLAN.md` or rerunning
`booley-setup` unless Doctor explicitly proves setup is absent.

## Success contract

Call the project **healed** only when every required final invocation reports:

- zero `FAIL` findings;
- zero active `WARN` findings;
- no unexpected `SKIP` on a check used as evidence; and
- no unresolved external action.

An exit code of zero is insufficient because warnings do not change Doctor's
exit code. `WAIVED` is not active, but report it as an accepted risk. `NOTE` is
informational. A `SKIP` can be legitimate; inspect it rather than treating all
skips as failures or silently counting one as a pass.

Doctor marks rows with glyphs: `✓` pass, `!` WARN, `✗` FAIL, `~` WAIVED, and `·`
for a NOTE or SKIP. The closing table lists the active `✗` and `!` rows.

Use one of these outcomes when the full contract is not met:

- **Locally clean — user action required**: the Sandbox is clean, but a host,
  credential, license, service, GUI, or other external action remains.
- **Booley defect — feedback captured**: source inspection confirms Booley or
  its documentation is wrong. State whether a workaround restored health.
- **Project/design issue**: Doctor exposed an RTL, testbench, or intentional
  project-design problem outside build-system repair.
- **Repair blocked**: a safe repair made no progress or needs a project choice.

Never describe one of those partial outcomes as healed.

## Guardrails

- Run from the Project Root and inspect `git status --short` before
  changing anything. Preserve all pre-existing changes and never revert,
  overwrite, stage, or commit them.
- Treat project submodules discovered from `.gitmodules` as read-only.
- Fix environment and build-system integration. Do not change RTL or testbench
  behavior unless the user explicitly expands the task.
- Do not install host packages, change host services, edit host credentials,
  restart license daemons, rebuild external infrastructure, or make another
  out-of-container change. Give the user a hand-off instead.
- Do not create a Doctor waiver merely to make the output green. A waiver is a
  project decision: explain the risk and obtain explicit acceptance first.
- Prefer the smallest repair that addresses the demonstrated root cause. Do
  not perform opportunistic cleanup.
- Read Doctor output unabridged. Do not pipe it through `head`, `tail`, or a
  filter that can hide findings or neighboring skips.

## 1. Establish the baseline

1. Before Doctor can refresh any health evidence, record the Sandbox location,
   `git status --short`, and `booley upgrade status --json`. Doctor is
   context-aware, so do not assume a host result proves the Sandbox or
   vice versa.
2. Run plain `booley doctor` and retain its complete output. Doctor changes no
   Project file. Repair `guidance.links-unhealthy` with the command its `→` hint
   names (`booley init`, or `booley worktree prepare` in a linked worktree;
   as an external action when the hint says "on the host").
   Include each repair in the evidence and rerun before diagnosing remaining
   rows.
   Then check the Project's guidance for the measuring pointer: when the
   canonical `<booley_dir>/AGENTS.md` exists and does not contain
   `booley cheat --metrics`, add this bullet (the `booley-setup` template's
   Metric-Driven Development bullet, verbatim) at the end of its
   "Booley-Specific Instructions" section, or at the end of the file when that
   section is absent:

   ```markdown
   - Metric-Driven Development: before measuring a commit with `booley measure`, read `booley cheat --metrics`; it gives the measuring rules and each Target's metrics.
   ```

   For a hybrid footprint, apply the same edit to the tracked root copy so the
   two stay identical. Never add the bullet when the text is present, never
   create `AGENTS.md` for it, and list the edit among the changed files in the
   report. This is not a Doctor finding and not a reason to add `metrics.toml`
   tables.
3. Build the active set from every `FAIL` and unwaived `WARN`. Record, where
   present, the severity, message, `→` fix hint, check ID, and subject.
4. Group only findings that demonstrably share one root cause. Repair parsing
   and schema failures before downstream Target, Flow, Specialist, or EDA-tool failures, because the
   latter may be consequences.

Do not begin with `--deep`. Make plain Doctor clean first so expensive Flow
smokes are not diagnosing an already-invalid configuration.

## 2. Review a pending release range

When upgrade status is `current`, continue to diagnosis. For any other status,
preserve its JSON as evidence.

Proceed with a pending review only when the state is readable, the running
version equals `pending_target`, and the packaged changelog contains that exact
release. A `stale-runtime` status requires a Sandbox refresh or rebuild;
hand that action to the user and stop before acknowledgment. Corrupt or
unavailable state and a missing target entry also block acknowledgment.

Resolve the changelog with:

```console
python3 -c "from booley.runtime.paths import changelog_path; print(changelog_path())"
```

Use `booley.runtime.changelog.releases_between` to read every available entry
in `(reviewed_through, pending_target]`, oldest first. Report the packaged
history boundary when the range begins before the oldest available entry.
Build a concrete checklist from all applicable CLI, configuration, generated
file, Sandbox, image, compatibility, and manual migration notes. Keep
each item open until source inspection, a repair, or verification demonstrates
its disposition.

During the repair loop, `upgrade.review-pending` is the expected gate rather
than a defect to waive. Every other active warning and every failure remains
actionable.

## 3. Diagnose one causal group

Use evidence in this order:

1. **Doctor's `→` fix hint.** Treat it as the primary repair instruction, then
   verify rather than assuming it worked.
2. **The packaged troubleshooting guide.** In the Sandbox it is
   `/booley-docs/TROUBLESHOOTING.md`; on the host, read the same page for the
   installed version: GitHub release tag `v<booley --version>`, `docs/user/`
   folder (https://booley.dev/docs/troubleshooting/ shows the latest release,
   so use it only when versions match). Search it using exact error
   fragments and concrete nouns from the finding. Read the whole matching section, including its commands and Sandbox-location
   qualifications. The guide holds only the few problems Booley cannot report
   by itself; do not force an unrelated recipe onto a finding just because a
   keyword matched.
3. **Named evidence.** Inspect the report directory, `run.log`, stdout, stderr,
   config, `.core` Target, or generated file Doctor identifies.
4. **Booley source.** Use this only when behavior remains contradictory or a
   Booley defect is plausible. Locate the installed source with:

   ```console
   python3 -c "import booley, pathlib; print(pathlib.Path(booley.__file__).parent)"
   ```

Read the code that emits the finding before blaming Booley. Distinguish:

- project configuration or environment → repair locally;
- documentation disagrees with code → documentation defect;
- code emits an impossible, incorrect, or unrepairable result → Booley defect;
- deep smoke exposes incorrect DUT/TB behavior → project/design issue.

## 4. Repair and rerun

Apply one minimal repair for the causal group, then rerun plain Doctor. Compare
the new active findings with the recorded set:

- removed finding → continue;
- changed finding → diagnose the newly exposed cause;
- new unrelated finding → add it to the queue without undoing the valid fix;
- unchanged finding → inspect the attempted repair and evidence before trying a
  different remedy.

Never repeat the same repair against the same finding identity. Track the full
active-set fingerprint (severity, check ID, subject, and message). Stop
automatic repair if a fingerprint repeats or after 12 remediation passes,
whichever comes first. Report the attempted repairs and the evidence needed to
continue. This bound prevents a fix/revert cycle from running forever.

Continue repairing independent local findings even when one finding needs a
user hand-off. Do not let one host-only action hide other useful progress.

## 5. Handle exceptional findings

### Ticket leftovers need a user decision

Treat every `tickets.leftover-*` finding as a user decision. Ask the user before
moving, archiving, or deleting the reported files or directories, including
unchanged shipped guidance. The `→` fix hint describes the available repair;
it does not authorize deletion. Inspect and explain what would be preserved,
where it would go, and what would be deleted so the user can approve a concrete
choice. Gitignored Ticket content can still contain work the user needs.

Continue independent repairs while waiting. Leave the finding active until
the user approves and the chosen action is verified; report **Repair blocked**
if this decision is the only remaining work.

### External or host-only action

Do not execute an action outside the current Sandbox. Give the user a
copyable guide containing:

1. **Where:** host OS, named terminal, GUI, license server, or other external system.
2. **Why:** the exact Doctor finding and what is unavailable here.
3. **Do:** minimal numbered commands or UI actions, with placeholders clearly
   marked.
4. **Expect:** the observable successful result.
5. **Verify:** the exact command to rerun, usually host `booley doctor`, and
   what must disappear or change.
6. **Resume:** tell the user to reinvoke `booley-heal` in the Sandbox.

Never claim that a command was run or a service changed when it was only handed
to the user.

### Deliberate constraint and waiver

Explain the warning's concrete failure mode and the real repair first. If the
user explicitly accepts the constraint, create the narrowest structured entry
in `.booley/doctor-waivers.toml` using Doctor's check ID and subject.
Require a specific reason and exactly one expiry date or `permanent = true`.
Rerun the originating command and confirm the row changes from `!` (WARN) to
`~` (WAIVED); it must not disappear. Never waive a `FAIL`, transient machine issue,
Doctor bug, or fixable defect.

### Verified Booley or documentation defect

Capture the evidence before applying a workaround, then invoke
`/booley-feedback` yourself. Do not merely tell the user to run it later. Pass
the reproduction, observed behavior, expected behavior, Doctor transcript or
log, affected component, and whether source inspection confirmed the defect.

Follow `booley-feedback`'s redaction and inspection rules. Logging and export
are local and must not block healing; Booley never transmits the report. If a
safe workaround exists,
apply it after capture and continue the Doctor loop without calling the
workaround a Booley success.

## 6. Deep verification and acknowledgment

When plain Doctor has no active findings other than the expected
`upgrade.review-pending` warning and the delivered files are settled, run
`booley doctor --deep` in the checkout that holds those files. Only a run in the
main checkout (`/work` in the Sandbox) is recorded. If the delivered files are
in a linked worktree, still verify them there, and report that recorded deep
verification is due from the main checkout once they are merged. A complete,
qualifying run with no active findings other than the expected
`upgrade.review-pending` warning is the final deep evidence; do not repeat it
when no deep-relevant input changed. Deep
checks can take minutes or tens of minutes. Run a long invocation in a managed
background session or detached with output redirected to a file, then poll it;
do not abandon it while waiting. 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. Read the final output unabridged.

Repair deep findings through the same classify → diagnose → repair loop. A
failed deep simulation, lint, or synthesis smoke can be build-system
configuration or a real design problem; use its log to distinguish them before
editing anything. During repair, exercise the affected Flow and Target directly
instead of rerunning the whole deep matrix after each edit.

After deep repairs, run plain Doctor again because deep-side changes can regress
non-deep checks. Once the repair is settled and plain Doctor has no active findings
other than the expected `upgrade.review-pending` warning, rerun deep
Doctor as the final evidence; the earlier failed run cannot serve as evidence.

Changes affecting project configuration, Targets, dependencies, or the Sandbox require all of this evidence:

- Sandbox: final plain `booley doctor`;
- Sandbox: final `booley doctor --deep`;
- host: final plain `booley doctor`.

Run the invocations available in the current context. Hand unavailable external actions
to the user using the external-action template and wait for its result; do not
infer it. Before acknowledgment, tolerate exactly one active warning:
`upgrade.review-pending` for the recorded target. Any other warning or failure
blocks completion and leaves the pending state unchanged.

When the initial status was `pending`, acknowledge after every required plain,
deep, and host verification succeeds, using the unchanged target from that
initial status:

```console
booley upgrade acknowledge --expected-target <pending_target>
```

For an initially `current` status, skip acknowledgment. The command is a
compare-and-swap: a newer observation, stale Sandbox, missing
packaged entry, changed target, or unreadable state must fail without changing
the pending review. On success, run final plain `booley doctor` and confirm the
pending warning disappears. If that final Doctor finds a new race or unrelated
problem, report that the version review completed but the project is not
healed; do not reopen the already-acknowledged changelog review.

## 7. Report the result

State the outcome first. Include:

- final pass/fail/warn/waived/note/skip counts for each invocation actually run;
- every file changed and why;
- each repair and the finding it removed;
- every remaining waiver with check ID, subject, reason, and expiry/permanence;
- every external action still required, using the copyable guide; and
- any feedback finding captured, workaround status, and whether anything was
  submitted; and
- the initial and final upgrade status, reviewed changelog range, history gap,
  migration checklist dispositions, and acknowledgment result.

If no file needed changing, say so. Never commit as part of healing unless the
user separately asks for a commit.

Files in this skill

  • SKILL.md12.9 KB
  • agents/openai.yaml257 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.