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-fix","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.