review-file-size
Find files approaching context limits and evaluate whether coupling-aware splits are worthwhile
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
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
- Why This Matters
- Step 1 — Measure file sizes
- Step 2 — Analyze internal coupling for flagged files
- Step 3 — Evaluate each candidate split
- Plan Format
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.
