deps-unused

deps-unused is a skill for Claude Code from berkcangumusisik/claude-code-practices. It costs 18 tokens per session (269 once invoked), scanned A, original, MIT.

A dependency-checking guide that finds packages listed in package.json but apparently unused in the codebase. It also checks configuration files and other cases where automated tools can give false positives.

In plain words
What is it for?
Use it to inspect JavaScript or TypeScript projects, classify dependencies as safe to remove, keep, or investigate, and prepare removal commands.
Why use it?
It helps reduce unnecessary project dependencies without accidentally removing packages needed by builds, tests, types, or configuration.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to inspect JavaScript or TypeScript projects, classify dependencies as safe to remove, keep, or investigate, and prepare removal commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/berkcangumusisik/claude-code-practices/deps-unused
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add berkcangumusisik/claude-code-practices --skill deps-unused
Clone the repo
git clone --depth 1 https://github.com/berkcangumusisik/claude-code-practices

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deps-unused

README.md
[![agentmods](https://agentmods.dev/badge/skills/berkcangumusisik/claude-code-practices/deps-unused/github.svg)](https://agentmods.dev/skills/berkcangumusisik/claude-code-practices/deps-unused)
Your own site
<a href="https://agentmods.dev/skills/berkcangumusisik/claude-code-practices/deps-unused"><img src="https://agentmods.dev/badge/skills/berkcangumusisik/claude-code-practices/deps-unused/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deps-unused

Your own site · 80×15
<a href="https://agentmods.dev/skills/berkcangumusisik/claude-code-practices/deps-unused"><img src="https://agentmods.dev/badge/skills/berkcangumusisik/claude-code-practices/deps-unused.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 269 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00269
Opus 5.5 $0.00007 $0.00108
Sonnet 5.5 $0.00004 $0.00054
Haiku 4.5 $0.00002 $0.00027

Measured 3mo ago against content hash 4879bcec1e4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deps-unused scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/deps-unused/SKILL.md · 36 lines

What it actually says

Find Unused Dependencies

  1. Run automated analysis:
npx depcheck 2>/dev/null | head -40
npx unimported 2>/dev/null | head -40
  1. For each flagged package, manually verify:
grep -r "require\|from\|import" src/ --include="*.ts" --include="*.js" | grep "package-name" | head -5
  1. Watch for false positives:

    • Packages used in config files (.eslintrc, jest.config)
    • @types/* packages (used by TypeScript compiler)
    • Peer dependencies (required by other packages)
    • Dev tools used in scripts
  2. Classify each:

    • Safe to remove: confirmed unused, no config reference
    • Keep: used in config or indirectly
    • Investigate: uncertain
  3. For safe removals, show the npm uninstall commands. Ask for confirmation before running.

  4. Estimate bundle size savings.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 36 lines · 18 tokens per session scan A 4879bcec1e4b

Subscribe to this mod's changes

deps-unused is a skill published in the GitHub repository berkcangumusisik/claude-code-practices (11 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 269 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

deps-unused compared with skills from other repositories

deps-unused next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deps-unusedberkcangumusisik/claude-code-practicesSkill117mo agoMITA18Claude Code
monitoring-observabilitytravisjneuman/.claudeSkill1152d agoMITA48Claude Code
debug-systematictravisjneuman/.claudeSkill1152d agoMITA33Claude Code
agent-debugging-specialisttravisjneuman/.claudeSkill1152d agoMITA12Claude Code
agent-refactoring-specialisttravisjneuman/.claudeSkill1152d agoMITA12Claude Code
review-rfcnurettincoban/ai-prd-workflowSkill31713d agoMITA32Claude Code
agent-cpp-experttravisjneuman/.claudeSkill1152d agoMITA88Claude Code