richgo/auto-reviewer/code-quality-dead-code
Claude Code and agent skill by richgo/auto-reviewer
- community
Checking that the SKILL.md file is still in the repository.
Dead Code / Unused Imports. Use this skill whenever diffs may introduce code-quality issues on all, especially in all. Actively look for: Unreachable code, unused variables, unused imports, or commented-out code blocks left in the codebase. Increases cognitive load and... and report findings with low severity expectations and actionable fixes.
Install
npx vskill@latest install richgo/auto-reviewer/code-quality-dead-codeSKILL.md
The same SKILL.md was published earlier as richgo/auto-reviewer/code-quality-dead-code.
Dead Code / Unused Imports
Task Metadata
- Category:
code-quality - Severity:
low - Platforms:
all - Languages:
all
Purpose
Unreachable code, unused variables, unused imports, or commented-out code blocks left in the codebase. Increases cognitive load and maintenance burden.
Detection Heuristics
- Imported modules/functions not referenced in the file
- Variables assigned but never read
- Functions defined but never called (within PR scope)
- Code after unconditional return/throw/break
- Large commented-out code blocks (>5 lines)
Eval Cases
Case 1: Unused imports
Expected finding: Low — Unused imports: os, sys, json, timedelta. Remove to reduce cognitive load.
Case 2: Unreachable code
Expected finding: Low — Unreachable code after return statement. Remove dead code.
Counter-Examples
Counter 1: All imports used
Why it's correct: Both imports are used in the function.
Binary Eval Assertions
- [ ] Detects unused imports in eval case 1
- [ ] Detects unreachable code in eval case 2
- [ ] Does NOT flag counter-example 1
- [ ] Finding lists specific unused items
- [ ] Severity assigned as low
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/code-quality-dead-code/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/richgo/auto-reviewer/code-quality-dead-code)