unused

Solid

Audits a project's manifest for dependencies no source file imports — the reverse of razor's write-time gates (which block NEW dependencies), this finds EXISTING dead weight. Report-only; never edits any file.

AI & Automation 8 stars 1 forks Updated today MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
32
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# razor:unused Runs a mechanical audit — declared dependencies (`package.json`, `requirements.txt`/`pyproject.toml`) with no matching import anywhere in the project's source — and presents the findings. Never removes a dependency itself; the user decides. ## 1. Run the script ``` node "${CLAUDE_PLUGIN_ROOT}/scripts/unused-deps.js" <projectDir> ``` Default `<projectDir>` to the current working directory if the user didn't name one. The script: - reads declared deps for whichever ecosystems have a manifest present (node, python — the ecosystems razor's write-time import gate covers), - walks source files (skipping `node_modules`, `dist`, `.git`, and other generated/vendored dirs; test files ARE included — a test-only import still counts as used), - counts type-only imports and imports living in `.vue`/`.svelte`/`.astro`/`.mdx` source as real usage, - audits each workspace package of a monorepo against its own manifest and its own files, never the root's, - honours the ignore list the project already declares for its own resolver, so a dependency you already answered for is not asked about again, - normalizes declared names against import roots in the suppressing direction (e.g. `python-dotenv` counts as used when the code imports `dotenv`, `pillow` when it imports `PIL`) — normalization only ever hides a finding, never invents one; the blind spots that remain are named in the script's known-limits line, - splits misses into **three** buckets by how much could actually be pr...

Details

Author
V-Songbird
Repository
V-Songbird/razor
Created
2 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category