chunk-pr

Solid

Analyzes a large pull request (or branch, or commit range) and proposes a sequence of smaller, logically-grouped, merge-safe PRs following review best practices — dependency first, one concern per PR, mergeable in order. Suggests a plan; the user approves. On approval, creates chunk branches, cherry-picks commits, pushes, opens draft PRs, and links them to the parent Linear issue. Use when a PR is too big to review, when a branch has accumulated unrelated changes, when reviewers ask "can you split this up?", or when planning how to ship a large feature incrementally.

Code & Development 4 stars 0 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Chunk PR Break one big PR into a sequence of small, logical, merge-safe PRs. Suggest, don't decide — the user approves every chunk and every destructive action. ## Preferences _Read `~/.claude/skills/chunk-pr/preferences.md` using the Read tool. If not found, no preferences are set._ ## Context _On startup, use Bash to detect: current branch (`git branch --show-current`), base upstream, commits ahead, total lines changed (`git diff {base}...HEAD --shortstat`), and repo (`gh repo view --json nameWithOwner -q .nameWithOwner`). Skip any that fail. Do NOT run destructive commands at this stage._ ## Command routing Check `$ARGUMENTS`: - **`help`** → display help then stop - **`config`** → interactive setup then stop - **`reset`** → delete `~/.claude/skills/chunk-pr/preferences.md`, confirm, stop - **anything else** (including empty) → run the chunking workflow ### Flags (parsed from `$ARGUMENTS`) - **`--base <branch>`** — override target base (default: auto-detect or preference) - **`--max-lines <N>`** — target max lines per chunk (default: 400 or preference) - **`--strategy <kind>`** — `conservative` (more/smaller), `balanced` (default), `aggressive` (fewer/larger) - **`--dry-run`** / **`--plan-only`** — stop after presenting the plan; don't create branches or PRs - **`--draft`** — open chunks as draft PRs (default) - **`--ready`** — open chunks as ready-for-review (overrides `--draft`) - **`--no-push`** — create local branches only, skip push/PR creation - **`--no-li...

Details

Author
mostafa-drz
Repository
mostafa-drz/claude-skills
Created
7 months ago
Last Updated
yesterday
Language
HTML
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

create-pr

Generates a short, narrative GitHub pull request description (≤ 25 lines, hard ceiling 40), pushes the branch, opens the PR as a draft, then runs review-loop (pr-reviewer → implement-suggestion → polish simplify, up to 5 iterations) until every review thread is resolved via fix or reply. Scale down with --no-review, --no-simplify, --quick (light mechanical pass only), or --no-quality (skip the loop). A post-push external-bot feedback loop runs by default (--no-feedback to skip). On a UI diff, injects a preview verification spec by default (--no-preview-spec to skip). With --split, breaks the branch diff into 2–4 focused, dependency-ordered draft PRs after user approval. Escalates judgment-required CI failures via /confidence rather than guessing. Invoke with /create-pr or /create-pr --split.

13 Updated today
mthines
AI & Automation Solid

create-pr

Creates a well-structured pull request with product-focused summary, change highlights, and test steps. Auto-detects base branch, links Linear issues from branch name, and pushes if needed. Use when ready to open a PR or when asking to create a pull request.

4 Updated yesterday
mostafa-drz
Code & Development Listed

pr

Open a pull request for the current branch, or update the one already linked to it — with a title and description written from the actual diff and the repository's own template. Checks first that the branch reads as one coherent change, and asks before opening a pull request that is really two. Never merges, never force-pushes, never commits on your behalf.

2 Updated 2 weeks ago
grinchenkoedu