split-pull-request-rule

split-pull-request-rule is a skill for Claude Code, Codex from eaglesakura/agent-skills. It costs 183 tokens per session (2,756 once invoked), scanned A, original, MIT.

A planning guide for deciding how to divide a large Pull Request into reviewable pieces. It proposes the order, dependencies, and branch names but does not create branches or Pull Requests.

In plain words
What is it for?
Use it to design independent or stacked PRs, separate interfaces from implementations when appropriate, keep an implementation with its unit tests, and organize UI-layer changes.
Why use it?
It makes the boundaries between changes explicit before any Git work begins. Reviewers can then examine smaller related changes in a sensible order.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/eaglesakura/agent-skills/split-pull-request-rule
Any agent
npx skills add eaglesakura/agent-skills --skill split-pull-request-rule
Clone the repo
git clone --depth 1 https://github.com/eaglesakura/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for split-pull-request-rule

README.md
[![agentmods](https://agentmods.dev/badge/skills/eaglesakura/agent-skills/split-pull-request-rule.svg)](https://agentmods.dev/skills/eaglesakura/agent-skills/split-pull-request-rule)
Your own site
<a href="https://agentmods.dev/skills/eaglesakura/agent-skills/split-pull-request-rule"><img src="https://agentmods.dev/badge/skills/eaglesakura/agent-skills/split-pull-request-rule.svg" alt="Measured on agentmods" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00183 $0.02756
Opus 5 $0.00092 $0.01378
Sonnet 5 $0.00037 $0.00551
Haiku 4.5 $0.00018 $0.00276

Measured 3d ago against content hash 832e12a5374e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

split-pull-request-rule scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/ohitorisama/.apm/skills/split-pull-request-rule/SKILL.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Split Pull Request Rule

大きな変更を、ジュニアエンジニアでも 10 分以内に確認できる Pull Request 群へ分ける。 本 SKILL は分割方針・ブランチ名・依存関係の提案までを担う。実際のブランチ作成・コミット・gh pr create は行わない。

いつ使うか

  • ユーザーが PR 分割を指示したとき
  • 差分・計画・実装が 1 PR ではレビュー負荷が高そうで、分割を検討すべきとき
  • Stacked PR(依存する一連の PR)として出す前提で、順序とブロッキングを整理したいとき
  • /split-to-prs など実行系と組み合わせ、先に「どう分けるか」を固めるとき

いつ使わないか

  • 単純に 1 本の PR を作成・更新するだけのとき(本文起草・gh pr create のみ)
  • ブランチ命名規則だけが論点のとき(分割が不要な場合)
  • コード実装・バグ修正そのもので、PR 境界の設計が不要なとき

役割分担

役割 担当
分割方針・PR 一覧・依存グラフ・ブランチ名案 本 SKILL
ブランチ作成・コミット分割・PR 作成の実行 /split-to-prs 等の実行系(ユーザー承認後)

分割により元ブランチのコミット履歴が失われてもよい。履歴保全よりレビュー粒度を優先する。

分割方針(優先度順)

  1. 確認時間: 1 PR は、想定レビュアー(ジュニアエンジニア)が 10 分以内 に確認できる粒度にする(最優先)
  2. 低レイヤー → 高レイヤー: 独立した関連機能ごとに PR を切り、下位からマージできる順にする
  3. 完全独立機能: 本実装の本筋と論理的に独立している変更は別 PR にする(先行または並行。blocking が無ければ non-blocking)
    • 例: 共通モジュールへの特定の共通 UI 追加、新しい共通モジュールの追加、実装に先立つ既存テストのカバレッジ増加
  4. インターフェースと実装: 分離しているなら別 PR。順序はインターフェース → 実装(+その Unit Test)
  5. 実装と Unit Test: 紐づく実装と Unit Test は同一 PR
  6. 単一関心への紐付け: ある機能(クラス・関数など)にだけ属する変更は同一 PR でよい
  7. 限定スコープ: private 等、呼び出し範囲が狭いものは呼び出し元と同一 PR
  8. UI 境界: 画面実装があり MVVM 等で境界がある場合は、Model+ViewModel → View のように境界で分割する(同等の分離があれば同じ考え方)
  9. アーキテクチャレイヤー: レイヤーが分かれているならレイヤーごとに分割する
  10. テスト前提データ: テスト用・ダミーデータの追加など、「あるテストの前提」かつ独立レビューすべきものは別 PR
  11. 前提整備: 「本実装の前提として既存コードを先に直す」類は先行 PR に切り出す

言語・フレームワーク固有の用語に依存せず、リポジトリの実際の境界(パッケージ、モジュール、レイヤー、公開 API)に当てはめて判断する。

ブランチ名

分割後の各ブランチは次の形式にする。

{元のブランチ名}-{通し番号}-{内容}
  • {元のブランチ名}: 分割元の作業ブランチ名をそのまま使う
  • {通し番号}: 01, 02, … のようにゼロ埋め 2 桁を推奨(推奨マージ順と揃える)
  • {内容}: その PR の関心が分かる短い英数字・ハイフン(例: add-auth-interface, impl-auth, ui-login

例: 元ブランチが feature/id/42/add-login のとき

  • feature/id/42/add-login-01-auth-interface
  • feature/id/42/add-login-02-auth-impl
  • feature/id/42/add-login-03-login-view

依存関係(Stacked PR 前提)

Stacked PR が有効であることを前提に、PR 間の依存を次で区別する。

  • blocking(ブロッキング): 後続 PR のレビュー・マージ前に、先行 PR のマージ(または同等の取り込み)が必要
  • non-blocking(非ブロッキング): 並行レビュー可能。マージ順の好みやコンフリクト回避のための順序付けはあるが、論理的には独立

Read the full file on GitHub · 187 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 187 lines · 183 tokens per session scan A 832e12a5374e

Subscribe to this mod's changes

split-pull-request-rule is a skill published in the GitHub repository eaglesakura/agent-skills (2 stars, last pushed 9d ago), licensed MIT. It adds 183 tokens to every session and 2,756 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens