/dpf-platform:dpf-clear-dependabot-alertsfrom dpf-platform
Clears Dependabot alerts on the DPF repo by flooring transitive vulns in pnpm-workspace.yaml overrides and regenerating lockfile via scripts/regen-lockfile.mjs.
Ships in dpf-platform. 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.
None: SKILL.md is the whole skill.
Clearing Dependabot alerts on this repo is recurring work with two sharp edges that cost a full session the first time. This skill encodes both so every surface (Claude Code, Codex, Grok, Build Studio) does it in one pass.
The two edges:
pnpm-workspace.yaml overrides: block — not to bump a package.json manifest. Reverting/removing overrides re-introduces the CVEs; the overrides ARE the fix.overrides: re-resolves the WHOLE tree, and a naive local pnpm install resolves that offline from the stale store (downloaded 0 is the tell), silently downgrading ~40 unrelated packages to invalid versions. The fix is scripts/regen-lockfile.mjs, which forces fresh metadata via a fresh empty store.OpenDigitalProductFactory/opendigitalproductfactory to clear.EP-DEP-SOVEREIGNTY (docs/superpowers/specs/2026-07-21-dependency-sovereignty-and-supply-chain-intake-hardening-design.md), not this per-alert runbook.Enumerate the alerts. gh api "repos/OpenDigitalProductFactory/opendigitalproductfactory/dependabot/alerts?state=open&per_page=100" --jq '.[] | {number, sev: .security_advisory.severity, ghsa: .security_advisory.ghsa_id, pkg: .dependency.package.name, vulnerable: .security_vulnerability.vulnerable_version_range, patched: .security_vulnerability.first_patched_version.identifier}'. Group by package; multiple alerts often collapse to one floor.
Classify transitive vs direct for each package (grep -rn '"<pkg>"' --include=package.json . | grep -v node_modules). Transitive → override floor. Direct → bump the manifest to the patched range (the override still helps if other transitives pull an older copy — e.g. sharp is direct in apps/web yet Next.js ships a bundled optional sharp, so a global override is still needed).
Add / raise the override in pnpm-workspace.yaml. Use a range selector for scoped floors ('pkg@<X': '^X'). Every security floor MUST carry a comment naming the GHSA-… and Dependabot #NN — the Override Provenance Guard (scripts/check-override-comments.mjs) enforces this and the stale-override audit relies on it. Match the existing comment style in the file.
Regenerate the lockfile the right way. node scripts/regen-lockfile.mjs --expect <comma,list,of,changed,packages>. It resolves against a fresh empty store (fresh metadata), reports the changed set, checks it against --expect, and proves a second resolve is a stable no-op. Never just run pnpm install — it will corrupt the lockfile with offline-stale downgrades.
Verify the fix functionally. Confirm every vulnerable version is gone and only patched versions resolve: grep -oE '<pkg>@[0-9.]+' pnpm-lock.yaml | sort -u. Confirm the diff is scoped to the intended packages + their direct fallout (dropped old platform binaries, etc.) with no unrelated drift.
Ship via dpf-pr-with-dco. DCO-sign every commit (-s), reference the GHSA/Dependabot numbers in the body, and batch the bumps that revert together rather than opening one PR per advisory. Let CI (including the OSV scan, SBOM Divergence Guard, and Override Provenance Guard) confirm.
regen-lockfile.mjs reports DRIFT (packages outside --expect), stop — your metadata was stale or the override cascaded; do not commit a drifted lockfile.@hono/node-server-style major bumps: when a floor crosses a major, check the consumers' declared ranges and the actual API used (see the PR #3357 write-up); flag the residual risk in the PR.docs/superpowers/specs/2026-07-21-dependency-sovereignty-and-supply-chain-intake-hardening-design.md (EP-DEP-SOVEREIGNTY).docs/superpowers/specs/2026-05-21-supply-chain-and-desired-state-assurance-design.md (EP-ASSURANCE-LEDGER).scripts/regen-lockfile.mjs header + docs/superpowers/specs/2026-07-21-agent-process-efficiency-hardening-design.md.dpf-pr-with-dco.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub opendigitalproductfactory/opendigitalproductfactory --plugin dpf-platform88 skills in this plugin
/acquisition-brief-refreshKeep the acquisition brief current./ai-platform-posture-refreshReport AI platform and host health./architecture-alignment-sweepCompare delivered against recorded architecture./asset-inventory-reconciliationReconcile recorded against observed assets./books-period-advanceAdvance the open books period./build-sensitive-domain-requirementsBound sensitive-domain build requirements.Other plugins' skills for the same job