richgo/auto-reviewer/code-quality-dead-code

Claude Code and agent skill by richgo/auto-reviewer

Trust tier 3
  • community
Source check pending

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-code

SKILL.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
python
import os
import sys
import json
from datetime import datetime, timedelta
def get_timestamp():
return datetime.now().isoformat()
# os, sys, json, timedelta are unused

Expected finding: Low — Unused imports: os, sys, json, timedelta. Remove to reduce cognitive load.

Case 2: Unreachable code
javascript
function getStatus(code) {
if (code === 200) return 'ok';
if (code === 404) return 'not found';
return 'error';
console.log('Processing complete'); // unreachable
updateMetrics(code); // unreachable
}

Expected finding: Low — Unreachable code after return statement. Remove dead code.

Counter-Examples

Counter 1: All imports used
python
import json
from datetime import datetime
def serialize(data):
return json.dumps({"timestamp": datetime.now().isoformat(), "data": data})

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/richgo/auto-reviewer/code-quality-dead-code/badge)](https://verified-skill.com/skills/richgo/auto-reviewer/code-quality-dead-code)

Something wrong with this skill or its page? Tell us.