shipping-a-pr
Was er macht
Dieser Skill führt die KI durch das Einreichen fertiger Code-Änderungen zur Prüfung als Pull Request. Er deckt auch das Aktualisieren des Requests, die Statusprüfung und die Antwort auf Review-Kommentare ab. Er richtet sich an Entwickler und Teams, die GitHub nutzen.
Wann du ihn nutzt
- ✓Wenn deine Code-Änderungen fertig sind und als Pull Request raus müssen.
- ✓Wenn du willst, dass die KI prüft, ob die Checks eines Pull Requests grün sind.
- ✓Wenn Prüfer Kommentare hinterlassen und du willst, dass sie beantwortet werden.
Link zum Skill
https://github.com/JetBrains/thinkrail/blob/main/packages/pi-thinkrail-workflow/skills/shipping-a-pr/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Meine Funktion ist fertig. Eröffne einen Pull Request auf GitHub und sag mir, ob die Checks bestehen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI prüft den aktuellen Stand des Codes und des Remotes, erstellt oder aktualisiert dann den Pull Request und meldet die Checks so, wie sie in diesem Moment stehen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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.
Häufige Fragen
Wartet er, bis die Checks fertig sind?
Nur wenn du ihn bittest zu überwachen oder zu warten. Sonst macht er eine einmalige Momentaufnahme und meldet sie.
Was gilt als bereit?
Alle konfigurierten Checks sind grün, der Branch ist auf dem Stand seiner Basis, und GitHub bestätigt, dass gemergt werden kann. Ein Projekt ohne Checks wird als ohne Checks gemeldet.
Kann er fremde Pull Requests prüfen?
Nein. Er ist dafür da, deine eigene fertige Arbeit auszuliefern, nicht fremde Pull Requests zu prüfen.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 7.1k
- Platz im Ranking
- #13493
- Lizenz
- Apache-2.0
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
asking-user-questions
7.1kBringt deinem Agenten bei, dir Fragen in Runden mit guten Antwortoptionen zu stellen, bis die offenen Punkte geklärt sind.
brainstorming
7.1kHilft deinem Agenten, mit dir eine Funktion, eine Verhaltensänderung oder eine Fehlerbehebung zu besprechen, bevor gebaut wird, und das vereinbarte Design festzuhalten.
choosing-a-workflow
7.1kHilft deinem Agenten, den richtigen ThinkRail-Ablauf für ein neues Projekt, einen Pull Request oder jede Änderung am Produktverhalten zu wählen.
importing-a-codebase
7.1kBringt deinem Agenten bei, eine bestehende Codebasis zu lesen und einen ersten Satz Projektspezifikationen zu entwerfen, und nur dort nachzufragen, wo der Code unklar ist.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.