kensaurus

Deadcode — Development skill for Claude Code

Development community

Find dead code with a configured Knip baseline, then delete it by category behind a ratchet.

How to install Deadcode

Installs to ~/.claude/skills/kensaurus-skills-deadcode/SKILL.md

Terminal
mkdir -p ~/.claude/skills/kensaurus-skills-deadcode && curl -fsSL https://raw.githubusercontent.com/kensaurus/skills/HEAD/commands/deadcode.md -o ~/.claude/skills/kensaurus-skills-deadcode/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Deadcode does


description: "Find dead code with a configured Knip baseline, then delete it by category behind a ratchet" argument-hint: "[optional path, workspace, or 'apply' to execute an already-approved plan]" disable-model-invocation: true

Dead Code

Two skills, one loop. Default to the audit unless an approved `plan-dead-code.md` already exists.

  1. plan-dead-code — author knip.json first, resolve configuration hints, baseline both --production and default runs, then count the

Alternatives in Development

  • Docmancer — Find out what your coding agents already know 121 ★
  • Add Category — add-category 105 ★
  • Wp Phpstan Review — WordPress PHPStan review - validates phpstan config, baseline discipline, CI wiring, and WordPress-specific st 76 ★

Full documentation available on GitHub

View Source Repository