PR Checks — Git skill for Claude Code
Show current PR's check status; pull failure logs if any are red.
How to install PR Checks
Installs to ~/.claude/commands/2anki-2anki.net-pr-checks.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/2anki/2anki.net/HEAD/.claude/commands/pr-checks.md -o ~/.claude/commands/2anki-2anki.net-pr-checks.md Restart Claude Code, or start a new session, for it to be picked up.
What PR Checks does
description: Show current PR's check status; pull failure logs if any are red allowed-tools: Bash
Get the rollup for the current branch's PR:
gh pr view --json statusCheckRollup -q '.statusCheckRollup[] | "\(.conclusion // "pending")\t\(.name)\t\(.workflowName // "")\t\(.detailsUrl // "")"'
Summarize: counts of pass / fail / pending. If anything failed, fetch the relevant run's failure log via `gh run view --log-failed | tail -40` and quote the actual error in 2-3 lin
Alternatives in Git
- Worktree Deliver — Commit all work, push, and create a pull request from the current worktree 23.4k ★
- PR Summary — Generate a pull request summary for the current branch 5.8k ★
- Git Status — Read the Files and run the Commands and summarize the current state of the git repository 3.4k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
GitHub Review Failures
Use when CI checks are failing on a PR — fetches failure logs, diagnoses root causes, implements fixes, and pu
Quality Gates
Run the project's quality gates — plus any failure class the current PR's live CI is red on — fix failures at
Address Review Preexisting Unrelated Precommit Failure
Use when a local pre-merge/pre-push gate goes red on work your PR did not introduce. Covers two verified varia
Git Context
!git status --short !git branch --show-current !git log -3 --oneline !git diff --stat --- Based on the changes
Dev Status
Show current git branch, uncommitted files, and recent commits
Stack List
Show the current stack — the chain of branches from the current branch up to main, plus any descendants below
Related Agents
Failure Diagnostician
Use when a check is red or a run crashed and the cause is not obvious, or to reproduce a claimed defect/histor
UI Smoke
Fast, read-only smoke check of a running UI (Haiku, low effort): is the page or screen up, does it show text X
Example CI Investigator
Classify a concrete CI failure or review-check discrepancy from logs and workflow files. Read-only diagnosis;