Skip to content
Back to skills

Pr Quantity Control

ASecurity

Use BEFORE creating a new PR. Checks existing open PRs in same scope; stops at ≥3; rebase/cherry-pick from closed PRs instead of duplicating.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 26, 2026
testinggobashdocumentation

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add jleechanorg/jleechan-skills --skill pr-quantity-control --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr Quantity Control?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pr Quantity Control
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jleechanorg-pr-quantity-control/badge)](https://www.skillsdirectory.com/skills/jleechanorg-pr-quantity-control)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pr-quantity-control
description: "Use BEFORE creating a new PR. Checks existing open PRs in same scope; stops at ≥3; rebase/cherry-pick from closed PRs instead of duplicating."
---

# PR quantity control — iterate, don't proliferate


Before creating any new PR branch, check for existing open PRs in the same scope:
```bash
gh pr list --state open --search "<scope> in:title" --json number --jq length
```

**Rules:**
- If **≥3 open PRs** exist for the same feature scope: **STOP** and consolidate. Update the oldest open PR instead of creating a new one.
- **Hard Stack & Split Ceiling**: Even when a user explicitly asks to `/split` a large feature, cap decomposition at **`≤ 3–5` coarse vertical subsystem PRs** (and an absolute repo-wide ceiling of `< 10` open stacked PRs total). Never create dozens of micro-PRs (`split/<feature>/*`) or split by arbitrary line-count targets (e.g., 100, 150, or 300–500 lines).
- If a prior PR was closed for the same logical goal: rebase/cherry-pick from it, don't start from scratch.
- If you are about to create a PR with a title very similar to an existing open or recently-closed PR, that is a **duplicate** — work on the existing one.
- **Keep unit/integration tests and docs inside the same PR as the production code they verify**: only pure standalone documentation/tooling changes unrelated to an active feature belong in a separate non-prod PR.

**Efficiency targets** (run `/efficiency` to check):
- Merge rate: >60%
- LOC efficiency (net production LOC on main / total LOC written): >15%
- Open PR queue per feature scope: ≤3 (explicit `/split` ceiling: ≤3–5 coarse vertical PRs; repo-wide stacked PR ceiling: <10)

**Why**: 7-day audit (2026-04-25) showed 3.3% LOC efficiency, 49% merge rate on ZFC PRs. Same change attempted 2-3 times across different PRs. Quality gates × uncontrolled PR volume = review bottleneck → abandonment → more PRs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.