shipping-a-pr
यह क्या करती है
यह स्किल AI को पूरे हो चुके कोड बदलावों को समीक्षा के लिए pull request के रूप में भेजने का मार्गदर्शन देती है। इसमें request को अपडेट करना, उसकी स्थिति जाँचना और समीक्षा की टिप्पणियों का जवाब देना भी शामिल है। यह GitHub इस्तेमाल करने वाले डेवलपर्स और टीमों के लिए है।
कब इस्तेमाल करें
- ✓जब आपके कोड बदलाव पूरे हो गए हैं और pull request के रूप में जाने चाहिए।
- ✓जब आप चाहते हैं कि AI जाँचे कि pull request की checks पास हो रही हैं।
- ✓जब समीक्षक pull request पर टिप्पणी करें और आप चाहते हैं कि उनका जवाब दिया जाए।
Skill का लिंक
https://github.com/JetBrains/thinkrail/blob/main/packages/pi-thinkrail-workflow/skills/shipping-a-pr/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा फ़ीचर पूरा हो गया है, इसलिए GitHub पर pull request खोलिए और बताइए कि checks पास हो रहे हैं या नहीं।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI कोड और रिमोट की मौजूदा स्थिति जाँचता है, फिर pull request बनाता या अपडेट करता है, और उस समय checks की जो स्थिति है वह बताता है।
तकनीकी सामग्री (मूल 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.
अक्सर पूछे जाने वाले सवाल
क्या यह checks पूरी होने का इंतज़ार करेगा?
सिर्फ़ तब जब आप उसे निगरानी या इंतज़ार करने को कहें। नहीं तो वह एक बार की स्थिति देखकर रिपोर्ट करता है।
तैयार होने का क्या मतलब है?
हर सेट की गई check हरी हो, शाखा अपने बेस से अद्यतन हो, और GitHub पुष्टि करे कि merge हो सकता है। बिना checks वाले प्रोजेक्ट को बिना checks की रिपोर्ट मिलती है।
क्या यह किसी और की pull request की समीक्षा कर सकता है?
नहीं। यह आपके अपने पूरे हो चुके काम को भेजने के लिए है, उन pull requests की समीक्षा के लिए नहीं जो आपने नहीं बनाईं।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
asking-user-questions
7.1kयह आपके एजेंट को सही विकल्पों के साथ आपसे साफ़ सवाल दौरों में पूछना सिखाती है, जब तक खुले बिंदु तय न हो जाएँ।
brainstorming
7.1kयह आपके एजेंट को किसी फ़ीचर, व्यवहार बदलाव या बग फ़िक्स को बनाने से पहले आपके साथ बात करके तय डिज़ाइन दर्ज करने में मदद करती है।
choosing-a-workflow
7.1kयह आपके एजेंट को नए प्रोजेक्ट, pull request या प्रोडक्ट में किसी भी बदलाव के लिए सही ThinkRail वर्कफ़्लो चुनने में मदद करती है।
importing-a-codebase
7.1kयह आपके एजेंट को मौजूदा कोडबेस पढ़ने और उसकी पहली प्रोजेक्ट स्पेक्स का मसौदा बनाने सिखाती है, और सिर्फ़ वहीं सवाल पूछती है जहाँ कोड साफ़ नहीं है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।