Deadcode Plan — Security skill for Claude Code
Dead-code audit — configured Knip baseline plus ratchet plan, delete nothing until approved.
How to install Deadcode Plan
Installs to ~/.claude/skills/kensaurus-skills-deadcode-plan/SKILL.md
mkdir -p ~/.claude/skills/kensaurus-skills-deadcode-plan && curl -fsSL https://raw.githubusercontent.com/kensaurus/skills/HEAD/commands/deadcode-plan.md -o ~/.claude/skills/kensaurus-skills-deadcode-plan/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Deadcode Plan does
description: "Dead-code audit — configured Knip baseline plus ratchet plan, delete nothing until approved" argument-hint: "[path or workspace]" disable-model-invocation: true effort: high
Dead Code Plan
Run the **`plan-dead-code`** skill: author `knip.json` before trusting any output, resolve every configuration hint, baseline both `--production` and default runs, then count the surfaces Knip cannot see — unused locals, duplication, debug residue, suppression debt, orphan assets, env
Alternatives in Security
- Reflexion — Audit and optimize the .claude/ ecosystem — skills, hooks, guides, patterns, agents, and settings — for qualit 224 ★
- Tool Approval Security Filter — You are a security filter for Claude Code tool execution 163 ★
- UX A11y — WCAG 2.1 AA accessibility audit plus common-courtesy checks beyond the spec 66 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Aeo Plan
Answer-engine / AEO & GEO citation-readiness audit — plan only, no edits until approved
Aso Plan
App Store / Play listing ASO audit — plan only, no metadata or screenshot edits until approved
Audit Deadcode
Comprehensive dead code audit — finds all unused files, functions, classes, and variables by walking the call
Dx Report
Generate a DX report (format/lint/docs/types/tests/build/deps/audit/knip), summarize results, and optionally c
Levelup
Raise the project's gold level honestly — gold-audit → remediation wave → close each gap for real → re-audit b
Audit Cron Arc
Meta-analyze the effectiveness of a /loop arc — per-iteration metrics, LOC delta trend, saturation detection,
Related Agents
Dead Code
Confirms what nothing reaches — unreferenced exports, files, and dependencies from the tool receipts, plus wha
Tp Dead Code Finder
Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports",
Deadcode Reaper
Use this agent to clean up after code changes — removing the imports, helpers, exports, and files that THIS se