This skill helps identify and safely remove dead code, orphaned artifacts, and redundant implementations in agent-maintained codebases.
npx playbooks add skill petekp/agent-skills --skill dead-code-sweep
The Dead Code Sweep skill is used for code review and helps identify and remove dead code, orphaned artifacts, and redundant implementations in codebases maintained by the AI coding agent. It enables developers to refine and optimize their code by eliminating unnecessary elements. A developer would use this skill when they want to clean up and improve the efficiency of their codebase, likely as part of regular maintenance or refactoring efforts.
Its 17-word system prompt specializes your agent in code review & quality with structured methodology and proven output formats. Install with one command to activate immediately.
This skill helps identify and safely remove dead code, orphaned artifacts, and redundant implementations in agent-maintained codebases.
Dead Code Sweep is a free code review & quality skill for AI coding agents. This skill helps identify and safely remove dead code, orphaned artifacts, and redundant implementations in agent-maintained codebases.. It provides a specialized system prompt that configures your agent with code review & quality expertise.
Run npx playbooks add skill petekp/agent-skills --skill dead-code-sweep in your terminal to install Dead Code Sweep into your Claude Code session. It works immediately after installation.
Dead Code Sweep is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.
Yes, Dead Code Sweep is completely free and open source. The full source is available on GitHub at https://github.com/petekp/agent-skills/tree/main/skills/dead-code-sweep. You only need a subscription to the AI agent you use it with.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.