/security-check:dependency-adoption-reviewfrom security-check
Due-diligence review of a new third-party dependency before adding it to a project. Checks necessity, license, maintenance health, governance, security track record, adoption signals, and transitive footprint, returning a scored verdict.
Ships in security-check. 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.
Decide whether to take on a new third-party dependency before it lands in the project. Most "should I install X?" decisions are made on vibes; this skill grounds them in license, maintenance, governance, security track record, and — first of all — whether the dependency is even necessary.
This is a strategic adoption decision, distinct from the sibling skills in the security-check plugin:
/security-check:system-package-audit — the deep supply-chain/malware vet of a specific version (install scripts, tarball-vs-source, typosquatting, maintainer takeover). This skill hands the malware pass off to it rather than duplicating it./security-check:vulnerability-report-triage — triage reported vulnerabilities in dependencies you already have./security-check:dependency-adoption-review : /security-check:dependency-adoption-review (auto-detect ecosystem from the repo) /security-check:dependency-adoption-review vs (compare candidates)
Every dependency is a permanent liability — a future vulnerability source, an upgrade treadmill, a supply-chain entry point, and a license/legal surface. Bias toward not adding one. A few lines of owned code, a modern language/stdlib feature, or a capability an existing dependency already provides usually beats a new package. Adopt when the dependency genuinely earns its keep.
Establish the ecosystem (detect from the repo's manifests if not given — see system-package-audit Step 1 for the detection pattern), the package name, the target version, the registry, and the source repository URL. If the user named two candidates, run the review for each and compare at the end.
Before any other check, ask whether the dependency should exist in the project at all:
fetch over axios/request, crypto.randomUUID() over uuid, Intl / Temporal over moment/dayjs, structuredClone over lodash.cloneDeep, native Array/Object methods over lodash helpers, built-in mappers/AI-generated code over a mapping library.left-pad / is-odd anti-pattern) and its transitive tail.If the functionality is replaceable cheaply, the recommendation can be Don't add before spending effort on the remaining checks — but still note the finding. Otherwise continue.
Pull repo and registry signals (via gh, the registry API, and deps.dev):
SECURITY.md, CONTRIBUTING, and a governance model./security-check:system-package-audit <ecosystem>:<package> on the chosen version as the concrete next step (and as a gate before installing).>=1.0) vs. 0.x experimental; ships types (or has maintained @types); has tests and CI; documentation quality.Score each dimension ✅ / ⚠️ / ⛔ and synthesize a single verdict:
If the verdict is Adopt or Adopt with caution, the closing action is: "Run /security-check:system-package-audit <ecosystem>:<package> on the target version before installing."
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 DEPENDENCY ADOPTION REVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Package: <name> (<ecosystem>) target <version>
🔗 Repository: <url>
🧭 For project: <stack / use case>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[1] Necessity & alternatives ✅ / ⚠️ / ⛔ <can native/existing replace it?>
[2] License & legal ✅ / ⚠️ / ⛔ <license · obligations · relicensing risk>
[3] Maintenance & governance ✅ / ⚠️ / ⛔ <cadence · bus factor · backing · ownership risk>
[4] Security track record ✅ / ⚠️ / ⛔ <CVE history · posture · scorecard>
[5] Adoption & operational fit ✅ / ⚠️ / ⛔ <usage · maturity · transitive footprint · permissions>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚦 VERDICT: Adopt | Adopt with caution | Avoid (use <alternative>) | Don't add
<one-paragraph rationale>
💡 If adopting:
• Run /security-check:system-package-audit <ecosystem>:<package> (supply-chain vet before install)
• <any caution to mitigate: pin version / watch maintenance / note license obligation>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
When comparing candidates, show a one-row-per-candidate comparison and recommend one.
npm view <pkg> --json), PyPI (https://pypi.org/pypi/<pkg>/json), crates.io, RubyGems, NuGet, Packagist — versions, maintainers, publish times, license field.gh) — repo activity, contributors, releases, SECURITY.md, archived/deprecated status, issue/PR responsiveness.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub infinum/ai --plugin security-check3 skills in this plugin
/system-package-auditSupply-chain security audit of a system/OS package or globally-installed CLI tool (Homebrew, apt, and global npm/pip/cargo/gem installs) before you install or upgrade it — checks known CVEs, maintainer/ownership changes, install scripts, source-vs-registry integrity, the version diff, and typosquatting. Use before installing or upgrading a system package or global tool, or when the user mentions /security-check:system-package-audit. For a project's lockfile dependencies use dependency-adoption-review (before adding one) or vulnerability-report-triage (for reported vulns). Not Cowork-ready — requires local package managers (`brew`/`npm`/`pip`/etc.) and registry egress./vulnerability-report-triageTriage reported vulnerabilities in a project's dependencies (Dependabot, GitHub Advisory, or an in-house weekly security report) for SOC2/compliance deadlines. Detects the tech stack, classifies each item by production-vs-development impact and direct-vs-transitive placement, judges whether it actually applies to this codebase, rates upgrade effort, scores confidence, and emits ready-to-use handoff artifacts (dismissal rationale, task/PR descriptions). Use when the user pastes a Dependabot/Revisor vulnerability report, shares a CVE/GHSA to assess against a project, shares a Slack channel/message link where a report was posted, asks to triage security alerts, or mentions /security-check:vulnerability-report-triage. Produces a report only — makes no repo changes. Not Cowork-ready — needs local package managers, `gh`, and registry/advisory egress.