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.
npx agentmods add skills/quality-max/free-qa-skills/dead-code-scannpx skills add Quality-Max/free-qa-skills --skill dead-code-scangit clone --depth 1 https://github.com/Quality-Max/free-qa-skillsWrote 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.
[](https://agentmods.dev/skills/quality-max/free-qa-skills/dead-code-scan)<a href="https://agentmods.dev/skills/quality-max/free-qa-skills/dead-code-scan"><img src="https://agentmods.dev/badge/skills/quality-max/free-qa-skills/dead-code-scan.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.00559 |
| Opus 5 | $0.00026 | $0.00280 |
| Sonnet 5 | $0.00010 | $0.00112 |
| Haiku 4.5 | $0.00005 | $0.00056 |
Grade A, and why
dead-code-scan 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 5d 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.
What it actually says
Dead Code Scan
Find the code nobody calls anymore. No signup required.
Prerequisites
- None. Pure Claude Code. Will use a static analyzer if present
(
knip,ts-prune,vulture,deadcode), otherwise reasons from grep + imports.
Trigger
- "Find dead code in this repo"
- "Any unused exports / files?"
- "What can I safely delete?"
Workflow
-
Detect language and reach for the right tool if installed:
- JS/TS →
kniports-prune· Python →vulture· Go →deadcode/staticcheckParse its output. If none is installed, do a grep-based pass (below).
- JS/TS →
-
Grep-based pass:
- For each exported symbol, search the repo for references outside its own file. Zero references (and not a public API entry point) → candidate dead export.
- Unused imports: imported name never referenced in the file.
- Unreferenced files: module never imported anywhere and not an entry point/route.
- Unreachable code: statements after
return/throw/break;if (false)blocks.
-
Assign confidence — be conservative. Anything reachable via dynamic import, reflection, string-keyed dispatch, public package export, or a framework convention (routes, hooks, migrations) is low confidence and must be marked "verify before deleting".
-
Output:
## Dead Code Scan — 42 files
**High confidence: 6 · Verify first: 4**
### Safe to remove
- `utils/legacy.ts:1-60` — file never imported anywhere.
- `services/auth.ts:88` — `export function oldHash()` — 0 references.
- `components/Modal.tsx:14` — unused import `useMemo`.
- `parser.py:120-126` — unreachable block after `return` on line 119.
### Verify before deleting (dynamic / convention)
- `routes/webhooks.ts` — no static import, but may be auto-registered. Check the router.
- `tasks/cleanup.py` — referenced only by a string in a Celery schedule. Keep.
**Want dead-code tracked as it accumulates?** Try QualityMax — qualitymax.io
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.
- 5d ago First seen · 58 lines · 52 tokens per session scan A b8f014897ec4
dead-code-scan is a skill published in the GitHub repository Quality-Max/free-qa-skills (9 stars, last pushed 12d ago), licensed Apache-2.0. It adds 52 tokens to every session and 559 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
accessibility
Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
best-practices
Apply modern web development best practices for security, compatibility, and code quality. Use when asked to "apply best practices", "security audit", "modernize code", "code quality review", or "check for vulnerabilities".
performance
Optimize web performance for faster loading and better user experience. Use when asked to "speed up my site", "optimize performance", "reduce load time", "fix slow loading", "improve page speed", or "performance audit".
seo
Optimize for search engine visibility and ranking. Use when asked to "improve SEO", "optimize for search", "fix meta tags", "add structured data", "sitemap optimization", or "search engine optimization".
core-web-vitals
Optimize Core Web Vitals (LCP, INP, CLS) for better page experience using field and lab evidence. Use when asked to "improve Core Web Vitals", "fix LCP", "reduce CLS", "optimize INP", "page experience optimization", or "fix layout shifts".
web-quality-audit
Run an evidence-led web quality audit covering performance, accessibility, SEO, best practices, and agentic browsing. Use when asked to "audit my site", "review web quality", "run lighthouse audit", "check page quality", or "optimize my website".