CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/pr-size-guard

Measure pull request size from git numstat or a diff, skipping lock and generated files, and plan how to split big changes into reviewable slices. Use when the user asks if a PR is too big, wants a size check, or asks to split a PR.

Quality

97%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

splitting.mdreferences/

Turning slices into reviewable pull requests

The size slices tell you where the lines are. Use them as a starting point and order the parts so each one can be merged on its own.

Principles

  1. One purpose per PR: a refactor, a new module, its tests, its docs. Do not mix a rename with a behaviour change.
  2. Each part must build and pass its tests alone. Check this before opening it.
  3. Land the foundation first (renames, moved files, shared types, config), then the code that uses it, then docs and cosmetic changes last.
  4. Prefer a stack of small PRs over one big PR: each targets the branch of the previous one, or main once the previous one is merged.
  5. Generated files, lock files and snapshots are ignored for size, but explain them in the description.

Suggested order

OrderTypical contentWhy
1Mechanical moves, renames, formattingLarge but easy to skim; no logic to review
2Shared library, types, schema or configOthers depend on it
3Feature code, one area per PRThe actual review effort
4Tests for the area (or inside the area's PR when small)Keeps behaviour and proof together
5Docs, changelogNo risk

Procedure

  1. Run the measure with --suggest (and --depth 2 if a slice is oversized).
  2. Create one branch per slice from the base branch (or from the previous slice for a stack).
  3. Bring only that slice's paths onto the branch, for example git checkout my-big-branch -- src/api tests/api.
  4. Run the project's tests on the branch, commit with a message that names the slice's purpose, and re-measure.
  5. Open the PRs in order and link them in each description ("part 2 of 4, depends on part 1").
  6. Close or archive the original big branch only when every part has landed.

When not to split

A single mechanical change (rename across the repo, formatter run, dependency bump) is better as one PR, clearly labelled, than as many partial ones that leave the tree inconsistent.

SKILL.md

tile.json