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 skills add znlgis/my-opencode-deepseek-config --skill remove-deadcodegit clone --depth 1 https://github.com/znlgis/my-opencode-deepseek-configWrote 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/znlgis/my-opencode-deepseek-config/remove-deadcode)<a href="https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/remove-deadcode"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/remove-deadcode/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.
<a href="https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/remove-deadcode"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/remove-deadcode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00092 | $0.00827 |
| Opus 5.5 | $0.00037 | $0.00331 |
| Sonnet 5.5 | $0.00018 | $0.00165 |
| Haiku 4.5 | $0.00009 | $0.00083 |
Grade A, and why
remove-deadcode 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Remove Dead Code
Delete code that is provably unreferenced — without breaking anything. The rule
is simple: prove it's dead before you delete it. A confident-looking unused
symbol is often reached through a barrel export, a test, reflection, or a
framework entry point. Verify first. For behavior-preserving complexity
reduction (simplify without deleting), use the simplify skill.
Phase 1: Scan (parallel)
Fire independent detectors at once and collect candidates:
- Compiler / linter unused flags — e.g. TypeScript
tsc --noUnusedLocals --noUnusedParameters, ESLintno-unused-vars, Godeadcode/staticcheck, Pythonvulture, Rustcargo +nightly udeps/ dead-code warnings. - Orphaned files — source files not imported by any other file.
- Unused exports — exported symbols never imported elsewhere.
- LSP references — "find all references" returning only the definition.
When the codebase is large and your agent can spawn subagents, delegate
broad searches to explore in parallel; otherwise (e.g. deep-worker and
solo deny delegation) run the same searches inline with glob/grep/LSP.
Keep each search scoped to one question.
Phase 2: Verify each candidate (before deleting)
For every candidate, confirm it is genuinely dead. Discard it (keep the code) if any of these is true:
- It is re-exported through a barrel/index file that external code imports.
- It is referenced by tests, fixtures, or snapshots.
- It is a framework/tooling entry point (route handler, CLI command, migration,
plugin hook,
main, serializer) discovered by convention, not import. - It is reached by reflection, dynamic import, string key, or DI container.
- It is part of a published public API (
@public, exported package surface).
Re-run "find references" (LSP) immediately before each edit — the graph may have changed as you removed earlier items.
Phase 3: Delete in conflict-free batches
- Group removals by file: everything in the same file goes in the same batch, so parallel edits never collide.
- Remove the symbol/file and its now-unused imports.
- Stage precisely:
git add <specific files>— nevergit add -A.
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.
- yesterday Changed · +2 lines d678168364d4
- 2mo ago Changed · +1 lines 8302a924c0ce
- 3mo ago First seen · 77 lines · 92 tokens per session scan A 20e7b123d8d9
remove-deadcode is a skill published in the GitHub repository znlgis/my-opencode-deepseek-config (66 stars, last pushed yesterday), licensed MIT. It adds 92 tokens to every session and 827 once invoked, about $0.0004 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-30.
remove-deadcode compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| remove-deadcodeznlgis/my-opencode-deepseek-config | Skill | 66 | yesterday | MIT | A | 92 | Claude Code, Codex |
| archify-prtt-a1i/archify | Skill | 104k | today | Apache-2.0 | A | 98 | Claude Code, Codex |
| prYeachan-Heo/oh-my-claudecode | Skill | 41k | yesterday | MIT | A | 47 | Claude Code |
| archify-reviewtt-a1i/archify | Skill | 104k | today | Apache-2.0 | A | 42 | Claude Code, Codex |
| code-breaking-changesopeninterpreter/openinterpreter | Skill | 69k | today | Apache-2.0 | A | 7 | Codex |
| interrogateYeachan-Heo/oh-my-claudecode | Skill | 41k | yesterday | MIT | A | 47 | Claude Code |
| plannotatorbacknotprop/plannotator | Skill | 17k | today | Apache-2.0 | B | 105 | Claude Code, Codex |