fixing-pr-comments
/fixing-pr-comments
Pomaga rozwiązać nierozwiązane komentarze z przeglądu w pull requeście i wprowadzić poprawki zgodnie z uwagami recenzentów.
- Autor
- reviewstage ↗
- Repozytorium
- stage-cli ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 06.09.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 06.09.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pomaga rozwiązać nierozwiązane komentarze z przeglądu w pull requeście i wprowadzić poprawki zgodnie z uwagami recenzentów.
Oryginalny opis (EN)
Use when a pull request has unresolved review comments that need to be addressed, or when asked to fix PR feedback
Jak działa
- Workflow
- Detect & Fetch
- Triage
- Fix Loop
- Respond to Remaining
- Common Mistakes
Podgląd SKILL.md
---
name: fixing-pr-comments
description: Use when a pull request has unresolved review comments that need to be addressed, or when asked to fix PR feedback
metadata:
internal: true
---
# Fixing PR Comments
Fetch all unresolved PR threads, triage, fix blockers, resolve the rest.
## Workflow
```
1. DETECT → PR number/repo from current branch
2. FETCH → Unresolved review threads (GraphQL)
3. TRIAGE → Classify each: FIX / RESOLVE / CLARIFY
4. PRESENT → Show triage table, proceed immediately
5. FIX → Implement → verify → commit → reply → resolve (one commit per fix)
6. PUSH → Push all commits
7. RESPOND → Reply to RESOLVE (+ resolve) and CLARIFY threads
```
## Detect & Fetch
```bash
gh pr view --json number,url
# GraphQL required — REST lacks isResolved
# Use --input - to avoid gh's -f flag mangling ! in non-null type annotations
gh api graphql --input - <<'GRAPHQL'
{
"query": "query($owner:String!,$repo:String!,$pr:Int!){repository(owner:$owner,name:$repo){pullRequest(number:$pr){reviewThreads(first:100){nodes{id isResolved path line comments(first:10){nodes{id databaseId body author{login}}}}}}}}",
"variables": {"owner": "OWNER", "repo": "REPO", "pr": NUM}
}
GRAPHQL
```
Filter to `isResolved: false` only.
## Triage
**Default to RESOLVE.** Only FIX what genuinely blocks merge. Resolve everything else with reasoning. Don't gold-plate — ship it.
| Category | Criteria | Action |
|----------|----------|--------|
| **FIX** | Bugs, security issues, correctness problems — blocks merge | Implement + commit + resolve |
| **RESOLVE** | Nits, style, "consider X", minor suggestions, pedantic bot feedback, already addressed | Reply with reasoning + resolve |
| **CLARIFY** | Ambiguous, needs context | Ask in thread, leave open |
**Quality flag during triage:** If a comment requests something that violates a principle in the **Implementation Quality** section of AGENTS.md, categorize it as **RESOLVE** and cite the specific principle it conflicts with.
Present triage table, then proceed immediately:
```
| # | File:Line | Summary | Category | Reasoning |
```
## Fix Loop
For each FIX:
1. Implement the change
2. **Apply forward** — find the same pattern elsewhere in the codebase and fix those too
3. **Quality gate** — evaluate the fix against every principle in the **Implementation Quality** section of AGENTS.md. If any principle is violated, revise before committing.
4. Verify it compiles/passes
5. Commit (one per fix)
6. Reply + resolve:
```bash
# Reply (REST — uses databaseId)
gh api repos/{owner}/{repo}/pulls/{pr}/comments/{comment_id}/replies \
-f body="Fixed in <commit_sha>."
# Resolve (GraphQL — REST can't)
gh api graphql --input - <<'GRAPHQL'
{"query": "mutation($id:ID!){resolveReviewThread(input:{threadId:$id}){thread{isResolved}}}","variables": {"id": "THREAD_NODE_ID"}}
GRAPHQL
```
Then `git push`.
## Respond to Remaining
- **RESOLVE**: Reply with reasoning, then resolve.
- **CLARIFY**: Ask question, leave open.
## Common Mistakes
| Mistake | Fix |
|---------|-----|
| Fixing before triaging | Triage everything first |
| Fixing nits | RESOLVE with reasoning |
| Accepting quality-violating feedback | RESOLVE comments that conflict with Implementation Quality principles in AGENTS.md |
| Introducing quality violations in fixes | Run quality gate before committing |
| Performative replies ("Great catch!") | State what changed or why not |
| One big commit | One commit per fix |
| Skipping verification | Verify before committing |
| Implementing unclear feedback | CLARIFY, ask first |
| Using REST for resolve | GraphQL required |
| Mixing up ID types | `databaseId` for REST, `id` (node ID) for GraphQL |
| RESOLVE without explanation | Always explain |
| Fixing only the flagged line | Search for same pattern, fix all |
Wersje
W bazie nie ma innych skilli o nazwie fixing-pr-comments.
Migawka bazy z 13.11.2026 · wersja paczki 8dbb9a5fd7ed (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
- 84fix
Przetwarza nierozwiązane wątki recenzji w PR: poprawia kod, zakłada zgłoszenia lub odrzuca komentarze. - 100gh-address-comments
Przegląda nierozwiązane wątki recenzji, żądane zmiany i komentarze inline w pull requeście na GitHubie, a następnie wdraża wybrane poprawki. - 90address-pr-comments
Odpowiada na komentarze recenzentów, także Copilota, w aktywnym pull requeście: wprowadza poprawki, zamyka wątki i realizuje żądane zmiany. - 90address-pr-comments
Według standardowego przebiegu odpowiada na uwagi recenzentów w pull requeście: poprawki, testy i odpowiedź z reprodukcją. - 84reply
Pisze odpowiedzi na nierozwiązane komentarze w PR na GitHub, także od innych użytkowników. - 100pr-comment-fix
Automatycznie poprawia kod według komentarzy z przeglądu PR na GitHubie, przechodząc przez nierozwiązane wątki i uwagi recenzentów; wymaga zalogowanego gh.