agentleFS
elfrostelfrost/ai-patchlab/.agents/skills/dependency-check/SKILL.md

dependency-check

Skill1 starsChanged 30 days agoMITView on GitHub

Audit project dependencies for vulnerabilities, outdated packages, and compatibility issues. Optionally apply safe updates with test validation. Use periodically or before release.

  • Installs packages

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read pyproject.toml for declared dependencies

    line 9
  2. Distinctive:

    Read CLAUDE.md / AGENTS.md for tech stack context

    line 10
  3. Very specific:

    Check that pip-audit is installed (suggest pip install pip-audit otherwise)

    line 11
  4. Distinctive:

    Run in this order:

    line 14
  5. Very specific:

    Run the test suite: pytest tests/ -v

    line 31
  6. Distinctive:

    If tests fail, revert that update and flag it

    line 32
  7. Distinctive:

    Ask the user for the call

    line 38
  8. Very specific:

    Always check pip-audit is installed before scanning

    line 41
  9. Distinctive:

    Always run tests after each update

    line 42
  10. Distinctive:

    Never update a major version without user approval

    line 43

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “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

Dependency Check

Phase 1: Read state

  1. Read pyproject.toml for declared dependencies
  2. Read CLAUDE.md / AGENTS.md for tech stack context
  3. Check that pip-audit is installed (suggest pip install pip-audit otherwise)

Phase 2: Analyze

Run in this order:

  1. pip-audit 2>&1 — vulnerability scan
  2. pip list --outdated 2>&1 — outdated packages
  3. Compatibility check — for each outdated package, look at its changelog for breaking changes since the current pinned version

Phase 3: Report

Produce a structured report:

  • CRITICAL vulnerabilities (require immediate action)
  • HIGH vulnerabilities
  • Updates available — organized by risk:
    • SAFE: patch-level only (1.2.3 -> 1.2.4)
    • MODERATE: minor (1.2.x -> 1.3.x)
    • RISKY: major (1.x -> 2.x)

Phase 4: Optionally apply (if user passes --fix or approves)

  1. Apply SAFE updates only — patch versions to pyproject.toml
  2. Run pip install -e ".[dev]"
  3. Run the test suite: pytest tests/ -v
  4. If tests fail, revert that update and flag it
  5. Report what was updated and what was skipped

For CRITICAL vulnerabilities without a safe fix:

  • Explain the risk
  • Propose a workaround or migration plan
  • Ask the user for the call

Rules

  • Always check pip-audit is installed before scanning
  • Always run tests after each update
  • Never update a major version without user approval
  • Revert updates that break tests — leave the project in a working state
  • Pin exact versions in pyproject.toml (no ranges for prod deps)

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.