/skill-madness:dependency-health-loopfrom skill-madness
Runs a scheduled loop to audit dependencies for vulnerabilities and stale pins, applies one safe update per pass, runs the full test gate, and opens or updates a PR. HITL on major bumps; never auto-merges.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A configuration of
loop-controller. That skill supplies the loop machinery — primitive selection, the full guardrail stack, state externalization. This skill supplies the three things specific to "keep deps healthy": the per-pass recipe (audit → one safe bump → gate → PR), a mechanical proof that combines a security/freshness audit with a green gate after every update, and the HITL boundary that holds majors for a human. Readloop-controllerfor the guardrails; they're inherited, not repeated here.Why
disable-model-invocation: this loop edits the lockfile, commits, and pushes branches on its own, on a clock. It is user-driven — you want to type/loop 30m /dependency-health-loop(or/dependency-health-loop), not have Claude silently start bumping packages because an advisory landed.
| Part | This loop |
|---|---|
| trigger | a sprint in flight (deps drifting / new advisories), scheduled via /loop 30m /dependency-health-loop, or an explicit /dependency-health-loop |
| action | ONE pass: run the ecosystem audit → pick one safe update (a security fix first, else one over-stale patch/minor) → apply it → run the whole fix-until-green gate → open or update a PR. One bump per pass; re-audit the whole tree after |
| proof | no known vulnerabilities AND no pinned dep stale beyond policy AND the gate exits green — all three observed in the same pass, from the audit report + gate exit codes. Default-FAIL: assume unhealthy until the audit proves otherwise |
| memory | dep-health.md (audit snapshot, the bump→result log, deferred majors + why), the PR branch, the lockfile diff, and git history — durable across the session-scoped /loop fires |
| stop | proof holds (clean audit + in-policy freshness + green gate) OR poll/iteration cap OR no-progress for 3 passes (same advisory unfixable within the reversible boundary) OR budget cap OR an HITL checkpoint is hit (a major bump, or a lockfile-semantics change) |
"Healthy" is not "the last bump installed." It is three conditions read
together in one pass: the ecosystem audit reports zero known
vulnerabilities at or above the policy severity, no pinned dependency is
stale beyond the freshness policy, and the full gate (fix-until-green's three
exit codes) is green after the update. Assume the tree is unhealthy until
a fresh audit proves all three — that is the default-FAIL stance, and it is why
every pass re-audits rather than trusting the last verdict. A loop that stops
after one bump ships a tree that picked up a new CVE and a red typecheck.
This is the only loop whose proof fuses a security/freshness audit with a
green gate after each bump — neither half alone is the proof. Name the
artifacts: the audit report (npm audit --json / pip-audit / cargo audit /
govulncheck) plus the gate's exit codes. Both must read clean in the same
pass. Per-ecosystem audit + freshness commands are in
references/ecosystems.md.
Run the ecosystem audit and the freshness check (the precise commands per stack
are in references/ecosystems.md). Then pick one target, in priority order:
One bump per pass. Batching destroys the signal about which change broke (or fixed) the gate, and it makes the PR un-reviewable. If the only available fix for an advisory is a major bump, that is an HITL checkpoint — do not apply it; record it as a deferred major and surface it.
Apply the single bump, regenerate the lockfile, and re-run the entire
fix-until-green gate (test + lint + typecheck) from scratch — not just the
package's own tests. A bump that installs cleanly but reds typecheck has made the
tree worse, and only a full re-run catches it. Do not re-implement the gate —
invoke fix-until-green; this loop adds only the dependency discipline around it.
If the gate goes red and the fix is a mechanical adaptation to the new API,
fix-until-green resolves it; if it can't be made green within the bump, roll
the bump back (the lockfile diff is the undo) and record it as needing a human.
On a green bump, commit a checkpoint naming the package and version, then open or
update a single dependency-health PR via git-pr. Then re-audit the whole
tree — the proof is about the whole, re-checked after every change. When the
audit is clean, freshness is in policy, and the gate is green together, the
loop's proof holds; report the audit report + gate output as evidence. The loop
prepares the PR for a human to merge — it never merges.
This loop runs only inside the reversible boundary unattended. The irreversible or breaking actions are HITL checkpoints — never autonomous:
Within the boundary — a patch/minor security update or in-policy freshness bump
with a green gate, on its own branch/PR — it is AFK-safe. The full AFK-safe vs
pause table is in references/ecosystems.md.
Inherits the full stack from loop-controller → references/safety.md. The caps
this loop sets:
/loop's ~3-day session expiry is the outer bound;
set an inner per-run pass cap (default ~20) so a tree full of advisories
doesn't burn the window. Hitting it is a stop-and-escalate, not a license to
loosen the proof..claude/profile.yaml
when present), not just warns.This loop is not a one-shot dependency update, and it is not a re-skin of an existing skill — it draws three explicit boundaries:
npm update / dependabot bump: those apply versions; they do
not prove health. This loop's substance is the loop discipline — a
default-FAIL proof that fuses audit + freshness + a green gate, one bump per
pass with full re-verification, no-progress detection, scheduling, and an HITL
gate on majors. The bump is the easy part; the proof and the boundary are the
product.security-agent: the security role authors the policy — which
severities block, which advisories are accepted, the SBOM/audit expectations.
This loop consumes that policy as its proof threshold and acts on a
cadence; it does not define security posture. On a vuln it can't resolve
within the reversible boundary, it escalates to the human (and, under an
orchestrated build, to the security role).infrastructure-agent: infra owns the dependency manifests and
lockfiles as files. This loop proposes single, gated bumps as PRs for the
owner to merge — it never force-merges into infra-owned files, and majors route
to a human exactly because they may change runtime/build semantics infra owns.fix-until-green: that loop's proof is three exit codes. This loop's
proof contains a green gate but is strictly larger (audit + freshness), and
it invokes fix-until-green to verify each bump rather than re-implementing
the gate.Per loop-controller Step 1, this is a watch/poll job — you wait for the
dependency tree and advisory feed to change on a cadence — so the primitive is
/loop (sprint cadence) or /schedule (a longer, e.g. nightly,
cadence), not /goal (which pushes to a finish line). The daily-driver
recipe:
/loop 30m /dependency-health-loop
The per-pass exit (this pass made one clean, reversible, gated bump and
re-audited) is provable from the audit report + gate exit codes, so a pass can
run unattended within the HITL boundary above. /loop's session-scope, ~3-day
expiry, and no-catch-up mechanics live in loop-controller's
references/primitives.md; don't re-document them.
references/ecosystems.md — per-ecosystem audit + freshness + update commands
(npm/pnpm/yarn, pip/poetry/uv, cargo, go, bundler, composer), the
major-vs-minor HITL policy, the lockfile-safety rules (what's a clean bump vs a
semantics change), and the AFK-safe vs pause table.What SKILL.md sets; muted values are Claude Code's defaults
87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/npx claudepluginhub ivy00johns/skill-madness --plugin skill-madnessOther plugins' skills for the same job