Agent Skillsrustfs/rustfs › pr-creation-checker

pr-creation-checker

GitHub

用于在创建或更新 PR 前进行最终预检,验证分支范围、CI 状态及元数据合规性,确保符合规范后输出 READY/BLOCKED 状态。

.agents/skills/pr-creation-checker/SKILL.md rustfs/rustfs

Trigger Scenarios

准备提交 Pull Request 更新现有 Pull Request

Install

npx skills add rustfs/rustfs --skill pr-creation-checker -g -y
More Options

Non-standard path

npx skills add https://github.com/rustfs/rustfs/tree/main/.agents/skills/pr-creation-checker -g -y

Use without installing

npx skills use rustfs/rustfs@pr-creation-checker

指定 Agent (Claude Code)

npx skills add rustfs/rustfs --skill pr-creation-checker -a claude-code -g -y

安装 repo 全部 skill

npx skills add rustfs/rustfs --all -g -y

预览 repo 内 skill

npx skills add rustfs/rustfs --list

SKILL.md

Frontmatter
{
    "name": "pr-creation-checker",
    "description": "Perform the final RustFS PR preflight and draft compliant English title\/body metadata immediately before creating or updating a PR. Do not use during implementation or as a second general code review."
}

PR Creation Checker

Use this skill only at the PR boundary. Reuse completed diff review and verification evidence; do not reread the repository or rerun equivalent checks.

Preflight

  1. Confirm the branch is based on current origin/main and contains only the intended task diff.
  2. Inspect git diff --stat, git diff --check, and changed file names for secrets, logs, generated artifacts, or unrelated edits.
  3. Confirm the checks selected by root AGENTS.md passed on the final diff. Do not replace focused behavioral tests with a generic gate or rerun checks already covered by an unchanged umbrella run.
  4. Read .github/pull_request_template.md. Consult Makefile, .config/make/, or CI only when the required command/current gate is uncertain.
  5. Return BLOCKED for an unclean scope, missing required evidence, failed required checks, or non-compliant metadata.

Metadata

  • Title: English Conventional Commit, at most 72 characters, with no tool prefix.
  • Body: English, exact template headings, N/A where needed, concise rationale, actual verification commands, and material risks/rollback notes.
  • Use repository-relative paths; never include local absolute paths.
  • Keep prose paragraphs on one logical line and never include the literal sequence \n.
  • Use a temporary body file with gh pr create --body-file or gh pr edit --body-file; never pass multiline Markdown inline.

Output

  • Status: READY or BLOCKED.
  • Title.
  • Complete PR body.
  • Verification commands and results.
  • Risks or N/A.

Immediately before the GitHub write, repeat only the five preflight checks above against the final head.

Version History

  • 0fe41da Current 2026-08-29 02:10

    优化指令路由,简化流程说明

  • 0d129ec 2026-08-20 14:32

Same Skill Collection

.agents/skills/adversarial-validation/SKILL.md
.agents/skills/arch-checks/SKILL.md
.agents/skills/code-change-verification/SKILL.md
.agents/skills/plugin-contract-guard/SKILL.md
.agents/skills/rust-code-quality/SKILL.md
.agents/skills/rustfs-logging-governance/SKILL.md
.agents/skills/rustfs-release-publish/SKILL.md
.agents/skills/rustfs-release-version-bump/SKILL.md
.agents/skills/security-advisory-lessons/SKILL.md
.agents/skills/test-coverage-improver/SKILL.md
.agents/skills/tier-debug/SKILL.md
.mimocode/skills/issue-triage/SKILL.md
.mimocode/skills/pr-review/SKILL.md

Metadata

Files
0
Version
0fe41da
Hash
4c85a6b8
Indexed
2026-08-20 14:32

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 21:51
浙ICP备14020137号-1 $Carte des visiteurs$