AgentSkillsCN

Check Sizes

检查尺寸

SKILL.md

/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

  1. Read CLAUDE.md to get the file size limits:

    • Interface/header: 150 lines
    • Implementation: 400 lines
    • Total file: 500 lines
    • Test file: 600 lines
  2. Scan the target directory (default: src/ and tests/).

  3. For each file, count lines and compare against limits.

  4. Report results as a table:

    code
    | File | Lines | Limit | Status |
    |------|-------|-------|--------|
    | src/foo.ts | 320 | 500 | OK |
    | src/bar.ts | 520 | 500 | OVER |
    
  5. For any files over the limit, suggest specific splitting strategies.

Model

haiku