Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

update-pr

/update-pr

Aktualizuje istniejący pull request o nowe zmiany i commity oraz w razie potrzeby poprawia jego opis.

Licencja
Apache-2.0
Ostatnia zmiana repozytorium
27.10.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 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Aktualizuje istniejący pull request o nowe zmiany i commity oraz w razie potrzeby poprawia jego opis.

Wyzwalacze z opisu

update the PRfix the PRadd this to the PR
Oryginalny opis (EN)

Updates an existing pull request with new changes, commits, and optionally revises the PR description. Activate when the user asks to update, fix, or add to an existing PR. Also activate when the user says "update the PR", "fix the PR", "add this to the PR", or any variation of modifying an existing pull request.

Jak działa

  1. When to Use
  2. Workflow
  3. Example
  4. Error Handling
Sekcje z nagłówków SKILL.md, w oryginale · 91 linii, 404 słów
Podgląd SKILL.md
---
# prettier-ignore
name: update-pr
description: >
  Updates an existing pull request with new changes, commits, and optionally revises the PR description.
  Activate when the user asks to update, fix, or add to an existing PR.
  Also activate when the user says "update the PR", "fix the PR", "add this to the PR", or any variation of modifying an existing pull request.
---

# Update Pull Request Skill

## When to Use

Activate when the user says:

- “Update the PR”
- “Fix the PR based on feedback”
- “Add this to the PR”
- “Push these changes to the PR”
- “Update the PR description”

Do **NOT** use for:

- Creating a new PR (use `pr-creation` skill)
- Reviewing a PR (`gh pr view`)
- Merging a PR (`gh pr merge`)

## Workflow

### 1. Verify PR Exists and Is Open

```bash
gh pr view --json number,state,title,url
```

If no PR exists, ask if they want to create one (`/pr-creation`). If merged or closed, ask what to do.

### 2. Make Changes

Implement the requested updates following the user’s instructions.

### 3. Commit Changes

Use the `/commit` skill to create conventional commits:

```bash
/commit
```

### 4. Push Updates

```bash
git push
```

### 5. Update PR Title and Description

After pushing, dynamically update the PR to reflect **all** changes (not just the latest commit):

1. Run `git diff $CLAUDE_CODE_BASE_REF...HEAD` and `git log $CLAUDE_CODE_BASE_REF..HEAD --oneline` to see the full scope
2. Check for `CONTRIBUTING.md`, `.github/PULL_REQUEST_TEMPLATE.md`, or similar PR description guidance in the repo—if found, adapt the description to follow the repository’s conventions
3. Read `.claude/skills/pr-creation/pr-templates.md` for the PR template format and merge with any repo-specific guidance
4. Rewrite the title and body to accurately describe the **current state** of the PR:

   ```bash
   gh pr edit <pr-number> --title "<type>: <updated description>" --body "$(cat <<'EOF'
   <updated body using template from pr-templates.md>
   EOF
   )"
   ```

5. The title and summary should reflect the totality of the PR, not just the new changes

### 6. Verify CI (with 15-minute timeout)

```bash
timeout 15m gh pr checks --watch; rc=$?
# 0=all green, 8=still pending, 124=our timeout. Anything else is a real failure.
case "$rc" in 0 | 8 | 124) ;; *) exit "$rc" ;; esac
```

If checks fail, fix issues and repeat steps 3–6.

### 7. Report Result

Confirm the PR is updated and provide the URL.

## Example

**User:** “Fix the type error in the PR”

**Actions:** Verify PR exists → Fix type error → `/commit` → Push → Update PR title/description → Verify CI → Report URL

## Error Handling

- **No PR for branch**: Ask if they want to create one (`/pr-creation`)
- **PR merged/closed**: Ask user what to do (don’t modify merged PRs)
- **CI fails**: Fix issues, push again, and update the PR description

Wersje

RepozytoriumWynikLicencja
Ta strona · alexandermattturner/agent-sanitizer100Apache-2.0
reflexioai/claude-smart100Apache-2.0
propstreet/claude-powerpack100MIT

Migawka bazy z 28.10.2026 · wersja paczki 72ac1966b27b (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

  • 100pr-update
    Aktualizuje tytuł i opis istniejącego PR-a na podstawie commitów w bieżącej gałęzi, gdy doszły nowe zmiany.
  • 100update-pull-request
    Aktualizuje tytuł i opis istniejącego pull requesta, tak by odpowiadały faktycznie wprowadzonym zmianom w kodzie.
  • 100create-pull-request
    Tworzy lub aktualizuje pull request, poprawia jego opis i dodaje odwołania do issue w treści.
  • 100descriptions
    Przygotowuje lub poprawia opis pull requesta, gdy użytkownik prosi o PR description, podsumowanie PR lub opis zmiany.
  • 100jj-update-pr
    Aktualizuje opisy istniejących pull requestów GitHub treścią generowaną przez AI na podstawie bieżącego diffu, aby odświeżyć opis po nowych zmianach.
  • 100create-pull-request
    Tworzy lub aktualizuje pull request, poprawia jego opis i dopisuje odwołania do zgłoszeń; nie dotyczy stosów wielu PR ani wydań.

Uwagi i zgłoszenia

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