Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pr-fix

БесплатноБез исполняемых скриптовНе проверен

Bring a ShieldBattery PR to green and work through its review (`/pr-fix`, `/pr-fix N`) - read CI for the PR's head commit, tell a real regression from this…

ShieldBatteryот ShieldBattery★ 232 звезды на GitHub

Об этом скилле

Fixing up a PR

Rules

  • Never write to the PR conversation as the user. No replies, comments or reviews. Resolving a thread and minimizing a comment are the only writes. Disagreement with feedback goes in chat.
  • Verify before acting. A reviewer, human or claude[bot], can be wrong about the code. Check the claim in the tree before changing anything; a claim that doesn't hold is reported, not fixed.
  • Flakes get reruns, regressions get fixes. Never both for the same failure.
  • Ordinary commits. Fixes are new commits on the PR branch in the repo's message style. No amend or force-push except when rebasing onto the base to clear merge conflicts (step 1) or rebasing a stacked child (step 4).

Steps

1. Find the PR

gh pr view [N] --json number,headRefName,baseRefName,headRefOid,isDraft,url,mergeable,mergeStateStatus
git checkout <headRefName> && git pull --ff-only

If mergeable is CONFLICTING (mergeStateStatus: DIRTY), resolve that before reading CI: GitHub can't build a merge ref for a conflicting PR, so the pull_request runs never start and the push runs alone can look fully green. Rebase onto the base branch (never merge it in), resolve each stop, run the local gates from step 2 for the conflicted areas, and push with --force-with-lease. Conflicts in __snapshots__/ files are regenerated, not hand-merged: take either side, rerun that test with -u, and git add the result. UNKNOWN means GitHub is still computing it; query again.

Without a number, the PR is the current branch's. If there is none, ask which PR; don't guess from gh pr list.

2. Read CI

gh pr checks N                                   # one line per job, with run links
gh run view <run-id> --json event,headSha,conclusion
gh run view <run-id> --log-failed | tail -80

What runs, and when:

Workflow Jobs Runs on
JS CI unit-tests: vitest, typecheck, lint, circular-deps, translation catalogs, email templates, graphql codegen check every push and pull_request
integration-tests: docker compose stack + Playwright
Game CI clippy (x86, x64), rustfmt, cargo test (x86, x64) game/**
server-rs CI clippy, rustfmt, cargo test + gen-schema check, typeshare check, sqlx prepare check server-rs/**, migrations/**, schema.graphql, common/typeshare.ts
Claude Code Review claude-review: posts a review from claude[bot] PR opened, synchronize, reopened, ready for review

Reading the results:

  • Every commit gets two runs of each workflow, one push and one pull_request. Both report the branch's head SHA, but push builds the branch tip and pull_request builds the branch merged into master. A split result on the same SHA is a flake only when the branch is up to date with master (git fetch origin && git log --oneline HEAD..origin/master prints nothing). Otherwise the two runs built different code: a pull_request-only failure means the branch breaks once merged, so rebase onto master, reproduce locally, and fix it as a regression; a push-only failure means master already carries the fix, and the rebase clears it.
  • All workflows cancel in-progress runs on a new push, so a pending rerun on the previous SHA ends as cancelled. That is not a failure.
  • claude (the mention-triggered workflow) shows as skipping on every PR. Normal.

Known flakes, both in integration-tests. Rerun with gh run rerun <run-id> --failed:

  • Step "Running Docker containers": service "migration" didn't complete successfully: exit 1. The migration container connected before postgres was ready to serve queries.
  • Signup spec: apiRequestContext.get: socket hang up on http://localhost:5528/sent/.... The fake mailgun sidecar dropped a connection.

Anything else is a regression until proven otherwise: read the failed log, reproduce with the local equivalent, fix.

pnpm test && pnpm run typecheck && pnpm run lint && pnpm run check-circular
pnpm gen-translations:app --fail-on-update && pnpm gen-translations:email --fail-on-update
pnpm gen-emails && pnpm
Полный SKILL.md на GitHub

Установить pr-fix в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл pr-fix?

Bring a ShieldBattery PR to green and work through its review (`/pr-fix`, `/pr-fix N`) - read CI for the PR's head commit, tell a real regression from this repo's known flakes and rerun the flakes, verify every review claim against the code before changing anything, push fixes, then resolve the threads and minimize the comments that were addressed. Never posts replies or comments as the user. Use when asked to fix CI, address review, check on a PR, or after the implement skill has pushed one.

Как установить скилл pr-fix?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pr-fix запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pr-fix с