agentleFS
codebygarvcodebygarv/Ai-skills/skills/development/dependency-auditor/SKILL.md

dependency-auditor

Skill26 starsChanged 4 months agoMITView on GitHub

Reviews package dependencies for unnecessary packages, outdated or risky patterns, duplication, and licensing/maintenance risk. Use when a dependency manifest has grown unchecked or before adding a new dependency.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pr-review-expert, ci-cd-pipeline-builder 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.
  • mar-antayaSkill

    pr-review-expert

    PR Review Expert

    Also in 5 projects that use this

  • mar-antayaSkill

    ci-cd-pipeline-builder

    CI/CD Pipeline Builder

    Also in 4 projects that use this

  • Arnav-0Skill

    agent-designer

    Use when the user asks to design multi-agent systems, create agent architectures, define agent communication patterns, or build autonomous agent workflows.

    Also in 3 projects that use this

  • gurdasnijorSkill

    senior-data-engineer

    World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, and data infrastructure. Expertise in Python, SQL, Spark, Airflow, dbt, Kafka, and modern data stack. Includes data modeling, pipeline orchestration, data quality, and DataOps. Use when designing data architectures, building data pipelines, optimizing data workflows, or implementing data governance.

    Also in 3 projects that use this

  • Arnav-0Skill

    database-designer

    Use when the user asks to design database schemas, plan data migrations, optimize queries, choose between SQL and NoSQL, or model data relationships.

    Also in 3 projects that use this

  • jd-opensourceSkill

    skill-security-auditor

    OpenClaw Skills 全方位安全审计工具,检测供应链投毒、Prompt注入、恶意代码模式、权限越权和依赖风险

    Also in 3 projects that use this

  • +2 more from mar-antaya

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 1

    Distinctive

    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:

    Before adding a new dependency, to check if an existing one already covers the need.

    line 13

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

Purpose

Review a project's dependency manifest for bloat, risk, and duplication — packages that shouldn't be there, packages that duplicate functionality, and packages that carry maintenance or licensing risk.

When to Use

  • The dependency list has grown over time without anyone auditing it.
  • Before adding a new dependency, to check if an existing one already covers the need.
  • Investigating bundle size or install time bloat.

What to Analyze

  1. Unnecessary packages — dependencies for functionality that's a few lines of code, or that duplicate a built-in language/runtime feature.
  2. Duplication — multiple packages solving the same problem (e.g. two date libraries, two HTTP clients) introduced at different times by different people.
  3. Maintenance risk — packages that are unmaintained (no updates in years, open critical issues with no response), single-maintainer with no succession, or deprecated in favor of a successor.
  4. Bundle/install cost — a heavy dependency pulled in for a small fraction of its functionality (check if a lighter alternative or a direct implementation would do).
  5. Version drift — dependencies significantly behind current major versions, especially where the gap blocks picking up security fixes.
  6. License risk — copyleft licenses (e.g. GPL) in a codebase that otherwise ships under a permissive/proprietary license, where that's likely unintentional.

Output Format

  • Grouped: Remove/replace candidates (unnecessary or duplicated) → Risk (unmaintained, license, badly behind on versions) → Note (heavier than needed but not urgent).
  • Each entry: package name, the concern, and the concrete recommendation (remove, replace with X, upgrade to version Y, or just flag for awareness).
  • State clearly when a recommendation needs verification (e.g. "confirm no other code path relies on this package's transitive behavior before removing").

Avoid

  • Recommending removal of a dependency without checking whether it's actually used across the codebase, not just imported once.
  • Treating every slightly-outdated version as urgent — distinguish "years behind with known CVEs" from "one minor version behind."
  • Making licensing calls as if they're legal advice — flag for review, don't declare a license is definitely a problem without appropriate caveats.

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.