| name | sniff |
| description | Runs structured code-smell analysis and maps findings to standard smell categories. Use when prioritizing maintainability risks and refactors. |
| user-invocable | true |
| disable-model-invocation | false |
Sniff
Core Contract
Run evidence-based code-smell review and map findings to reference smell IDs.
Use ./smells/index.json plus ./smells/<category>/<smell-id>.md.
Follow CLAUDE.md / AGENTS.md on conflict.
Required Inputs
- Review scope.
- Language/framework context.
- Strictness level.
- Reference-only mode (default true).
Workflow
- Frame review goal and choose 2-4 priority smell categories.
- Load the reference smell hierarchy and resolve IDs.
- Produce evidence-backed findings with related refactor suggestions.
- Rank severity (
high/medium/low) and include one intentional non-finding.
- Verify every finding maps to a reference ID and concrete code evidence.
Stop and ask before introducing custom smell labels or proposing out-of-scope architecture changes.
Safety Rules
- Never label something a smell without evidence in the reviewed code.
- Never demand broad refactors when a localized fix addresses the risk.
- Never force category coverage; report only smells that appear.
- Never invent smell IDs outside
./smells/index.json without user approval.
Output Style
Report scope, evaluated categories/smells, grouped findings with evidence and related refactors, severity-ranked top actions, and one intentional non-finding.