chained-pr
하는 일
이 스킬은 AI가 큰 코드 변경을 여러 개의 작은 풀 리퀘스트로 나누도록 돕습니다. 한 번에 읽기에는 너무 큰 변경을 가진 개발자를 위한 스킬입니다.
사용하는 경우
- ✓계획한 풀 리퀘스트가 약 400줄 이상 바뀔 것 같을 때.
- ✓검토에 집중하도록 쌓인 풀 리퀘스트나 검토 조각을 원할 때.
- ✓기능을 여러 부분으로 나눠 병합해야 하고 추적용 풀 리퀘스트가 필요한 경우.
스킬 링크
https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/chained-pr/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 변경이 900줄입니다. 검토자가 한 번에 하나씩 볼 수 있도록 연결된 풀 리퀘스트로 나눠 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 작업을 논리적 단위로 나누고, 테스트와 문서는 그것이 검증하는 코드와 함께 둡니다. 각 풀 리퀘스트가 앞선 것 위에 쌓이도록 설정하고, 각각의 의존 관계를 설명합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Activation Contract
Load this skill when a planned PR may exceed 400 changed lines, an ODD feature's forecast or running authored changed-line count from work-unit commits exceeds about 400, or the user asks for chained/stacked PRs, review slices, or reviewer-load control.
Hard Rules
- Split PRs over 400 changed lines unless a maintainer explicitly accepts
size:exception. - The budget constrains how work is sliced, never the code itself. Never delete comments, blank lines, docs, or tests, and never compress or restyle code, to fit under the budget.
- Slicing is bounded: make one honest slicing pass. If no cohesive split brings every slice within budget, stop iterating, keep the best cohesive split, and report the final line count with a
size:exceptionrecommendation. - Keep each PR reviewable in about ≤60 minutes.
- Use one deliverable work unit per PR; keep tests/docs with the unit they verify.
- State start, end, prior dependencies, follow-up work, and out-of-scope items in every chained PR.
- Every child PR must include a dependency diagram marking the current PR with
📍. - In Feature Branch Chain, create a draft/no-merge tracker PR; child PR #1 targets the tracker branch, later children target the immediate parent branch.
- Treat polluted diffs as base bugs: retarget or rebase until only the current work unit appears.
- Do not mix chain strategies after the user chooses one.
Decision Gates
| Condition | Action |
|---|---|
| PR ≤400 changed lines and focused | Keep single PR. |
| PR >400, each slice can land independently | Use Stacked PRs to main. |
| PR >400, feature must integrate before main | Use Feature Branch Chain with tracker. |
| Generated/vendor/migration diff cannot split cleanly | Ask maintainer for size:exception. |
| No cohesive split fits the budget after one slicing pass | Stop; deliver the best split, report the overage and why it cannot shrink further, and recommend size:exception. |
ODD provides delivery_strategy and chain_strategy |
Follow them before the next work-unit commit or PR creation. |
Execution Steps
- Estimate changed lines and identify independent work units.
- Ask for a chain strategy when none is cached and the budget is exceeded.
- Create branches/PRs using the chosen strategy only.
- Add Chain Context to each PR without replacing the repo PR template.
- Verify each PR independently: CI/tests/docs/manual checks, rollback scope, and clean diff.
- Keep tracker PR draft/no-merge until all child PRs are reviewed and integrated.
Output Contract
Return the chosen strategy, PR order, current PR boundary, dependency diagram, review budget (additions + deletions), verification plan, and any size:exception rationale.
References
- references/chaining-details.md — strategy diagrams, PR body section, branch commands, and reviewer guidance.
자주 묻는 질문
제한에 맞추려고 코드를 줄이나요?
아닙니다. 크기 제한은 작업을 어떻게 나눌지에만 영향을 주며, 코드 작성 방식은 바꾸지 않는다고 스킬이 설명합니다.
각 풀 리퀘스트의 목표 시간은 얼마인가요?
각 검토가 약 60분 이하로 끝나는 것을 목표로 합니다.
기능 브랜치 체인이란 무엇인가요?
초안 추적용 풀 리퀘스트가 기능 브랜치를 담고, 하위 풀 리퀘스트가 그 위에 쌓이는 전략입니다.
상세 정보
작성자의 원본 설명
Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.
인기도
- GitHub 스타
- 8.2k
- 순위
- #12548
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
branch-pr
8.2k에이전트가 일반 템플릿이 아니라 대상 프로젝트 고유의 기여 규칙을 따르는 브랜치와 풀 리퀘스트를 준비하도록 돕습니다.
cognitive-doc-design
8.2k에이전트가 답을 먼저 제시하고 세부 내용을 묶어, 쉽게 훑어보고 기억할 수 있는 가이드와 README, 검토 글을 쓰도록 가르칩니다.
comment-writer
8.2k에이전트가 풀 리퀘스트, 리뷰, 이슈 답변, 팀 채팅 메시지에 쓸 짧고 따뜻하며 직접적인 댓글을 쓰도록 돕습니다.
go-testing
8.2k에이전트에게 표 기반 테스트, 임시 폴더, 골든 파일, 터미널 UI 테스트를 포함한 Go 테스트 패턴을 가르칩니다.