pr-preflight

Solid

Full pre-PR merge-readiness check. Run this before opening or merging a pull request — it validates local gates (lint, format, tests), CI status, screenshot evidence, and PR metadata in one pass. Also useful for reviewing an existing PR's readiness.

Code & Development 1,021 stars 109 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# PR Preflight One-command merge-readiness check that combines local gates, CI status, and PR policy checks. Mirrors what reviewers look for so issues are caught before review, not during. ## Check an existing PR ```bash scripts/check_pr.sh <pr_number> ``` This runs: 1. **PR metadata** — fetches title, state, draft status, merge state, branch info 2. **CI checks** — counts pass/fail/pending GitHub Actions checks 3. **Local gates** — runs lint, format, and tests locally: - `uv run ruff check .` - `uv run ruff format --check .` - `uv run pytest tests/ -x --timeout=60` 4. **PR body policy** — validates required sections, evidence links, and blocked artifacts 5. **Verdict** — `READY` or `NOT_READY` with specific reasons ### Options | Flag | Purpose | |------|---------| | `--repo OWNER/REPO` | Override repository (default: auto-detect via `gh`) | | `--no-tests` | Skip local test gates (useful when you just want CI + metadata check) | ### Exit codes | Code | Meaning | |------|---------| | 0 | All checks passed — ready to merge | | 1 | Script error (missing tool, network failure) | | 2 | Not ready — at least one check failed | ## Run local gates only (no PR needed) If you haven't opened a PR yet and just want to validate locally: ```bash uv run ruff check . && uv run ruff format --check . && uv run pytest tests/ -x --timeout=60 ``` Or use the pre-commit hook (auto-runs lint on commit): ```bash git config core.hooksPath .githooks ``` ## What blocks merge The s...

Details

Author
liaohch3
Repository
liaohch3/claude-tap
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

github-pr-merge

Merges GitHub Pull Requests after validating pre-merge checklist. Use when user wants to merge PR, close PR, finalize PR, complete merge, approve and merge, or execute merge. Runs pre-merge validation (tests, lint, CI, comments), confirms with user, merges with proper format, handles post-merge cleanup.

63 Updated 1 weeks ago
fvadicamo
Code & Development Listed

pr-merge

Merge a PR locally with fast-forward to preserve GPG-signed commits, then clean up.

0 Updated 2 days ago
AnotherSava
Code & Development Listed

github-pr-merge

MUST use this skill when user asks to merge PR, close PR, finalize PR, or mentions "PR 머지/병합". This skill OVERRIDES default PR merge behavior. Runs pre-merge validation (tests, lint, CI, comments), confirms with user, merges with proper format, handles post-merge cleanup.

335 Updated today
aiskillstore
AI & Automation Listed

pr-lifecycle

Reference document describing PR lifecycle: pre-flight gates (4 conditions), verification gate (5 conditions), body structure (7 sections), reviewer-suggestion algorithm (CODEOWNERS → file expertise → recent activity → workload balance), and finding-ledger merge prerequisite. Reference only (policy document; consumed by `/flow:pr` and `/flow:merge`).

5 Updated yesterday
synaptiai
AI & Automation Listed

refresh-repo

Check PR merge readiness, sync local repo, cleanup stale worktrees; optional cross-repo sweep and stale-branch prune modes

2 Updated yesterday
JacobPEvans