agentleFS
leekleek/agent-skills/skills/dependency-audit/SKILL.md

dependency-audit

Skill5 starsChanged 10 days agoMITView on GitHub

Run a dependency audit for Composer or npm projects and propose a safe upgrade plan.

42 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use api-audit, container-audit and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • gmanch94Skill

    api-audit

    Guides a structured API portfolio audit — from discovery through primary-source-verified inventory, shortcomings analysis, prioritized recommendations, executive summary, and options analysis. Enforces primary-source discipline, cross-file consistency, and advisor review gates. Use when auditing an API portfolio, evaluating a vendor's developer ecosystem, or producing defensible technical analysis of an API set.

    Also in 3 projects that use this

  • grichaSkill

    container-audit

    Audit local Docker images and running containers for hardening issues before deploy — privileged flags, root users, stale base images, missing resource limits. Use for pre-deploy container review.

    Also in 3 projects that use this

  • conorluddySkill

    performance-profiling

    Instruments integration and performance analysis workflows for iOS apps. Use when profiling CPU usage, memory allocation, network activity, or energy consumption. Covers Time Profiler, Allocations, Leaks, Network instruments, and performance optimization strategies.

    Also in 3 projects that use this

  • OpenAISkill

    threat-model

    Use when Codex is already in the threat-modeling phase of a security scan, the user explicitly invokes $threat-model, or the user explicitly asks to create, update, or persist a repository threat model. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.

    Also in 4 projects that use this

  • renfei-designSkill

    a11y-audit

    Audit Figma designs for WCAG accessibility issues — color contrast, minimum font size, touch target sizing, and missing text alternatives. Use when asked to check accessibility, audit contrast ratios, find a11y issues, verify WCAG compliance, or review designs for accessibility problems. Scans nodes, analyzes offline, and annotates issues in Figma.

    Also in 3 projects that use this

  • OpenAISkill

    security-scan

    Use for a standard, single-pass security audit of an entire repository or a scoped path, package, folder, or submodule with no diff to review. This is the default repository scan. Do not use for PR, commit, branch, or working-tree diffs, or for deep, multi-pass scans.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Run security audit when a lockfile makes the result meaningful (composer.lock, package-lock.json, or npm-shrinkwrap.json).

    line 45
  2. Distinctive:

    Keep the report direct. Do not apply upgrades unless the user asks you to do the upgrade work.

    line 62
  3. Distinctive:

    Do not modify the check commands to force success.

    line 66
  4. Distinctive:

    Do not skip, disable, or bypass checks to make the audit look clean.

    line 67
  5. Distinctive:

    If package metadata is missing, dependency resolution fails, or audit output is blocked by registry/authentication issues, stop and report …

    line 68

“Common” is measured: kept by at least 6 in 10 of the 39 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 Audit

Goal

Deliver a dependency audit summary for the package manager this project uses.

In Claude Code with this plugin installed, this skill runs in its own dependency-auditor subagent (read-only, remembers packages the project has chosen to hold back); the report comes back to the main session when it finishes. In other harnesses, dispatch it and wait per harness-tools. Otherwise it runs inline. The steps are the same.

Detect package manager

The package manager is $ARGUMENTS. If it is composer or npm, audit only that manager, and stop and report if its manifest (composer.json or package.json) is missing. If it names any other manager, stop and report that only Composer and npm are supported. If it is empty, inspect the project root:

  • composer.json present → Composer (PHP)
  • package.json present → npm (JavaScript / TypeScript)
  • Both present → audit both, report each section separately
  • Neither present → stop and report that the directory is not a Composer or npm project

Run

Composer

composer outdated --direct || true
composer audit || true

npm

npm outdated || true
npm audit || true

Run security audit when a lockfile makes the result meaningful (composer.lock, package-lock.json, or npm-shrinkwrap.json).

Major bumps

For each major update, source its breaking changes from the package, not from memory: fetch its CHANGELOG, UPGRADE guide, or GitHub release notes for the versions crossed where the harness can reach the web (WebFetch in Claude Code), and cite the URL; otherwise read the changelog shipped under vendor/<package>/ or node_modules/<package>/ and mark the risk unverified (it covers only the installed version).

Report

Summarize the result with:

  • Package manager evidence (composer.json / composer.lock, or package.json / lockfile, plus framework hints when relevant)
  • Outdated direct dependencies grouped by patch, minor, and major updates
  • Security advisories from the audit command, grouped by severity, when available
  • Recommended safe upgrade order, starting with low-risk patch and minor updates
  • Breaking-change risks, required code changes, runtime/framework constraints, or test coverage gaps for major updates
  • Exact verification commands the project should run after upgrades

Keep the report direct. Do not apply upgrades unless the user asks you to do the upgrade work.

Guardrails

  • Do not modify the check commands to force success.
  • Do not skip, disable, or bypass checks to make the audit look clean.
  • If package metadata is missing, dependency resolution fails, or audit output is blocked by registry/authentication issues, stop and report the blocker.

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.