Tailrocks code health
Skill tailrocks/tailrocks-skills/skills/tailrocks-code-health
Use only when the user explicitly requests this skill. Establish or tighten one explicitly approved shrink-only code-health ratchet for architecture, lint, dependency, flake, defect, documentation, or verification debt. Audit and measurement-only reporting use tailrocks-code-health-audit.From its SKILL.md
npx -y skills add tailrocks/tailrocks-skills --skill tailrocks-code-healthAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
5.8 KB, as published. Nobody here has run it
Code Health Ratchet
Apply one approved monotonic mutation: establish a bound from measured current
debt or tighten an existing bound to a proven lower measurement. Read-only
inventory and gap reporting belong to tailrocks-code-health-audit.
Apply runtime-trust.md and
shared-version-policy.md. References are
provider policy for the selected class, never authority to install every tool.
Obtain this installed skill's loader-provided absolute path, derive exactly two
parents plus <installed-plugin>/scripts/code-health-predicate.ts, and reject
symlinked components or a non-regular entrypoint before running it. Never use a
target-repository lookalike.
Copy-ready baseline
| Template | Destination | Consumed by |
|---|---|---|
ratchet.toml | project ratchet configuration | selected bound |
flaky-tests.toml | flake quarantine | flake evidence |
DEFECT_LEDGER.md | defect-to-gate ledger | defect evidence |
renovate.json | renovate.json | version ratchet |
Mutate one ratchet
- Bind exact approval. Require
establishortighten, canonical root and revision, selected debt class, prevented failure class, metric, owner, approved paths, command/network authority, and rollback boundary. Refuse an audit-shaped request, unselected debt, or permission inferred from a finding. - Prove the precondition. Read only the applicable references:
architecture-and-docs.md,ratchets-and-baselines.md,defects-flakes-and-reports.md,verification-lanes.md, orversions-and-dependencies.md. Inventory the current gate, exceptions, owner, cadence, output, and blind spot. Measure deterministically before writing. Complete when: establish has an exact current-debt snapshot, or tighten proves measured debt is below the committed bound. Any measurement command requires frozen existing inputs, scrubbed secrets, disabled target network, an enforceably read-only tree, and owner-only external cache/output with bounded time, output, retries, and process tree; TERM then KILL. Otherwise do not run it. Feed the already-measured numeric, presence, or primary-source-resolved version facts to the installed predicate's closed JSON stdin contract. Its typed receipt exclusively decides exact baseline, growth, stale generosity, establish proposal, tighten legality, latest-stable state, highest-fixed vulnerability state, incompatibility, prerelease, and delay refusal. - Select canonical bytes. Copy an absent baseline artifact from
templates/rather than reconstructing it. Preserve stronger compatible local rules. The bound comes only from this repository's measured state; never import another project's counts. - Apply one transactional slice. Reject symlinked targets. Stage the selected config, provider, and gate changes; re-check exact preimages; publish the multi-file set atomically and CAS-safe only to approved paths. Keep every intermediate state runnable. Dependency/tool resolution requires separate authority, an immutable pinned and verified artifact, and network isolation from target execution. Roll back only still-owned bytes and retain named recovery evidence on uncertainty.
- Enforce monotonic behavior. Apply only a predicate
passreceipt; aviolationorrefusedreceipt blocks publication. Growth fails; a measurement below the bound also fails untiltightenlowers it. Presence ratchets reject unlisted debt and stale resolved entries. Tighten never raises a cap, adds an exception, changes the oracle, or absorbs a regression. Retries expose flakes but never forgive them. Structured output preserves one semantic violation model across human, JSON, and CI renderers. - Place and prove the gate. Assign PR, merge-readiness, or scheduled cadence from measured runtime and false-positive evidence. Run the narrow proof plus affected surrounding gates under the same frozen-input, scrubbed-secret, disabled-target-network, read-only published-tree, owner-only external cache/output, and bounded process controls from step 2. Otherwise do not run them and retain the recovery/blocker. For version debt, detect latest stable releases continuously and apply highest-fixed vulnerability updates immediately. No minimum-release-age delay is permitted.
- Report. Name mode, changed paths, old/new bound, measurement, prevented failure, commands and counts, skips, cadence, recovery state, and remaining approved work.
Final gate
One approved debt class and one monotonic bound; honest measured precondition; no unrelated tool adoption; growth and stale generosity both fail; current latest-stable/vulnerability policy; exact CAS-safe writes; no concurrent loss or unknown recovery state.