ln-626-dead-code-auditor

Solid

Checks unreachable code, unused imports/variables/functions, commented-out code, deprecated patterns. Use when auditing dead code.

AI & Automation 480 stars 69 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

> **Paths:** File paths (`shared/`, `references/`, `../ln-*`) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If `shared/` is missing, fetch files via WebFetch from `https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}`. # Dead Code Auditor (L3 Worker) **Type:** L3 Worker Specialized worker auditing unused and unreachable code. ## Purpose & Scope - Audit **dead code** (Category 9: Low Priority) - Find unused imports, variables, functions, commented-out code - Calculate compliance score (X/10) ## Inputs **MANDATORY READ:** Load `shared/references/audit_worker_core_contract.md`. Receives `contextStore` with tech stack, codebase root, output_dir. ## Workflow **MANDATORY READ:** Load `shared/references/two_layer_detection.md` for detection methodology. 1) Parse context + output_dir 2) Run dead code detection (Layer 1: linters, grep) - **Graph-capable projects:** For JavaScript, TypeScript/TSX, Python, C#, and PHP, use `index_project` then `audit_workspace(verbosity="full")` as primary detection for unused exports when graph indexing is available. - Keep grep/linter fallback for unsupported languages, graph-unavailable runs, and checks outside export liveness. 3) Analyze context per candidate (Layer 2): - Unused functions: used via dynamic import/reflection? Exported in public API? Used in other packages (monorepo)? - Commented code: TODO with context...

Details

Author
levnikolaevich
Repository
levnikolaevich/claude-code-skills
Created
7 months ago
Last Updated
3 days ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category