Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

pr

/pr

Commituje bieżącą pracę, wysyła gałąź i otwiera lub aktualizuje pull request na polecenie /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
1
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

Commituje bieżącą pracę, wysyła gałąź i otwiera lub aktualizuje pull request na polecenie /pr.

Argumenty

/pr [base branch]
Oryginalny opis (EN)

Use when the user runs /pr to commit the current work, push the branch, and open or update its pull request.

Jak działa

  1. 1. Check where you are
  2. 2. Commit
  3. 3. Check what the push will carry
  4. 4. Push
  5. 5. Open or update the PR
  6. 6. Report
Sekcje z nagłówków SKILL.md, w oryginale · 53 linii, 493 słów
Podgląd SKILL.md
---
name: pr
description: Use when the user runs /pr to commit the current work, push the branch, and open or update its pull request.
disable-model-invocation: true
argument-hint: "[base branch]"
---

# /pr: commit, push, open or update the PR

The repo's own rules come first. If the repo has `.claude/commands/pr.md`, or a CLAUDE.md with PR rules (a base branch, a title format, an issue link, required checks), read them now. Where they differ from the steps below, follow them.

Find the base branch before anything else:

1. If this branch already has a PR (`gh pr view --json number,url,baseRefName`), its `baseRefName` is the base. If the user named a different base, stop and ask: the PR targets another branch.
2. Otherwise the base is the argument, if the user gave one, or else the repo's default branch: `gh repo view --json defaultBranchRef -q .defaultBranchRef.name`.

## 1. Check where you are

1. Run `git branch --show-current`. If you are on the base branch, stop. Create a branch first, or a worktree if other sessions share this checkout.
2. Run `git status`, `git diff` and `git diff --cached --stat`. Know every change before you stage it.
3. If the index already holds changes you did not make, stop and ask the user. A commit would take them along, and unstaging them can lose another session's work.

## 2. Commit

1. Stage the files you mean, by name. In a shared checkout, `git add .` and `git add -A` pick up other sessions' edits.
2. Write the message in the repo's style (`git log --oneline -10`): what changed, and why. End it with the attribution lines your session gives you.
3. Never skip hooks with `--no-verify`.

## 3. Check what the push will carry

```bash
git fetch origin "$BASE"
git log --oneline "origin/$BASE..HEAD"        # the commits the push carries
git diff --name-only "origin/$BASE...HEAD"     # the files the PR changes (three dots: since the branch left the base)
```

Only your commits and your files may appear. Anything else means a wrong base: fix that before you push.

If the repo is public, scan the added lines before you push. Look for secrets and private details: tokens, internal hostnames, private IPs, home-directory paths, client names. Scan the commit message too.

## 4. Push

`git push -u origin HEAD`

## 5. Open or update the PR

1. If the branch has a PR (found above), update its body with `gh pr edit --body-file FILE`, and say what is new.
2. If none exists, search for a duplicate first: `gh pr list --state all --search "<keywords> in:title"`.
3. Create it: `gh pr create --base "$BASE" --title "..." --body-file FILE`. The body has Summary, Changes and Testing sections, and ends with your session's attribution line.
4. Keep the title and body plain: what changed, why, and how you tested it.

## 6. Report

Give the user the PR URL and a line on what it holds, then stop. Do more only if the user asked for it:

- wait for the reviewers: `prbots wait <PR> --trigger`, in the background (the watching-pr-bot-reviews skill);
- fix their findings: /pr-fix;
- merge: /pr-land.

Wersje

RepozytoriumWynikLicencja
Ta strona · smirnov-labs/claude-skills100MIT
harlan-zw/harlan-claude-code100MIT
harlan-zw/harlan-agent-kit100MIT
jongio/skills100MIT
windmill-labs/windmill100Apache-2.0
opsmill/infrahub100Apache-2.0
nesquikm/dev-process-toolkit100MIT
tony/skills100MIT
tony/skills100MIT

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

Pobrania w ostatnich 30 dniach: 0 · ranking

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

Podobne skille

  • 90commit-push-current
    Commituje i wypycha bieżącą gałąź, także bezpośrednio do domyślnej, bez tworzenia gałęzi i pull requesta, na polecenie człowieka.
  • 100commit-push-pr
    Commituje bieżące zmiany, wypycha je na zdalne repozytorium i tworzy lub aktualizuje pull request, gdy chcesz oddać swoją pracę do przeglądu.
  • 100create-pr
    Prowadzi pełny przepływ PR: tworzy gałąź funkcji, commituje, pushuje i otwiera pull request.
  • 100create-pr
    Otwiera lub aktualizuje pull request na GitHubie dla bieżącej gałęzi, także z wypchnięciem zmian.
  • 100commit-push-pr
    Commituje i wysyła gałąź funkcji, a także odświeża opis pull requestu bez tworzenia nowego commita.
  • 100commit-push-pr
    Commituje i wypycha gałąź funkcji, z pull requestem albo bez niego, a w trybie bez PR tylko publikuje zmiany.

Uwagi i zgłoszenia

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