/crewforth:dependency-auditfrom Crewforth
Audits dependencies for known CVEs, deprecated packages, license compliance, maintenance status, lockfile integrity, and justification for new dependencies. Read-only; does not modify manifests.
Ships in Crewforth. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Trigger phrases: "dependency audit", "npm audit", "package security", "CVE", "license", "deprecated package", "still maintained", "no longer maintained", "unmaintained", "third party library", "supply chain", "add a dependency", "add a new dependency", "add the package", "install the package", "lockfile", "lock file", "package-lock", "yarn add", "pnpm add", "pip install", "uv add", "cargo add", "paket ekle", "paketi ekle", "paketini ekle", "bagimlilik ekle", "kutuphane ekle"
The real trigger is an event in the diff, not a word in the request: a lockfile is staged. Nobody asks for an audit while adding a feature, so the phrases above only catch the request that names the package; the commit gate (§4.7) catches the rest, and refuses the commit until the record below exists.
This skill only reports. It changes no manifest and no lockfile — bringing dependencies current is [[dependency-upgrade]], which classifies each move by risk and verifies the build. Keeping the two apart keeps this one safe to run any time, on any branch, including one you are only inspecting.
npm audit --production # Node
dotnet list package --vulnerable # .NET (cannot be combined with --deprecated/--outdated)
pip-audit # Python
dotnet list package --deprecated, npm view <pkg> deprecated. A deprecated
package is not a version problem: no bump fixes it, it needs a replacement.preinstall/install/
postinstall scripts — and prepare, which runs only for a git, link or folder dependency and never for a
registry tarball — a build hook, or a setup step that fetches at install time? This is the mechanism the recent
registry compromises actually used: the malicious version does not have to be imported, only installed, so a
CVE feed and a code review both miss it. Ask two things: which packages declare such a script, and whether
the project can install without them at all (npm ci --ignore-scripts; for Python the control is refusing source
distributions, pip install --only-binary=:all:, optionally with --require-hashes — a wheel has no install
hook, an sdist does; or a vendored, pre-built artefact). A package that cannot install without running code is not disqualified —
it is a package whose publisher you are trusting with arbitrary execution on every machine and every runner,
which is a decision, not a default.npm owner ls <pkg> · for PyPI the package JSON's ownership.roles,
NOT the self-reported info.maintainer field · the equivalent ACL for the ecosystem in use) — and whether the
PUBLISH PATH itself is challenged, which is not the same as "the account has 2FA": npm's auth-only 2FA mode
does not gate npm publish, and a granular token with bypass-2FA publishes with no second factor, while on
PyPI 2FA has been mandatory for every account since 2024 so the real question there is Trusted Publisher
versus a long-lived API token. A widely-used
package whose registry ACL is one unprotected account is a single compromised credential away from every
build that installs it, whatever the contributor graph looks like.@corp:registry=)
and no unscoped internal name; pip, --index-url (one source) rather than --extra-index-url (both, highest
version wins); NuGet, <clear/> plus packageSourceMapping; Maven/Gradle, the order of the repositories; Go,
GOPRIVATE covering the private module paths; Docker, a fully qualified image name with a digest, not a bare
node:20. A registry config committed in the repository (.npmrc, bunfig.toml, pip.conf, nuget.config)
is read as part of this axis and named in the report: it changes where every install on every machine resolves.
For each NEW dependency, also check its name against the popular package one edit away (a dropped, doubled or
swapped letter, - against _): a typosquat is a name that looks right in a diff.Severity-sorted list: package · version · issue (CVE/license/maintenance) · upgrade path.
A commit that stages a lockfile is refused until this skill records its verdict for THAT lockfile diff. Audit what
the staged lockfile changed (axes 1, 3, 4, 7 at least), git add the lockfile in its own call (a command that stages
and commits at once is refused), then run (Bash tool, not PowerShell):
bash "${CLAUDE_PLUGIN_ROOT}/skills/dependency-audit/scripts/record.sh" <clean|accepted|unverified> "<what the audit found>"
clean — the audit ran and nothing is open.accepted — findings remain and the user accepted them by name in this session; the note lists them.
Never accept for the user.unverified — the audit could not run (no network, no tool); the note says which and why. The gate lets it
through, so that a machine with no network can still commit; the report to the user then says the dependencies
were not audited, never that they are clean.The record hashes the staged lockfile diff alone: staging more code keeps it valid, a lockfile change needs a new audit. It lives in the git directory, so it is never committed.
Periodic audit. A CVE is published without the lockfile changing, so the doctor and a session-start line say
when the last audit is older than CREW_DEPS_AUDIT_DAYS (default 7; 0 turns both off). With nothing staged, audit
the lockfiles the repository tracks and record it with record.sh --periodic <verdict> "<what it found>": it dates
the audit and never lets a commit through §4.7.
security-scan already holds the same rule.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub crewforth/crewforth --plugin crewforth60 skills in this plugin
/a11yUse when building or changing UI, before shipping a user-facing screen, and when something cannot be
reached with a keyboard, read by a screen reader, or seen at low contrast.
/adrArchitecture Decision Record: context-decision-consequences, for decisions that are expensive to reverse.
Written under docs/adr/.
/api-designUse when an API contract is designed or changed: a new endpoint or resource, how its errors and pages
are returned, a field to add or remove, or a version to cut without breaking a consumer.
Other plugins' skills for the same job