agentleFS
gabrielbchacongabrielbchacon/ai-dev-bootstrap/skills/bootstrap-doctor/SKILL.md

bootstrap-doctor

Skill0 starsChanged 3 months agoMITView on GitHub

Checks an already-bootstrapped repository for drift and repairs it with the user's approval: missing files, a team that no longer covers scope, execution and verification, knowledge-base frontmatter, roadmap and canvas disagreement, a CLAUDE.md that has started accumulating a log, and tooling that has stopped resolving. Also the right entry point for upgrading a repository to a newer version of the templates. Do NOT use to found a new structure (that is project-bootstrap), and do NOT use on a repository this tool has never touched (that is project-adopt). Examples of when to reach for it: - "check whether the bootstrap is still intact" -> bootstrap-doctor - "my kb feels out of sync" -> bootstrap-doctor - "upgrade this repo to the current templates" -> bootstrap-doctor

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never pass --force on your own judgement.

    line 71
  2. Distinctive:

    If the knowledge base has not been written to in weeks while the code has moved, that is the finding that matters — more than any …

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Diagnosing a bootstrapped repository

Report first, repair second, and only with approval. Drift is usually a deliberate edit, and silently reverting someone's deliberate edit is worse than the drift.

This skill assumes .bootstrap/manifest.json exists — it is what lets every check below tell "a file this tool wrote" from "a file somebody else wrote". Without that baseline every finding is a guess: use project-adopt instead.

An adopted repository is held to the adoption standard. verify.py reads the adopt: block of bootstrap.yaml, so a missing kb/, an unlinted pre-existing note, and a team composed of the project's own subagents are all expected rather than broken. Do not propose repairing an adoption into the shape a founding would have produced — that is the parallel-structure failure arriving late.

1. Structural check

uv run ${CLAUDE_PLUGIN_ROOT}/scripts/verify.py

How to read the three categories:

  • error — something is broken or missing. Worth fixing.
  • warning — a convention has slipped. Worth raising, and worth asking about rather than assuming.
  • note — a generated file has been edited since generation. Expected, and usually correct. Never "fix" a note without being asked to.

2. Environment check

uv run ${CLAUDE_PLUGIN_ROOT}/scripts/preflight.py

Tools that were installed and have stopped resolving are the interesting result here. A tool the user never wanted is not a finding.

3. Template drift

uv run ${CLAUDE_PLUGIN_ROOT}/scripts/scaffold.py --config bootstrap.yaml --dry-run

This compares the repository against the current templates. Three outcomes:

  • updated — the template improved and the local file is untouched. Safe to apply.
  • drifted — the local file was edited. Show the user the difference and let them decide; the local edit is more likely to be right than the template.
  • conflict — a file exists that this tool never generated. Leave it alone.

Never pass --force on your own judgement. It discards the user's edits, and the only person who can weigh that trade is the user.

4. Report

One message, in this order:

  1. What is broken (errors), with what each one blocks.
  2. What has slipped (warnings), with the convention it slipped from.
  3. What is safely upgradable, and what changed in the template.
  4. What you are deliberately not touching, and why.

Then propose the repairs as a numbered list and let the user pick. Do not apply them as a batch on a single yes unless the user says so explicitly.

The failure signal worth naming

If the knowledge base has not been written to in weeks while the code has moved, that is the finding that matters — more than any frontmatter error. An unread, unwritten knowledge base is pure overhead, and the honest recommendation may be to simplify the structure rather than repair it.

Say that plainly when you see it. A doctor that only ever recommends more structure is not diagnosing anything.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.