Code smell
Find technical debt, verify it and fix it within a clear scope.
Use /code-smell in Claude Code or $code-smell in Codex. Read the skill.
Use it to clean up a feature, changes since a commit, or a whole repository. Name the directories or comparison point and the behavior to preserve. This workflow applies fixes.
Example prompts
How it works
The agent checks the codeβs current behavior, then looks for dead code, duplicated rules, unnecessary abstractions and state problems within the agreed scope. It investigates suspected issues before changing them.
It fixes confirmed problems, removes the code they replace and checks the callers affected by each change. The summary explains the meaningful edits and which checks passed or failed.
Works well with
- React guide for React state and rendering.
- TypeScript guide for types that retain information and reject invalid calls.
- Commit to record completed, checked changes.
See the source and adaptation notes.