Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

pr-land

/pr-land

Scala pull request lub merge request, gdy użytkownik o to prosi, i sprząta worktree oraz gałąź po już scalonym PR.

Repozytorium
claude-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Scala pull request lub merge request, gdy użytkownik o to prosi, i sprząta worktree oraz gałąź po już scalonym PR.

Wyzwalacze z opisu

merge itland itship itmerge when clean
Oryginalny opis (EN)

Use when asked to merge or land a pull request ("merge it", "land it", "ship it", "merge when clean"), or to clean up the worktree and branch of a PR that is already merged.

Jak działa

  1. Before you run it
  2. Run it
  3. Read the output
  4. What it will not do
Sekcje z nagłówków SKILL.md, w oryginale · 63 linii, 684 słów
Podgląd SKILL.md
---
name: pr-land
description: Use when asked to merge or land a pull request ("merge it", "land it", "ship it", "merge when clean"), or to clean up the worktree and branch of a PR that is already merged.
---

# Land a PR

`prland` merges a PR only when its bots are clean, and it confirms that GitHub says MERGED. Then it removes that PR's own worktree and branch, and fast-forwards the main checkout. Done by hand, most sessions stopped after the merge and left the cleanup behind.

## Before you run it

1. Wait for the bots: `prbots wait <PR> --trigger`, in the background (the watching-pr-bot-reviews skill). prland checks the verdict once and does not wait.
2. Read the repo's CLAUDE.md. It may name the bots that must be clean (`--need`) or a merge method other than squash.
3. If this session entered the PR's worktree with EnterWorktree, leave it with ExitWorktree first. Otherwise the harness blocks git in the main checkout.
4. Make sure no agent you started still works in that worktree.

## Run it

Run it from any checkout of the repo: the main one or the PR's worktree. `prland` is on PATH where skillsync installed this skill. Otherwise call it by its full path, `<this skill's base directory>/bin/prland`, and stay in the checkout: it finds the repo and the worktrees from there. It calls `prbots` from the watching-pr-bot-reviews skill.

| Case | Command |
|---|---|
| A clean PR | `prland 123` |
| The bots this repo requires | `prland 123 --need sar` |
| A repo with no review bots | `prland 123 --need ci` |
| See the plan first | `prland 123 --dry-run` |
| Keep the worktree | `prland 123 --keep-worktree` |
| A worktree holds only ignored files you can lose | `prland 123 --allow-ignored` |

A PR URL works too, and names its own repo. `prland --help` lists the rest (`-R`, `--method`, `--subject`, `--no-sync`).

## Read the output

It prints one line per step:

```
gate     CLEAN @85c6e8f (--need sar)
merge    squash · codex-review: one command for a read-only Codex review (#20)
merged   4af28c7a2c
remote   deleted codex-review (was 85c6e8f)
worktree removed /tmp/wt-codex-review
branch   deleted codex-review (was 85c6e8f1a2)
sync     ~/src/claude-skills is at 4af28c7 (origin/main)
```

| Exit | Meaning |
|---|---|
| 0 | Merged. A cleanup step it skipped says why. |
| 1 | The gate said no (not CLEAN, a draft, closed). Nothing was merged. |
| 2 | The merge failed, or GitHub did not report MERGED. |
| 3 | Usage error. |

Report the merge SHA, plus anything it left in place and why.

## What it will not do

- Merge without a CLEAN verdict for this repo, this PR and its current head SHA. It reads `prbots --json`, so text in a check name cannot fake the verdict. A misspelled `--need` is an error, not an empty gate.
- Merge a draft, or a head that moved after the check (`--match-head-commit`).
- Merge through a merge queue: a base branch with one is refused, and an auto-merge that GitHub queued instead of merging is cancelled.
- Delete the remote branch if someone pushed to it after the merge. The delete is GitHub's compare-and-delete (`updateRefs` with `beforeOid` set to the PR head) on that exact repository, so no git URL rewrite can redirect it.
- Act on a PR from another host or repo: a URL's host must match the host `gh` uses, and the PR URL GitHub returns must name the requested repo and number.
- Remove a worktree with `--force`, or one with changed tracked files, untracked files, commits past the PR head, files marked assume-unchanged or skip-worktree, or ignored files other than build and cache output (`.env` and notes stay). It reads these with `git ls-files`, so `status.showUntrackedFiles` cannot hide them.
- Delete a local branch that moved: the delete is an atomic `update-ref` on the PR head.
- Prune other worktrees, or touch any branch except the PR's own. A fork PR's branches are left alone.
- Switch branches in the main checkout, sync it while it has tracked changes, or follow its upstream: it fast-forwards to `origin/<base>`, and never over an ignored file the new commits start tracking.
- Guess a PR number across repos: with `-R`, give the number.
Pliki w paczce (2)
  • SKILL.md 4 KB
  • bin/prland 20 KB

Wersje

W bazie nie ma innych skilli o nazwie pr-land.

Migawka bazy z 13.11.2026 · wersja paczki 4f1be01d228e (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 3 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90ship
    Scala sprawdzony pull request, sprząta jego gałąź i drzewo robocze, a gdy trzeba, uruchamia wydanie lub wdrożenie.
  • 86land-branch
    Scala gotową gałąź roboczą, gdy bramka jest zielona albo gdy ktoś prosi o scalenie lub wdrożenie.
  • 91flow-next-land
    Doprowadza jeden pull request do scalenia: uwagi, CI i werdykt LAND, gdy użytkownik wyda zgodę.
  • 86ship
    Prowadzi zmianę z gałęzi do scalenia i sprzątania: otwiera lub aktualizuje pull request, przegląda go i scala.
  • 90post-merge-sync
    Sprząta po scalonym pull requeście AIP na wyraźną prośbę właściciela: sprawdza scalenie, synchronizuje main i usuwa lokalną gałąź, nie ruszając zdalnej.
  • 90worktrees:finish
    Kończy pracę w worktree: tworzy pull request lub scala gałąź bezpośrednio, usuwa worktree i sprząta gałąź roboczą.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.