본문으로 건너뛰기
Skillpedia
일반 코딩8.2k · #12548

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/chained-pr/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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:exception recommendation.
  • 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

  1. Estimate changed lines and identify independent work units.
  2. Ask for a chain strategy when none is cached and the budget is exceeded.
  3. Create branches/PRs using the chosen strategy only.
  4. Add Chain Context to each PR without replacing the repo PR template.
  5. Verify each PR independently: CI/tests/docs/manual checks, rollback scope, and clean diff.
  6. 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

자주 묻는 질문

제한에 맞추려고 코드를 줄이나요?

아닙니다. 크기 제한은 작업을 어떻게 나눌지에만 영향을 주며, 코드 작성 방식은 바꾸지 않는다고 스킬이 설명합니다.

각 풀 리퀘스트의 목표 시간은 얼마인가요?

각 검토가 약 60분 이하로 끝나는 것을 목표로 합니다.

기능 브랜치 체인이란 무엇인가요?

초안 추적용 풀 리퀘스트가 기능 브랜치를 담고, 하위 풀 리퀘스트가 그 위에 쌓이는 전략입니다.

상세 정보

작성자의 원본 설명

Trigger: PRs over 400 lines, stacked PRs, review slices. Split oversized changes into chained PRs that protect review focus.

repo: Gentleman-Programming/gentle-ai

인기도

GitHub 스타
8.2k
순위
#12548
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬