Skip to content
Agent Orchestration
Skill

/kill-dead-code

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

BOOST
From plugin
loopkit
75553 skills1 agent4 commands2 MCP
Install
$ npx -y skills add Archive228/loopkit --skill kill-dead-code --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/kill-dead-code

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

kill-dead-code.SKILL.md
name: kill-dead-code
description: Find and remove unreachable/unused code safely. Use during cleanup or before a refactor.
when_to_use: cleanup, "remove unused", before refactoring, dead branches

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.

Ships withloopkit

33 battle-tested skills + minimal .claude harness for any coding agent (Claude Code, Cursor, Codex, Gemini CLI).

Get the whole plugin

Other skills on loopkit.