gentle-ai-chained-pr
하는 일
이 스킬은 AI가 너무 큰 변경을 연결된 풀 리퀘스트 순서로 나누도록 돕습니다. 검토자가 편하게 다루기에 변경이 너무 큰 개발자를 위한 스킬입니다.
사용하는 경우
- ✓계획한 풀 리퀘스트가 약 400줄 넘게 바뀔 수 있을 때.
- ✓각 조각을 독립적으로 검토할 수 있도록 쌓인 풀 리퀘스트를 원할 때.
- ✓기능이 메인 브랜치에 닿기 전에 통합되어야 하고 추적용 풀 리퀘스트가 필요한 경우.
스킬 링크
https://github.com/Gentleman-Programming/gentle-ai/blob/main/skills/chained-pr/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 기능의 diff가 검토하기에 너무 큽니다. 명확한 의존 관계가 있는 쌓인 풀 리퀘스트로 나눠 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 결정 표를 사용해 쌓인 풀 리퀘스트와 기능 브랜치 체인 중 무엇을 쓸지 고릅니다. 각 조각은 하나의 작업 단위로 유지하고, 각 풀 리퀘스트에 의존 관계를 명시합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Activation Contract
Load this skill when a planned PR may exceed 400 changed lines, SDD forecasts 400-line budget risk: High or Chained PRs recommended: Yes, 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. - 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. |
SDD provides delivery_strategy |
Follow it before apply/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.
자주 묻는 질문
기능 브랜치 체인은 언제 쓰나요?
기능이 메인 브랜치에 들어가기 전에 추적용 브랜치에 통합되어야 할 때입니다.
하위 풀 리퀘스트에 무관한 변경이 들어갈 수 있나요?
아닙니다. 오염된 diff는 기반 문제로 보며, 각 diff에는 현재 단위만 보여야 한다고 스킬이 설명합니다.
깔끔한 분리가 불가능하면 어떻게 하나요?
억지로 어색하게 나누지 말고 관리자에게 예외를 요청하라고 스킬이 설명합니다.
상세 정보
작성자의 원본 설명
Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.
인기도
- GitHub 스타
- 8.2k
- 순위
- #12559
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
branch-pr
8.2k에이전트가 일반 템플릿이 아니라 대상 프로젝트 고유의 기여 규칙을 따르는 브랜치와 풀 리퀘스트를 준비하도록 돕습니다.
chained-pr
8.2k에이전트가 400줄이 넘는 큰 변경을 각각 독립적으로 검토할 수 있는 작은 풀 리퀘스트 체인으로 나누도록 돕습니다.
cognitive-doc-design
8.2k에이전트가 답을 먼저 제시하고 세부 내용을 묶어, 쉽게 훑어보고 기억할 수 있는 가이드와 README, 검토 글을 쓰도록 가르칩니다.
comment-writer
8.2k에이전트가 풀 리퀘스트, 리뷰, 이슈 답변, 팀 채팅 메시지에 쓸 짧고 따뜻하며 직접적인 댓글을 쓰도록 돕습니다.