本文へスキップ
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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/JetBrains/thinkrail/blob/main/packages/pi-thinkrail-workflow/skills/shipping-a-pr/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル