Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By xianix-teamv1.0.0MITIn 1 marketplace
Dead code detection for JS/TS repos using Knip — finds unused files, exports, types, enum members, and dependencies. Produces HTML, Markdown, and JSON reports with run history and delta tracking. Optional --fix opens a draft PR that safely removes dead code via an isolated git worktree — the user's working tree is never touched. Respects an existing knip.json/knip.ts config. Degrades gracefully on non-JS/TS repositories.
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
dead-code, knip, unused-exports, unused-dependencies, unused-files, tree-shaking, code-quality, cleanup ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Dead code detection for JS/TS repositories using Knip — finds unused files, exports, types, enum members, and dependencies, then reports them or removes them via a draft PR that never touches your working tree.
| Finding | Severity | Auto-fixable |
|---|---|---|
| Unused / unlisted / unresolved dependencies | MEDIUM | deps: yes · unlisted/unresolved: guide-only |
| Entirely-unused files | LOW | only with --include-files |
| Duplicate exports | LOW | guide-only |
| Unused exports | INFO | yes |
| Unused types / enum members | INFO | yes |
Dead code is a maintenance concern, not a vulnerability — severities cap at MEDIUM and the report tone is factual, not alarmist.
# Report-only scan (nothing in your repo is modified)
/deadcode
# Scan a specific path / stricter production analysis
/deadcode ./packages/web-app --production
# Preview what --fix would remove (no git operations)
/deadcode --fix-dry-run
# Open a draft PR removing unused exports, types, and dependencies
/deadcode --fix
# Also delete entirely-unused files (destructive — review carefully)
/deadcode --fix --include-files
--fix Works (and Why It's Safe)origin/<default-branch> — your current branch and uncommitted work are never touched.knip --fix --fix-type exports,types,dependencies runs inside the worktree.deadcode-fix/<timestamp>, pushed, and opened as a draft PR.Only one deadcode-fix/* PR is open at a time. File deletion (--allow-remove-files) is gated behind --include-files.
deadcode-reports/
├── <timestamp>/ # run history (append-only)
│ ├── deadcode-report.html
│ ├── deadcode-report.md
│ ├── deadcode-report.json
│ └── deadcode-evidence/ # raw knip output
└── latest/ # stable mirror of the newest run
Each run computes a delta vs the prior one: new / resolved / persisting findings.
.deadcode-ignoreSome "dead" code is intentional (public API surface, framework conventions Knip doesn't know). Add finding IDs or * globs to .deadcode-ignore in the repo root:
# Public API — consumed by external packages
DEAD-EXPORT-src/index.ts#createClient
DEAD-DEP-@types/*
Suppressed findings move to a collapsed audit section of the report.
If your repo has a knip.json, knip.ts, or a "knip" key in package.json, it is respected automatically — the scanner never overrides it. Pass --config <path> only to use an explicit alternative.
npx --yes knip; no global install needed)node_modules recommended — without it the scan runs but is marked partial (degraded module resolution)--fix: a git repo with an origin remote; gh (GitHub) or az (Azure DevOps) CLI to auto-open the PR (falls back to a pushed branch + compare URL)package.json the scan completes cleanly with skipped status. Monorepos/workspaces are handled natively by Knip.| Agent | Role |
|---|---|
orchestrator | Input validation, run-history setup, phase coordination |
knip-detector | Runs Knip, normalizes output into the canonical findings schema |
report-writer | Suppression, delta, HTML/MD/JSON reports |
fix-writer | Worktree + knip --fix + draft PR (only with --fix) |
npx claudepluginhub xianix-team/plugins-official --plugin deadcode-scannerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground