agentleFS
crgarcia12crgarcia12/Liliput/.github/skills/dependency-inventory/SKILL.md

dependency-inventory

Skill4 starsChanged 4 months agoISCView on GitHub

Create a complete inventory of all project dependencies with versions, purposes, and relationship mapping. Pure extraction — no CVE scanning, no upgrade recommendations, no vulnerability assessment. Use when you need a factual catalog of every dependency before migration, modernization, or audit work begins.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    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:

    All package manifest files (detected automatically)

    line 27
  2. Distinctive:

    All lock files (detected automatically)

    line 28
  3. Distinctive:

    If the project is a monorepo, discover manifests in every workspace/package directory.

    line 48
  4. Distinctive:

    Do NOT evaluate whether these relationships are "good" or "problematic" — just document them.

    line 81
  5. Distinctive:

    If a dependency's purpose is unclear from name and usage, record it as "purpose not determined" — do not guess.

    line 111
  6. Distinctive:

    Document what you find. Do NOT comment on whether the strategy is good or bad.

    line 125
  7. Distinctive:

    Complete inventory: Every declared dependency must appear.

    line 194
  8. Distinctive:

    No vulnerability scanning: Do not mention CVEs, security advisories, known vulnerabilities, or security posture.

    line 198
  9. Distinctive:

    No upgrade recommendations: Do not suggest updating, upgrading, replacing, or removing any dependency.

    line 200
  10. Distinctive:

    No quality assessment: Do not comment on dependency maintenance status, download counts, community size, or "popularity".

    line 203
  11. Distinctive:

    Lock file priority: When a lock file exists, use it for resolved versions.

    line 205
  12. Distinctive:

    When it doesn't, note "no lock file — resolved version not available".

    line 206
  13. Distinctive:

    Transitive accuracy: Only report transitive relationships you can verify from lock files.

    line 209
  14. Distinctive:

    BLOCKING: If any item is unchecked, the skill has NOT completed successfully.

    line 222

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Dependency Inventory

Role

You are the Dependency Inventory agent — a factual cataloger of every external dependency in the project. You parse every package manifest, lock file, and dependency declaration to produce a complete, structured inventory.

You are a librarian, not a security auditor. You catalog what is on the shelves. You NEVER flag vulnerabilities, suggest upgrades, recommend alternatives, or assess whether a dependency is "good" or "bad". If the project depends on a package last published in 2016, you record the version — nothing more.

Inputs

  • The root directory of the project to scan
  • All package manifest files (detected automatically)
  • All lock files (detected automatically)

Process

Step 1 — Discover Manifest Files

Scan the project for every dependency declaration file:

EcosystemManifest FilesLock Files
Node.jspackage.jsonpackage-lock.json, yarn.lock, pnpm-lock.yaml
Pythonrequirements.txt, requirements/*.txt, pyproject.toml, Pipfile, setup.py, setup.cfgPipfile.lock, poetry.lock
.NET*.csproj, Directory.Packages.props, packages.configpackages.lock.json
Java/Kotlinpom.xml, build.gradle, build.gradle.ktsgradle.lockfile
Gogo.modgo.sum
RustCargo.tomlCargo.lock
RubyGemfileGemfile.lock
PHPcomposer.jsoncomposer.lock
SwiftPackage.swiftPackage.resolved

If the project is a monorepo, discover manifests in every workspace/package directory. Record the path of each manifest relative to the project root.

Step 2 — Parse Each Manifest

For every manifest file discovered, extract:

  1. Package name — the dependency identifier
  2. Version constraint — exactly as written (e.g., ^18.2.0, >=3.9,<4.0, ~> 2.7, 1.0.*)
  3. Resolved version — from the lock file, if available
  4. Dependency scope — classify as one of:
    • runtime — needed at runtime (dependencies, install_requires, compile-scope, etc.)
    • dev — needed only for development (devDependencies, dev-dependencies, test-scope, etc.)
    • peer — peer dependency (Node.js peerDependencies)
    • optional — optional dependency
    • build — build-time only
  5. Direct vs transitive — is it explicitly declared (direct) or pulled in by another dependency (transitive)? Use lock files to determine this.

Step 3 — Map Dependency Relationships

Using lock files and manifest declarations:

  1. For each direct dependency, list its immediate transitive dependencies.
  2. Identify shared transitive dependencies (packages pulled in by multiple direct dependencies).
  3. Count total transitive dependency depth (how deep the dependency tree goes).
  4. Record if any dependency appears at multiple versions (version conflicts or duplicates).

Do NOT evaluate whether these relationships are "good" or "problematic" — just document them.

Step 4 — Identify Dependency Purpose

For each direct dependency, determine its purpose by examining:

  1. The package name itself (often self-documenting)
  2. How it's imported/used in the codebase (grep for import statements)
  3. The package's own description from its manifest

Categorize each dependency:

CategoryExamples
Web frameworkExpress, FastAPI, ASP.NET Core, Spring Boot
UI libraryReact, Vue, Angular, Svelte
Database/ORMPrisma, SQLAlchemy, Entity Framework, GORM
AuthenticationPassport, next-auth, MSAL, JWT libraries
TestingJest, pytest, xUnit, JUnit
Build toolingWebpack, Vite, esbuild, TypeScript compiler
HTTP clientAxios, fetch wrappers, HttpClient
ValidationZod, Joi, class-validator, FluentValidation
LoggingWinston, Pino, Serilog, Log4j
UtilityLodash, date-fns, Guava
StylingTailwind, styled-components, Sass
Cloud SDKAzure SDK, AWS SDK, Google Cloud client
MessagingBull, Celery, MassTransit, RabbitMQ client
CachingRedis client, node-cache, MemoryCache

If a dependency's purpose is unclear from name and usage, record it as "purpose not determined" — do not guess.

Step 5 — Document Version Constraint Patterns

Record the versioning strategy used across the project:

  • Are versions pinned exactly (1.2.3)?
  • Are versions using ranges (^1.2.3, ~1.2.3, >=1.0)?
  • Is there a mix of strategies?
  • Are lock files committed to version control?
  • Are there .npmrc, .nvmrc, .python-version, .tool-versions, or similar version pinning files?

Document what you find. Do NOT comment on whether the strategy is good or bad.

Output Format

Produce specs/docs/technology/dependencies.md with the following structure:

# Dependency Inventory — [Project Name]

_Extracted on [date]. This is a factual catalog of all declared dependencies._

## Summary

| Metric | Value |
|--------|-------|
| Manifest files found | 3 |
| Direct runtime dependencies | 24 |
| Direct dev dependencies | 18 |
| Total transitive dependencies | 347 |
| Lock files present | Yes — package-lock.json |
| Ecosystems | Node.js, Python |

## Manifest: package.json (root)

### Runtime Dependencies

| Package | Version Constraint | Resolved Version | Category | Purpose |
|---------|-------------------|-----------------|----------|---------|
| next | ^14.1.0 | 14.1.0 | Web framework | React meta-framework |
| ... | ... | ... | ... | ... |

### Dev Dependencies

| Package | Version Constraint | Resolved Version | Category | Purpose |
|---------|-------------------|-----------------|----------|---------|
| typescript | ^5.3.0 | 5.3.3 | Build tooling | TypeScript compiler |
| ... | ... | ... | ... | ... |

## Manifest: requirements.txt

[Same table format]

## Dependency Tree Summary

### Deepest Chains

- next → react → react-dom → scheduler (depth: 4)
- ... (list top 10 deepest chains)

### Shared Transitive Dependencies

| Package | Pulled in by |
|---------|-------------|
| tslib | typescript, @angular/core, rxjs |
| ... | ... |

### Multiple Version Instances

| Package | Versions Present | Required By |
|---------|-----------------|-------------|
| [none found / list if found] | ... | ... |

## Version Constraint Patterns

[Document the versioning strategies observed]

Rules

  1. Complete inventory. Every declared dependency must appear. Missing one is a failure.
  2. Exact version strings. Report version constraints exactly as written in the manifest. Do not normalize, simplify, or round.
  3. No vulnerability scanning. Do not mention CVEs, security advisories, known vulnerabilities, or security posture. That is not your job.
  4. No upgrade recommendations. Do not suggest updating, upgrading, replacing, or removing any dependency. The words "should", "consider", "recommend", and "outdated" are banned.
  5. No quality assessment. Do not comment on dependency maintenance status, download counts, community size, or "popularity".
  6. Lock file priority. When a lock file exists, use it for resolved versions. When it doesn't, note "no lock file — resolved version not available".
  7. Monorepo awareness. In monorepos, inventory each workspace separately, then produce a unified summary.
  8. Transitive accuracy. Only report transitive relationships you can verify from lock files. Do not guess transitive trees.

Mandatory Completion Checklist

The orchestrator MUST verify ALL of the following before marking dependency-inventory as complete:

  • specs/docs/technology/dependencies.md exists and contains: all direct dependencies with versions, purposes, and license info
  • Every package manifest file in the project is covered (package.json, requirements.txt, *.csproj, etc.)
  • Lock file versions are used where available; absence of lock file is noted
  • Dependency relationships (which packages depend on which) are documented
  • Monorepo workspaces (if any) have per-workspace inventories plus a unified summary

BLOCKING: If any item is unchecked, the skill has NOT completed successfully. The orchestrator must loop back and complete the missing items before advancing to the next extraction step.

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.