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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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,
--paginateon every listing,git fetchbefore reasoning about the base. - Indeterminate is not affirmative. In wait mode, a pending or still-computing answer (an
UNKNOWNmerge 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.
댓글
- …
이 저장소의 다른 스킬
asking-user-questions
7.1k에이전트가 명확한 질문과 좋은 답변 선택지를 여러 차례에 나눠 제시해, 열린 사항이 정리될 때까지 묻도록 가르칩니다.
brainstorming
7.1k에이전트가 구현 전에 기능, 동작 변경, 버그 수정을 함께 이야기하고, 합의한 설계를 기록하도록 돕습니다.
choosing-a-workflow
7.1k에이전트가 새 프로젝트, 풀 리퀘스트, 제품 기능 변경에 맞는 ThinkRail 워크플로를 고르도록 돕습니다.
importing-a-codebase
7.1k에이전트가 기존 코드베이스를 읽고 첫 프로젝트 명세 초안을 작성하도록 가르칩니다. 코드가 불분명한 부분만 질문합니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.