Skip to content
cccskills
FreePublished on GitHub

pr-preflight

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.

The English summary is being prepared. Showing the original description.

Works withGitHub
See how to install

Files included (1)

  • SKILL.md2.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

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

FlagPurpose
--repo OWNER/REPOOverride repository (default: auto-detect via gh)
--no-testsSkip local test gates (useful when you just want CI + metadata check)

Exit codes

CodeMeaning
0All checks passed — ready to merge
1Script error (missing tool, network failure)
2Not 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:

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):

git config core.hooksPath .githooks

What blocks merge

The script reports NOT_READY if any of these are true:

  • PR is not in OPEN state
  • PR is still a draft
  • Merge state is not CLEAN or HAS_HOOKS
  • Any CI check is failing
  • Any CI check is still pending
  • Local gates (lint/format/tests) fail
  • PR body policy fails, such as missing evidence for runtime/viewer/client changes

Typical workflow

# 1. Make sure local gates pass
uv run ruff check . && uv run ruff format --check . && uv run pytest tests/ -x --timeout=60

# 2. Push and open PR
git push origin my-branch
gh pr create --title "feat: ..." --body "..."

# 3. Wait for CI, then run full preflight
scripts/check_pr.sh <pr_number>

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Run PR-grade real Codex E2E validation through claude-tap, including resume turns, multiple tool calls, optional image input, viewer verification, and screenshot evidence.

The English summary is being prepared. Showing the original description.

liaohch3/claude-tap3.3KUpdated Oct 18, 2026

Generate demo assets (GIF/MP4) from real tmux E2E runs and viewer screenshots using asciinema and Playwright

The English summary is being prepared. Showing the original description.

liaohch3/claude-tap3.3KUpdated Oct 18, 2026

Run claude-tap end-to-end tests with pytest

The English summary is being prepared. Showing the original description.

liaohch3/claude-tap3.3KUpdated Oct 18, 2026

Test JS logic embedded in HTML using two-layer strategy - Python unit tests + Playwright browser integration tests

The English summary is being prepared. Showing the original description.

liaohch3/claude-tap3.3KUpdated Oct 18, 2026

Validate maintainer docs structure, standards freshness, manifest paths, and plan state. Run this after modifying any file under .agents/docs/standards/, .agents/docs/plans/, .agents/docs/architecture/, or AGENTS.md — it catches stale metadata, broken manifest paths, and plan state drift before CI does.

The English summary is being prepared. Showing the original description.

liaohch3/claude-tap3.3KUpdated Oct 18, 2026

Record browser test videos with Playwright for PR review and bug fix verification

The English summary is being prepared. Showing the original description.

liaohch3/claude-tap3.3KUpdated Oct 18, 2026

See all skills by liaohch3

Report a problem with this skill