durchnull/heal-suite/init
Claude Code and agent skill by durchnull/heal-suite
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Install or update the heal suite in the current project — preflight the host floor (Node, git, gh, web egress) and the engineering baseline (linter, formatter, type check, test runner, pre-commit hook, CI) and report what is missing or unenforced, scan the repo, propose the axes that fit it (with evidence), let the user select, write .claude/heal.json, scaffold the .heal/ state dir and per-axis facts files, vendor the consumer-side structural gate, and settle the permissions block — derived on a first install, diffed both ways against the project's own settings on a re-run. Config and state only, never commands — the skills stay in the plugin. Idempotent: re-running keeps every value already set. --add/--remove change one axis; nothing is ever enabled automatically.
Install
npx vskill@latest install durchnull/heal-suite/initSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as durchnull/heal-suite/init.
!node "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-heal-config.mjs"
You install (or update) the heal suite's project side in the current repo. The plugin ships the commands, agents, engine, and protocol; a project needs four things of its own, all user-owned and repo-committed:
- `.claude/heal.json` — the config (git roles, verify chain, test bootstrap, gates).
- `.heal/` — the state dir (backlog, baseline, runs/ gitignore entry).
- `.heal/axes/<axis>.md` — one facts file per enabled axis (the roster).
- `scripts/heal-gate.mjs` — the vendored structural gate for hooks/CI that run outside
Claude Code.
You emit config and state, never commands — generating command files into .claude/commands/ would fork the plugin's skills and shadow them. And you never enable an axis the user didn't pick: the resolved-config block above lists the plugin's axis catalog and this project's enabled roster; catalog − roster is a menu, not a work list.
Mode: $ARGUMENTS (--dry-run prints every planned write and changes nothing.)
--add <axis> / --remove <axis> — one-axis lifecycle
- `--add`: the axis must exist in the plugin catalog (else list the catalog and stop).
Generate .heal/axes/<axis>.md from the axis skill's Facts template section (read ${CLAUDE_PLUGIN_ROOT}/skills/<axis>/SKILL.md), pre-filling each template question from a repo scan — cite real paths, never invent; template questions naming a tool follow Step 5's two rules (never install one to answer; ignore what a wired one generates). Frontmatter must carry at least heading: "## …" (the backlog heading this axis owns; take the skill's declared default). Then open that axis's finding-class namespace — node "${CLAUDE_PLUGIN_ROOT}/scripts/heal-finding-classes.mjs" init --axes <axis> --apply — and run the class interview (Step 4) for that axis alone. Then, if the facts file you just wrote names a tool that generates a report or ledger, ignore that path — node "${CLAUDE_PLUGIN_ROOT}/scripts/heal-gitignore.mjs" --apply --path <path> — exactly as Step 5 does. This is the step most easily forgotten: enabling an axis on a project installed months ago is precisely when a new generated artifact appears with no full install to catch it. Nothing else changes.
- `--remove`: delete the facts file, and do the bookkeeping — any still-open backlog
bullets under its heading move (verbatim, ticked with a removed-axis note) to .heal/archive/backlog.md; the heading itself is removed; baseline entries and archived history stay (they are history). Retire the ignore entry the axis brought with it — node "${CLAUDE_PLUGIN_ROOT}/scripts/heal-gitignore.mjs" --apply --drop <path> — reading the path from the facts file before you delete it; the block keeps every other axis's entry, and .heal/runs/ is not droppable. Say what moved.
Full install / update (no --add/--remove)
Step 0 — Preflight the engineering baseline. Before proposing anything, measure the floor a change is expected to pass through before it becomes a PR — a committed lockfile, a formatter, a linter, a type check, a test runner, and the two gates that run them (a pre-commit hook and a CI pipeline):
Read-only, so it runs unchanged under --dry-run, and it is skipped entirely by --add/--remove (those change one axis, not the install). Show the report to the user before anything else — this is the first honest thing the suite says about their repo, and it is the one output of the install a person can act on without knowing anything about heal.
The report opens with the host floor — Node against the engine's declared minimum, git's version, the gh CLI and its auth, web egress — because the machine matters as much as the repo: a hardened sandbox or an old toolchain fails heal in ways no repo row predicts. The same rules bind these rows, with one exception you pass through rather than soften: below the Node floor the engine's scripts refuse to start (one plain line naming the version found), so there is nothing to continue with until the host moves. Every other host row degrades and is priced: an old git means /heal:fix//heal:night lose their mergeability check, a missing or unauthenticated gh means branches without PRs, blocked egress means the web-verifying axes (packages, docs, ai) fall back to local evidence. Host rows are never written anywhere — the machine is re-measured per run, because the config file travels between clones and the host does not.
Three rules bind what you do with it:
- Advisory, never blocking. heal installs into a bare repo on purpose. A missing floor is
reported and the install continues; never make a row a precondition, and never make one an argument for enabling an axis the user didn't pick.
- Never install a tool to fix a row. Same rule as Step 5's, for the same reason: adding a
dependency to a repo the plugin doesn't own is out of bounds. You may name what the project could adopt — that is the useful half of the report — and stop there.
- `?` is not `✗`. The tool rows carry no verdict when the stack isn't one the script has a
detection table for (no package.json, pyproject.toml, Cargo.toml or go.mod at the root), and it detects at the root only, so a monorepo's per-package tooling is invisible to it. Pass both limits through in your own words rather than reporting a gap in the script as a gap in the repo. If a ? row is wrong, say what you found instead — the evidence in brackets is there to be argued with.
Then add the judgment the script deliberately doesn't:
- `⚠ run by: nothing` is the finding worth naming first. A typechecker in
devDependencies
that no hook and no workflow ever invokes is not a type-checked project — the tool is bought and the guarantee isn't. It is also the cheapest row to close: the tool is already there.
- Say what an absent row costs *this install*. The consequences are concrete, not general:
- No
lint/typecheck/testcommand →verifyresolves tonull(Step 3), and every
/heal:fix PR then ships edits with nothing to prove them. Name this explicitly; it is the single most consequential fact about installing heal into this repo.
- No test suite → the
testsaxis has nothing to audit, and mechanical fixes carry more risk. - No CI pipeline → the
ciaxis has nothing to audit, and a wired prevention gate reaches only
the machine it was committed from.
- No pre-commit hook →
/heal:prevent's guardrails have no chain to be wired into, so found
classes can return. A ⚠ local-only hook is the same problem wearing a tick: it runs for one person on one machine.
This is where the detectors stop being read backwards. Step 2's applies-when probes answer "is there anything here for this axis to audit?" — an axis landing in not applicable because the project has no tests and no pipeline is not the same fact as one that can never apply to this repo. The preflight is what tells those two apart; carry its rows into Step 2 so the quietest projects stop being the ones that hear the least.
Step 1 — Interview the repo. From the resolved block above plus targeted probes (git branch, git remote -v, package manifests, workspace layout, CI workflows, docs dirs). If .claude/git.json exists (a git-workflow config some tools write), pre-fill the git section from its tiers/prefixes — an init-time data read of a file the project already has, not a runtime dependency.
Step 2 — Propose the axis roster, with evidence. For each axis in the plugin catalog, read its skill's applies-when frontmatter (deterministic detector probes) and run them. Present three groups — recommended (detector fires: name the evidence, e.g. "found an ORM + migrations dir"), possible (universal axes: quality, docs, tests, security, packages, ci, self), not applicable (detector can't fire: say why). Split that last group by why it can't fire, using Step 0's rows: an axis with no surface in this repo (no web UI, no database) is genuinely out of scope, while one whose surface is simply not built yet (tests with no runner, ci with no pipeline) is a floor gap the user may want to close first. Say which it is — "not applicable" flattens the two, and the second is the one worth a sentence. Neither becomes an enabled axis here. A third cause lives on the host rather than in the repo: when Step 0's egress row is blocked, the web-verifying axes (packages, docs, ai) still propose on their repo evidence but are flagged degraded on this host — the user enables them knowing what they will actually get here. The user selects; --axes a,b,c skips the interaction for scripted runs. Already-enabled axes (existing facts files) are listed as enabled, never re-proposed. If the catalog has no axis skills yet (extraction still in progress), say so plainly and skip to Step 3 — config, state, gate, and permissions still install.
Step 3 — Write `.claude/heal.json`. Idempotent: read the existing file first and keep every key already set (this run only fills gaps; --force re-proposes). Omit keys you have nothing to say about — an absent key means "infer it". Stamp "configVersion": 1. Preserve unrecognized keys verbatim.
Settle `verify` against Step 0's rows. Inference only assembles the chain from scripts named exactly lint, typecheck and test, so a project whose linter runs as check or style reads as having none. The preflight names the command it actually found (command: check (package.json)) — write that chain explicitly rather than letting inference miss it. If the preflight found no runnable gate at all, leave verify unset and say plainly that `/heal:fix` will ship PRs with nothing to prove them; never invent a chain, and never write a command the project doesn't have.
Settle the test-database story, and say it out loud either way. If the project has a database-backed test suite, propose the testBootstrap contract (command + {db} resource template + connection template) and state its two safety requirements in the file's notes: an env-var override must beat committed dotenv config, and the command must refuse a target not identifiably a test resource.
The handover must state which of three states this project is in — the suite offers no default here, and a user who learns the answer at their first /heal:fix learns it too late:
- `testBootstrap` set — name the command, and that fixers will use it to get an isolated
test resource before proving a fix.
- No `testBootstrap`, and suites that need a database — say plainly that
/heal:fixand
/heal:night will skip those suites with a note rather than prove the fix against them, and that the sweep's preflight reports db=unknown when no database URL is discoverable.
- No database-backed suites at all — say so in one line, so the absence reads as a
measured fact rather than an omission.
Settle the project-shape keys. Each has working inference, so write one only where the resolved block above got it wrong or found nothing — an absent key means "infer it".
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/init/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/durchnull/heal-suite/init)