/check-sizes — Audit File Sizes
Usage
/check-sizes [directory]
Description
Scans source files and reports any that exceed the file size limits defined
in CLAUDE.md. Defaults to scanning src/ and tests/.
Instructions
- •
Read CLAUDE.md to get the file size limits:
- •Interface/header: 150 lines
- •Implementation: 400 lines
- •Total file: 500 lines
- •Test file: 600 lines
- •
Scan the target directory (default:
src/andtests/). - •
For each file, count lines and compare against limits.
- •
Report results as a table:
code| File | Lines | Limit | Status | |------|-------|-------|--------| | src/foo.ts | 320 | 500 | OK | | src/bar.ts | 520 | 500 | OVER |
- •
For any files over the limit, suggest specific splitting strategies.
Model
haiku