# Kill Dead Code

> Kill Dead Code is an Agent Skill for development published in the Archive228/loopkit repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Find and remove unreachable/unused code safely. Use during cleanup or before a refactor.

- Skill name: `kill-dead-code`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/Archive228/loopkit/blob/HEAD/skills/kill-dead-code/SKILL.md
- Repository: Archive228/loopkit (638 GitHub stars when collected)

## SKILL.md

# Kill Dead Code
1. **Prove it's dead** — no references (grep the symbol across the repo, including dynamic/string usage and tests). Unused export ≠ dead if it's a public API.
2. Check it's not feature-flagged off (dead today, alive when the flag flips).
3. Delete it AND its now-orphaned tests, imports, and config.
4. Run the full suite + a build. Dead code removal should change behavior in exactly zero ways.
Bias to delete: every line someone has to read is a cost. But never delete what you can't prove is unreachable — say "I think X is unused, confirm?" instead of guessing.

---

Source: https://www.openparable.com/skill/development/kill-dead-code (OpenParable). Cite the canonical URL above.
