跳到正文
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.

中文简介正在准备中。当前显示原文说明。

集成工具GitHub
查看安装方法

包含的文件(1)

  • SKILL.md2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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>

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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-tap32992026年10月20日 更新

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

中文简介正在准备中。当前显示原文说明。

liaohch3/claude-tap32992026年10月20日 更新

e2e-test

免费

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

中文简介正在准备中。当前显示原文说明。

liaohch3/claude-tap32992026年10月20日 更新

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

中文简介正在准备中。当前显示原文说明。

liaohch3/claude-tap32992026年10月20日 更新

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-tap32992026年10月20日 更新

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

中文简介正在准备中。当前显示原文说明。

liaohch3/claude-tap32992026年10月20日 更新

查看 liaohch3 的全部技能

报告此技能的问题