agentleFS
pyramidheadsharkpyramidheadshark/claude-scaffold/.claude/skills/supply-chain-auditor/SKILL.md

supply-chain-auditor

Skill4 starsChanged 8 months agoMITArchived repositoryView on GitHub

Auto-load when: adding dependencies, reviewing packages, updating versions, or discussing requirements.txt, pyproject.toml, package.json. Triggers on dependency, install, package, CVE, audit, vulnerable (≥2 keywords). Every new dependency addition must pass this checklist before merging: Before adding any new package: Run before adding dependencies or before release: When this skill is active, append to dependency-related analysis: Examples: - [SupplyChain]: BLOCK — requests>=2.0 is unpinned in production requirements -> pin to requests==2.32.3 - [SupplyChain]: WARN — last commit on package X was 18…

  • Pipes a download into a shell
  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every new dependency addition must pass this checklist before merging:

    line 9
  2. Distinctive:

    Before adding any new package:

    line 18
  3. Distinctive:

    Run before adding dependencies or before release:

    line 43
  4. Distinctive:

    When this skill is active, append to dependency-related analysis:

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: Supply Chain Auditor

When to Load

Auto-load when: adding dependencies, reviewing packages, updating versions, or discussing requirements.txt, pyproject.toml, package.json. Triggers on dependency, install, package, CVE, audit, vulnerable (≥2 keywords).

Core Rules

Every new dependency addition must pass this checklist before merging:

  1. Pinned — exact version in production (==1.2.3 for pip, "1.2.3" for npm, not ^ or ~).
  2. Maintained — last commit within 12 months. Abandoned packages accumulate unpatched CVEs.
  3. Necessary — can this be replaced by stdlib or an already-present dependency?
  4. Vetted — check PyPI/npm advisory database for known CVEs.

Pre-Dependency Checklist

Before adding any new package:

[ ] Does stdlib cover this? (json, csv, pathlib, urllib, dataclasses...)
[ ] Is it already a transitive dependency we can promote?
[ ] Last release date < 12 months ago
[ ] Download count > 10k/month (ecosystem signal, not guarantee)
[ ] No open CVEs with CVSS >= 7.0 in last 2 years
[ ] Version pinned exactly in requirements.txt / pyproject.toml
[ ] Added to lockfile (uv.lock / package-lock.json / poetry.lock)

Anti-Patterns — Block on Detection

Anti-PatternRiskRequired Action
Unpinned version (>=, ^, ~, *) in prodUnexpected breaking update or CVE introduced silentlyPin exact version
pip install latest / npm install pkg without versionNon-reproducible buildsSpecify version, commit lockfile
Package with no recent activity (> 2 years no commits)Unpatched vulnerabilities accumulateFind maintained alternative
Dependency with known CVEDirect security riskUpgrade to patched version or replace
Pulling in package only for one utility functionBloat, supply chain surfaceInline the function (if < 20 lines)
`curlbash` install patternArbitrary code executionUse package manager with integrity check

Audit Commands

Run before adding dependencies or before release:

pip-audit                           # Python: checks PyPI advisory DB
pip-audit --requirement requirements.txt
safety check                        # alternative Python auditor

npm audit                           # Node.js
npm audit --audit-level=high        # block only high/critical

uv lock --check                     # verify lockfile is up to date

Quick Mode Format

When this skill is active, append to dependency-related analysis:

[SupplyChain]: BLOCK|WARN|CLEAR — [specific risk] -> [action required]

Examples:

  • [SupplyChain]: BLOCK — requests>=2.0 is unpinned in production requirements -> pin to requests==2.32.3
  • [SupplyChain]: WARN — last commit on package X was 18 months ago -> verify no open CVEs, consider alternative
  • [SupplyChain]: CLEAR — evaluated: version pinned, no CVEs in advisory DB, maintained within 6 months

When NOT to Flag

  • Dev/test-only dependencies (in [dev-dependencies] or requirements-dev.txt) — less strict, but still pin
  • Known ecosystem heavyweights (numpy, fastapi, pytest) — skip maintenance check, focus on CVE check
  • Internal packages (local path installs, private registry) — flag only if unpinned

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.