본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)7.1k · #13493

shipping-a-pr

하는 일

이 스킬은 완료된 코드 변경을 검토용 풀 리퀘스트로 보내는 과정을 AI가 안내합니다. 풀 리퀘스트 업데이트, 상태 확인, 리뷰 댓글 응답도 다룹니다. GitHub를 쓰는 개발자와 팀을 위한 것입니다.

사용하는 경우

  • ✓코드 변경이 끝나서 풀 리퀘스트로 보내야 할 때.
  • ✓풀 리퀘스트의 검사가 통과하는지 AI에게 확인받고 싶을 때.
  • ✓리뷰어가 댓글을 남겨서 그 내용을 반영해야 할 때.

스킬 링크

https://github.com/JetBrains/thinkrail/blob/main/packages/pi-thinkrail-workflow/skills/shipping-a-pr/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

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

Use this skill to help me: https://github.com/JetBrains/thinkrail/blob/main/packages/pi-thinkrail-workflow/skills/shipping-a-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에게 요청하는 예시

“기능 작업이 끝났으니 GitHub에 풀 리퀘스트를 열고, 검사가 통과하는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 코드와 원격 저장소의 현재 상태를 확인한 뒤, 풀 리퀘스트를 만들거나 업데이트합니다. 그리고 그 시점의 검사 상태를 그대로 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Shipping a PR

The PR lifecycle: ship the workspace's finished work, maintain PR metadata, and keep the PR healthy when requested. One workflow, six phases as sibling docs — enter at the phase the ask names.

Completion modes

  • Snapshot mode is the default for creating, syncing, or updating a PR and for one-time status requests. Take one fresh checks and merge-state snapshot, report pending/failing/indeterminate state as observed, and stop without polling or fixing unrelated state. A push never upgrades the mode by itself.
  • Wait mode requires an explicit remote-completion ask: monitor or watch checks, investigate CI, wait until green, or make the PR merge-ready. Done means every configured check is green, the head is current with its base, and GitHub reports an affirmative merge state; a requested draft is reported as draft, never merge-ready. A repo with no CI is reported as exactly that, never silently green.

Observed, never assumed (applies to every phase)

Git and GitHub state is concurrent and mutable: the base moves, CI lags, mergeability is computed lazily, and this workflow's own steps dirty the tree they just checked. Four rules hold at every step of every phase:

  • Verify at the point of action. An irreversible step — push, gh pr create, gh pr edit, replying to a thread, declaring done — re-checks the exact state it consumes immediately before running. A gate passed earlier does not survive the mutations made since it passed.
  • Keep verification tied to the final tree. Reuse exact prior results while the inputs they cover remain unchanged. Before every code-affecting push, run project-required checks that are missing or invalidated by later code, configuration, dependency, base, or conflict-resolution changes. If a check, cleanup, or self-review causes another relevant edit, reassess and repeat before pushing.
  • Fetch, don't remember. Remote state is read fresh and completely at the moment it's needed: the current body before editing it, --paginate on every listing, git fetch before reasoning about the base.
  • Indeterminate is not affirmative. In wait mode, a pending or still-computing answer (an UNKNOWN merge state, queued checks) is polled until it resolves; done is declared only from observed affirmative state. In snapshot mode, report it as indeterminate without turning the phase into a watch.

Classify the ask

The ask Phase doc Default mode
Create a PR — the work is finished creating.md snapshot
Bring the PR up to date / resolve conflicts with its base syncing.md snapshot
Update the PR title or body body.md snapshot
Add or refresh screenshots on a PR screenshots.md snapshot
Report the current checks / merge state once checks.md snapshot
Monitor CI / investigate or fix failing checks checks.md wait
Address review comments review-comments.md snapshot

Read and follow the selected phase doc — the gates and mechanics live only there; never run a phase from this spine's summary. Carry the completion mode selected above into that doc; a later push does not change it. A compound ask ("rebase, verify, and create a PR") is one flow: start at the earliest phase named; the docs chain forward on their own. If the work itself isn't finished — the ask bundles new design or implementation before the ship — that part is not this workflow's; route it per choosing-a-workflow first and come back here when it lands.

Working files

Ephemeral files this workflow uses, all under the workspace's gitignored .thinkrail/context/:

  • pr-body.md — the PR body draft; always passed via --body-file, never inline.
  • pr-shots/ — staged before/after screenshots awaiting attachment.

Both are deleted when the phase that made them completes (screenshots stay while the user is uploading by hand — see screenshots.md).

Ending

Every phase ends through checks.md in the completion mode selected above.

자주 묻는 질문

검사가 끝날 때까지 기다리나요?

모니터링하거나 기다리라고 요청했을 때만 기다립니다. 그렇지 않으면 한 번 확인하고 보고합니다.

준비됨은 무엇을 뜻하나요?

설정된 모든 검사가 통과하고, 브랜치가 기준 브랜치와 최신 상태이며, GitHub가 병합 가능하다고 확인한 상태입니다. 검사가 없는 프로젝트는 검사가 없다고 보고합니다.

다른 사람의 풀 리퀘스트를 검토할 수 있나요?

아니요. 이 스킬은 내가 직접 만든 완료된 작업을 올리기 위한 것이며, 내가 만들지 않은 풀 리퀘스트는 검토하지 않습니다.

상세 정보

작성자의 원본 설명

Use when finished work needs to ship as a pull request, or when creating, syncing, updating metadata, checking status, monitoring CI, or addressing review comments on a PR. Not for reviewing a PR you are not shipping.

repo: JetBrains/thinkrail

인기도

GitHub 스타
7.1k
순위
#13493
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬