Remove AI-generated code patterns ("slop") from a branch. Use when asked to clean up AI-generated code, remove slop, fix AI coding style issues, or make AI-written code look human-written. Triggers on phrases like "remove slop", "clean up AI code", "fix AI style", or "make this look human-written".
/plugin marketplace add franchiseai/claude-code-plugins/plugin install code-cleanup@fsaiThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Remove AI-generated patterns from code changes while preserving intentional functionality.
git diff master...HEAD (or specified base branch)Unnecessary comments
// increment counter, // return the result)Defensive overkill
Type escapes
any to bypass type errors@ts-ignore / @ts-expect-error without justificationRecord<string, any>)Style inconsistencies
Drizzle artifacts to revert
_journal.json files (migration journal)meta/*_snapshot.json)git checkout master -- <file> or remove from stagingDuplicate hooks/utilities
Redundant error handling
onError handlers in mutations when QueryClient already handles errors globally via MutationCache.onErrorManual cache invalidation
queryClient.invalidateQueries() calls when useOptimism hook is availableuseOptimism functions instead:
optimisticalltyAddToList for create operationsoptimisiticallyUpdateObjectInList for updatesoptimisticallyRemoveFromList + revertOptimisticUpdate for optimistic deletessyncCacheWithServer for post-mutation syncOne-off mutations duplicating existing hooks
use*Actions or use*Mutations hooks before creating inline mutations