Skip to content
Back to skills

Dependency Policy

ASecurity

Dependency and supply-chain security - lockfiles and reproducible installs, version pinning, vulnerability auditing, minimizing and vetting third-party packages, vendoring obscure code instead of fragile remote dependencies, and SBOM/provenance. Use when adding, upgrading, removing, or auditing dependencies, or editing package manifests, lockfiles, or build/CI dependency steps.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsrustgitsecurity

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add FJRG2007/enigma --skill dependency-policy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dependency Policy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dependency Policy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fjrg2007-dependency-policy/badge)](https://www.skillsdirectory.com/skills/fjrg2007-dependency-policy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dependency-policy
description: Dependency and supply-chain security - lockfiles and reproducible installs, version pinning, vulnerability auditing, minimizing and vetting third-party packages, vendoring obscure code instead of fragile remote dependencies, and SBOM/provenance. Use when adding, upgrading, removing, or auditing dependencies, or editing package manifests, lockfiles, or build/CI dependency steps.
---

# Dependency & Supply-Chain Policy

## Activation Scope

- Apply whenever a dependency is added, upgraded, removed, or audited, and when editing package manifests, lockfiles, or CI/build steps that fetch dependencies.
- This skill owns third-party dependency and supply-chain risk. Runtime application security is owned by security-policy; commit/PR mechanics by git-policy.

---

## Add Dependencies Deliberately

- Prefer the standard library or existing project utilities before adding a dependency.
- Justify every new dependency: real need, active maintenance, healthy adoption, compatible license, and acceptable transitive footprint.
- Avoid trivial micro-packages that add supply-chain surface for little value; a small amount of owned code can beat a risky dependency.
- Watch for typosquatting and confusable names; verify the exact package name, owner, and repository before installing.

---

## Pin & Reproduce

- Always commit the lockfile (package-lock.json, pnpm-lock.yaml, yarn.lock, poetry.lock, etc.); it is the source of truth for what actually installs.
- Use reproducible, locked installs in CI and release (e.g. `npm ci`, not `npm install`), so builds are deterministic.
- Pin versions deliberately; avoid loose ranges for anything security-sensitive. Upgrade intentionally, not implicitly.
- Keep one package manager per project; do not mix lockfiles from different managers.

---

## No Fragile Remote Dependencies

- Do not depend on code fetched from arbitrary remote URLs or CDNs at build or runtime (aligns with ciphera-style-policy).
- For obscure or unmaintained libraries, vendor the needed code into the project (with attribution and license) instead of taking a live dependency, so the supply chain stays under your control.
- Pin and verify any external artifact you must fetch (checksums/integrity hashes); never trust mutable remote sources.

---

## Audit & Patch

- Run a vulnerability audit (`npm audit`, `pip-audit`, `osv-scanner`, or equivalent) as part of CI; fail the build on high/critical advisories.
- Triage findings promptly: patch, upgrade, or document an accepted risk with justification and an expiry; do not silently ignore.
- Keep dependencies reasonably current; large version gaps make security patches harder to adopt.
- Prefer automated dependency-update tooling (Dependabot/Renovate) with CI gating so updates are reviewed and tested, not blind-merged.

---

## Provenance & SBOM

- For enterprise/release builds, generate an SBOM (e.g. CycloneDX or SPDX) so shipped components are inventoried and auditable.
- Prefer packages and registries that support provenance/signing; verify integrity where the ecosystem allows.
- Review licenses for compatibility and obligations before shipping; treat license compliance as a release gate.

---

## Verification (Make It Mechanical)

- Enforce these rules deterministically in CI: locked install, audit gate, license check, and (for releases) SBOM generation.
- A dependency change is not done until the audit and license gates pass; a failing gate blocks merge.

Files in this skill

  • SKILL.md3.4 KB
  • skill.json431 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.