with one click
ai-smell-review
Remove AI-generated code smells. Make code look human-written.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Remove AI-generated code smells. Make code look human-written.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | ai-smell-review |
| description | Remove AI-generated code smells. Make code look human-written. |
Hunt and remove AI-generated code patterns. Make code look like a skilled human wrote it.
No arguments? Describe this skill and stop. Do not execute.
mkdir -p .claude && echo '{"skill":"ai-smell-review","started":"'$(date -Iseconds)'"}' > .claude/active-workflow.json
createUserService() that just returns new UserService() → delete factoryif (x !== undefined && x !== null && x) → just if (x)// increment counter above counter++ → delete// loop through users above for (user of users) → delete// return the result above return result → deleteoptions?: { verbose?: boolean } never set to true → removeResult<T, E> when you just throw → throwResponse<T> that's always { data: T } → just return TMaybe<T> when null works fine → use nulluserDataObjectInstance → userisCurrentlyProcessingRequest → processinggetAllUsersFromDatabase → getUsersutils/helpers/formatters/stringFormatters.ts → flatten## AI Smell Removal: [target]
SMELLS_FOUND:
- [file:line] [smell type]: [description]
SMELLS_FIXED:
- [file:line] [smell type] → [what was done]
LINES_REMOVED: N
ABSTRACTIONS_INLINED: N
COMMENTS_DELETED: N
TESTS_PASS: yes
AI_SMELL_REVIEW_COMPLETE
Known pitfalls are maintained in
canon/pitfalls/SKILL.md. If you discover a new recurring pattern, note it in the report output — it can be added to the pitfalls canon in a future release.
After fixing smells:
Your turn ends here. Output AI_SMELL_REVIEW_COMPLETE and STOP.
Audit a project against a canon's rules and checklist. Read-only — produces prioritized report without fixing. Works with any canon (nextjs, sql, typescript, etc.).
Lens home base - status, help, and setup
Plan and build a new feature with quality gates.
Simple changes done right. Make the change, clean up after yourself, report what happened.
Review against canons + quality gate, fix findings, verify. Claude-native — no external models.
Plan and improve existing code with quality gates.