本文へ移動
cccskills
無料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.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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>

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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

日本語の概要は準備中です。原文の説明を表示しています。

liaohch3/claude-tap3,2772026年10月10日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

liaohch3/claude-tap3,2772026年10月10日 更新

e2e-test

無料

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

日本語の概要は準備中です。原文の説明を表示しています。

liaohch3/claude-tap3,2772026年10月10日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

liaohch3/claude-tap3,2772026年10月10日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

liaohch3/claude-tap3,2772026年10月10日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

liaohch3/claude-tap3,2772026年10月10日 更新

liaohch3 のスキルをすべて見る

このスキルの問題を報告する