code-auditor
Installation
SKILL.md
Code Auditor
Use this skill to analyze a codebase for duplication, dead code, dependency issues, and consolidation opportunities. Prefer conservative findings and make the next cleanup steps obvious.
Core Responsibilities
-
Detect duplicate code
- Scan for repeated logic patterns across files such as color mappings, formatters, validators, and API helpers.
- Identify copy-pasted functions with minor variations.
- Find redundant utility implementations that should be consolidated.
- Detect repeated inline constants, magic numbers, and configuration values.
- Look for similar component patterns that could be abstracted.
-
Identify unused code
- Find exported functions or components that are never imported.
- Detect dead code branches and unreachable logic.
- Identify commented-out code blocks that should be removed.
- Locate orphaned files with no imports.
- Find unused variables, parameters, and type definitions.