verify-pr
БесплатноБез исполняемых скриптовНе проверенDecide what to actually run to verify a change or review a PR, scaled to what changed — from lint/typecheck up to a full game launch that checks MMR/results…
от ShieldBattery★ 232 звезды на GitHubОб этом скилле
Verifying a change / reviewing a PR
The goal: run the minimum sufficient set of checks for what changed. A CSS tweak does not need a game launch; an MMR change does. Start by looking at the diff:
git diff --stat $(git merge-base HEAD master) # or the PR base
Map the touched paths to tiers below, run the union of what they require, and report results honestly (paste failures; say what you skipped and why).
Universal checks (almost always)
pnpm run lint # oxlint + oxfmt; `pnpm run lint:fix` to autofix
pnpm run typecheck # tsc over the whole project
pnpm exec vitest run <path> # unit tests near the change (use `run`, not bare `vitest` = watch)
Skip these only for pure non-code changes (docs/markdown, assets).
Verification tiers
| Tier | What it means | How |
|---|---|---|
| T0 Static | lint, typecheck, unit tests | commands above |
| T1 Visual | component renders correctly | browser on a /dev page — CSS/layout only |
| T2 App | feature works in the real client | drive one Electron instance (verify-app) |
| T3 Multi | interaction between users | two+ Electron instances (verify-app) |
| T4 Game | end-to-end in-game outcome | launch a real match, verify DB + UI (below) |
T1 is the weak tier — it only proves rendering, because /dev pages use mock data and no store.
Anything about behavior needs T2+.
Changed-path → tier matrix
| Changed path | Run |
|---|---|
*.md, docs, comments only |
nothing (maybe lint) |
Styles/CSS/styled-components/layout only |
T0 + T1 |
client/ feature logic, reducers, atoms, hooks |
T0 + T2 |
| Multiplayer client features (chat, whispers, lobbies, parties, matchmaking, social) | T0 + T3 |
server/lib/<feature> |
T0 + the feature's vitest; integration subset if specs cover it (below) |
server/ auth / session / websockets |
T0 + T2 (login + a socket-backed view) and/or integration |
server-rs/ |
T0 + Rust checks (below); pnpm gen-graphql if schema changed |
DB migration (migrations/) |
run it (pnpm run migrate:run) + exercise affected flows; pnpm run sqlx-prepare |
game/ (Rust DLL) |
Rust game checks (below); T4 if it touches results/netcode/sync/replays |
MMR / results / ranks / match-history logic (client, server, or game) |
T4 + DB outcome checks |
app/ (Electron main) |
T0 + T2 smoke: boots, logs in, settings open, game path detected |
common/ |
T0 (it fans out everywhere — typecheck is load-bearing) + tests of touched dependents |
When several rows apply, run the union. When unsure whether logic is reachable from the UI, prefer the higher tier.
Area-specific commands
Integration tests (Playwright against a throwaway Docker stack on :5527, separate from your dev stack):
.\run-integration-tests.bat # full (rebuilds the app server container)
.\run-integration-tests.bat nobuild # skip rebuild when only test code changed
.\run-integration-tests.bat nobuild chat.spec.ts # a subset; extra args pass through to Playwright
Rust GraphQL server (server-rs/):
cd server-rs && cargo check
cd server-rs && cargo clippy --all-targets --workspace -- -D warnings
cd server-rs && cargo test
pnpm run sqlx-prepare # after changing SQL queries
pnpm run gen-graphql # after changing the GraphQL schema (regenerates client/gql)
Game DLL (game/):
game\build.bat # debug 64-bit (default; what the app injects in dev)
game\build.bat x86 # debug 32-bit
cd game && cargo clippy --all-targets --workspace -- -D warnings
cd game && cargo test
T4: game-launch / outcome verification
This tier exists because the important questions are about outcomes, not just "did the game open": does MMR update correctly, is the result recorded, does match history/replay upload work. Verifying the launch alone is not enough.
Pick the cheapest launch path for what you're verifying. A 2-player custom lobby is faster
and simpler than matchmaking — no ~30s matchmaker wait, no short-fused ready-up window, no
matchmaking-ban risk on a fumbled attempt. It still creates a real games/games_users record,
registers selected_matchup, and reconciles results (incl. assigned_matchup, win/loss, replays,
match history). So use a lobby whenever the thing under test isn't matchmaking-specific. Only go
through matchmaking when you actually need a matchmaking outcome: MMR/rank changes,
matchmaking_rating_changes, bonus pool, season/placement logic, party-queue, or the matchmaker
itself. (Lobby launch mechanics — c1 hosts, c2 joins, host starts — are in the verify-app
skill's lobby flow; the DLL-rebuild and finish/outcome steps below apply to both paths.)
Setup:
- Dev stack up incl. the app renderer dev server (dev-env:
dev-stack.mjs start node rust renderer); two app instances logged in as two seeded accounts (verify-app: `sb-app.mjs l
Установить verify-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл verify-pr?
Decide what to actually run to verify a change or review a PR, scaled to what changed — from lint/typecheck up to a full game launch that checks MMR/results. Use when reviewing a PR, validating a branch, or confirming a change works before pushing. Maps changed paths to the minimum sufficient verification tier and holds per-feature recipes.
Как установить скилл verify-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл verify-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub