Code smell

Find technical debt, verify it and fix it within a clear scope.

pnpm dlx skills add SarthakMishra/skills --skill code-smell

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

/code-smell Simplify src/checkout. Remove duplicated rules and unnecessary abstractions, and verify error handling without changing intended behavior.
$code-smell Clean up code smells introduced since origin/main, including affected callers. Verify each suspected issue before fixing it.

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.