Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

phx-pr-review

/phx-pr-review

Obsługuje uwagi pozostawione w pull requeście na GitHubie, pobierając nierozwiązane wątki recenzji, wskazane przez adres PR lub komentarze recenzenta.

Licencja
MIT
Ostatnia zmiana repozytorium
22.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
4
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 22.10.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

Obsługuje uwagi pozostawione w pull requeście na GitHubie, pobierając nierozwiązane wątki recenzji, wskazane przez adres PR lub komentarze recenzenta.

Oryginalny opis (EN)

Address feedback left on a GitHub pull request: fetch unresolved; Use for a PR URL/number or reviewer comments.…

Jak działa

  1. Usage
  2. Workflow
  3. Iron Laws
  4. References
Sekcje z nagłówków SKILL.md, w oryginale · 94 linii, 794 słów
Podgląd SKILL.md
---
name: phx-pr-review
description: 'Address feedback left on a GitHub pull request: fetch unresolved; Use
  for a PR URL/number or reviewer comments.…'
---
# PR Review Response

Inspect unresolved pull-request review threads, triage them read-only by default,
and apply only explicitly approved fixes. GitHub mutations are never implied.

## Usage

```text
$elixir-phoenix:phx-pr-review 42
$elixir-phoenix:phx-pr-review 42 --fix
$elixir-phoenix:phx-pr-review https://github.com/owner/repo/pull/42 --bots-only
$elixir-phoenix:phx-pr-review 42 --no-resolve
```

## Workflow

1. Resolve the PR number or URL. Prefer a runtime GitHub connector that returns
   thread IDs and resolved state. Otherwise use this exact `gh` 2.94-compatible
   fallback (requires `command -v gh` and `gh auth status`):

```bash
PR_INPUT="${1:?PR number or URL}"
if [[ "$PR_INPUT" =~ ^https://github.com/([^/]+)/([^/]+)/pull/([0-9]+) ]]; then
  OWNER="${BASH_REMATCH[1]}"; REPO="${BASH_REMATCH[2]}"; PR="${BASH_REMATCH[3]}"
else
  OWNER=$(gh repo view --json owner --jq '.owner.login')
  REPO=$(gh repo view --json name --jq '.name'); PR="$PR_INPUT"
fi
gh api graphql --paginate -F owner="$OWNER" -F repo="$REPO" -F pr="$PR"   -f query='query($owner: String!, $repo: String!, $pr: Int!, $endCursor: String) { repository(owner: $owner, name: $repo) { pullRequest(number: $pr) { reviewThreads(first: 100, after: $endCursor) { nodes { id isResolved isOutdated path line originalLine comments(first: 100) { totalCount nodes { id databaseId body author { login __typename } replyTo { id } } } } pageInfo { hasNextPage endCursor } } } } }'
gh api graphql --paginate -F owner="$OWNER" -F repo="$REPO" -F pr="$PR"   -f query='query($owner: String!, $repo: String!, $pr: Int!, $endCursor: String) { repository(owner: $owner, name: $repo) { pullRequest(number: $pr) { reviews(first: 100, after: $endCursor) { nodes { id state body submittedAt author { login __typename } } pageInfo { hasNextPage endCursor } } } } }'
```

   `--paginate` binds each returned `pageInfo.endCursor` to `$endCursor`. Filter
   `isResolved == false` after collecting pages. Preserve thread `id`, root
   comment `id`/`databaseId`, and `author.__typename` (not login suffixes).
   `comments(first:100)` is nested and is **not** paginated by the outer command:
   if `comments.totalCount > nodes.length`, report the thread as TRUNCATED and
   fetch every comment page with this exact query. The outer query intentionally
   omits nested `comments.pageInfo` so `gh --paginate` follows only the outer
   `reviewThreads.pageInfo` cursor:

```bash
gh api graphql --paginate -F threadId="$THREAD_ID"   -f query='query($threadId: ID!, $endCursor: String) { node(id:$threadId) { ... on PullRequestReviewThread { comments(first:100, after:$endCursor) { totalCount nodes { id databaseId body author { login __typename } replyTo { id } } pageInfo { hasNextPage endCursor } } } } }'
```

   Merge all comment pages in API order and deduplicate by GraphQL `id` (first
   occurrence wins). Block triage until every truncated thread is complete. Do
   not substitute issue comments for review threads.
2. Keep only unresolved threads, preserve API order, then group by path and line.
   With `--bots-only`, use API actor type rather than a login suffix. Show one row
   per thread with author, category, outdated state, and proposed action. Review
   summaries are separate, non-resolvable context.
3. **Gate 1 — read-only selection.** Always stop after triage for an explicit list
   of selected thread IDs. Selection authorizes inspection only. `--fix` permits
   later edits but approves nothing and never selects every thread.
4. **Gate 2 — edit approval.** For each selected thread, read current code and
   propose the exact patch. Obtain explicit edit approval before editing, or record
   `EDIT: NOT APPLICABLE` with evidence. Then show the applied diff and run the
   smallest relevant compile/test check after every code change.
5. **Gate 3 — posting approval.** Draft a reply only after verification. Outdated means location drift, **not**
   addressed: require current code/diff evidence before that disposition. Show the
   diff, evidence, and exact verified reply, then obtain a separate explicit posting
   approval before posting. Use a connector
   mutation when available, or `gh api` to reply to the root review comment. If
   posting is unsupported or fails, report `NOT POSTED` with the reason.
6. **Gate 4 — resolution approval.** First confirm the post from the API response.
   Only then request a separate resolution approval. `--no-resolve` always disables resolution, regardless of
   any other flag or approval. Use the connector or `resolveReviewThread` mutation, then
   confirm returned state. Never claim replied/resolved from a draft or intent.
7. Return `thread | action | verification | reply | resolution`, changed files,
   and precise blockers. Paginated review summaries with `CHANGES_REQUESTED` or
   an actionable non-empty body are findings even when there are zero inline
   threads; report them as non-resolvable context and never call that state clean.
   Do not commit or push.

Generic read-only workers may inspect independent threads when the runtime has
them, but named custom agents are not required and sequential same-session
processing is complete.

## Iron Laws

1. **Triage always stops for explicit thread selection** — `--fix` permits but does
   not approve edits.
2. **Never post, resolve, dismiss, commit, or push without the required approval.**
3. **Never resolve before a successful reply** and never fabricate mutation state.
4. **Never claim a fix without a shown diff and successful focused verification.**
5. **Scrutinize bot and human findings equally**; Iron Laws override suggestions.

## References

- `references/response-patterns.md` — reply templates and tone
- `references/gh-commands.md` — GitHub CLI queries and mutations
- `references/bot-triage.md` — bot review triage
Pliki w paczce (4)
  • SKILL.md 6 KB
  • references/bot-triage.md 1 KB
  • references/gh-commands.md 1 KB
  • references/response-patterns.md 4 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · oliver-kriska/claude-elixir-phoenix100MIT
oliver-kriska/claude-elixir-phoenix100MIT
oliver-kriska/claude-elixir-phoenix100MIT
oliver-kriska/claude-elixir-phoenix100MIT

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

Pobrania w ostatnich 30 dniach: 1 · ranking

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

Podobne skille

  • 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.
  • 100pr-review
    Obsługuje uwagi z pull requesta na GitHubie: pobiera nierozwiązane wątki, wprowadza uzgodnione poprawki w Elixirze i Phoenix, odpowiada i zamyka wątki.
  • 90pr-feedback
    Zamienia nierozwiązane wątki recenzji i uwagi w pull requeście na zadania planu, gdy użytkownik chce działać na podstawie recenzji.
  • 100forge-address-pr-feedback
    Analizuje nierozwiązane uwagi do pull requesta na GitHubie i pomaga systematycznie odpowiedzieć na każdy komentarz recenzenta.
  • 100review-pr-comments
    Pobiera nierozwiązane komentarze PR na GitHubie, bada każdy problem, naprawia zasadne i zamyka wątki odpowiedzią.
  • 100address-review
    Obsługuje uwagi do własnego pull requesta, czyli nierozwiązane wątki, podsumowania przeglądu i komentarze od ludzi lub botów, zanim zmieni kod.

Uwagi i zgłoszenia

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