# Code Dependency Auditor

> Audit project dependencies for declared usage, version constraints, known risk signals, and unnecessary or inconsistent packages.

- Skill: `samotech/code-dependency-auditor` (Agent Skill)
- Install (CLI): `npx get-skill add samotech/code-dependency-auditor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/samotech/code-dependency-auditor/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: SamoTech (https://skillmd.com/u/samotech)
- Updated: 2026-11-21
- Page: https://skillmd.com/skills/samotech/code-dependency-auditor

---


## Description
Audit project dependencies for declared usage, version constraints, known risk signals, and unnecessary or inconsistent packages. Inspect manifests, lockfiles, build metadata, and repository policy before proposing changes.

## When to Use
Use when dependency inventory, consistency, risk review, or cleanup is explicitly required.

## Inputs / outputs / failure modes

| Area | Guidance |
|---|---|
| Inputs | Manifests, lockfiles, build metadata, repository policy, and package usage. |
| Outputs | Auditable findings and evidence-backed remediation proposals or changes. |
| Failure modes | Missing transitive context, unsafe upgrades, stale metadata, or unsupported risk claims. |

## Runnable Example

```python
from pathlib import Path

names = [p.name for p in Path('.').iterdir() if p.is_file()]
print('top-level files:', len(names))
print('inspect manifests and lockfiles explicitly')
```

## Failure modes
- Treating a package name as proof of runtime usage.
- Ignoring lockfiles or platform constraints.
- Making version changes without compatibility checks.
- Claiming a vulnerability without authoritative evidence.

## Related
- 05-code
- AI_CONSTITUTION.md
- meta/AGENT_OPERATING_MODEL.md

## Evidence
Repository-backed implementation guidance grounded in repository governance and validation workflows; no external benchmark claim is made.

