Agent skill · Code Review & Quality

review-file-size

Find files approaching context limits and evaluate whether coupling-aware splits are worthwhile

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill review-file-size --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/analysis/review-file-size/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

Enter planning mode. Identify source files approaching the context load limit and evaluate whether they can be meaningfully split. Use parallelism where possible. ## Why This Matters Files over ~25k tokens cause problems: the Read tool must batch them, they bloat context for tasks that only need a small piece, and they're harder to reason about in a single pass. But splitting a file poorly — into two halves that share all the same globals and must always be loaded together — is worse than one large file. A split only helps if the pieces are **independently useful**. ## Step 1 — Measure file sizes Scan all `.ahk` files in `src/` and `tests/` (excluding `src/lib/`). For each file, estimate the token count — don't rely on line counts alone. AHK files with long DllCall signatures, inline strings, or dense logic have significantly more tokens per line than sparse files with short functions. **Approximate token estimation**: Read each file and estimate tokens. Characters ÷ 4 is a rough baseline, but AHK identifiers and camelCase inflate this. Aim for a reasonable estimate, not exact counts. **Threshold**: Only flag files that are **approaching trouble** — roughly 20k+ tokens. Files well

What's inside
Steps it walks through
  1. Why This Matters
  2. Step 1 — Measure file sizes
  3. Step 2 — Analyze internal coupling for flagged files
  4. Step 3 — Evaluate each candidate split
  5. Plan Format
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the review-file-size skill do?

Find files approaching context limits and evaluate whether coupling-aware splits are worthwhile

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill review-file-size --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going