description: Clean the codebase or current working task in focus via Prettier, Import Sorter, ESLint, and TypeScript Compiler
agent: build
model: anthropic/claude-3-5-sonnet-20241022
Code Quality Cleanup
Prepares code for review and builds by cleaning up the specified files or directories. If no arguments are provided, cleans the current working task currently in focus.
What This Command Does
- Remove Debug Code: Strips out console.log, debugger statements, and temporary debugging code
- Format Code: Runs Prettier to ensure consistent formatting if in the codebase
- Organize Imports: Sorts and removes unused imports
- Fix Linting Issues: Resolves ESLint errors and warnings
- Type Check: Validates TypeScript types and fixes obvious type issues
- Condense Comments: Simplifies overly verbose comments while preserving important documentation
Usage