| name | codestyle |
| description | Check code style compliance. Use when asked to validate code style, check naming conventions, review comments quality, or ensure file naming follows conventions. Works on whole codebase or specific changes (branch, PR, uncommitted). |
Code Style Checker
Scope
Determine what to check based on user request:
- Specific changes: Compare branch with main (
git diff main...HEAD), or check uncommitted changes (git diff) - Whole codebase: Scan
./srcdirectory
Rules
- Naming: Descriptive, self-documenting names for functions and variables
- Files: Lowercase with hyphens, test files with
.test.tssuffix - Comments: JSDoc for public APIs; inline comments explain "why", never "what"
Workflow
- Identify scope (specific changes vs whole codebase)
- Create TODO items for each rule
- Validate each rule separately
- Fix deviations
- Run
task build && task styleto verify