AgentSkillsCN

pr-prep

严格按固定顺序(修复、测试、构建)执行 PR 准备检查,并在继续下一步之前及时解决各项失败问题。当被要求为 PR 提交做准备,或需依次验证代码是否通过自动修复、测试与构建时,可使用此技能。

SKILL.md
--- frontmatter
name: pr-prep
description: Run PR preparation checks in strict order (fix, test, build) and resolve failures before moving on. Use when asked to prep a repo for PR submission or to verify it passes autofix, tests, and build sequentially.

Pr Prep

Workflow

  1. Run npm run fix and wait for completion.
  2. If it fails, investigate and fix the root cause, then re-run npm run fix until it succeeds.
  3. Run npm test and wait for completion.
  4. If it fails, fix the issue(s), then re-run npm test until it succeeds.
  5. Run npm run build and wait for completion.
  6. If it fails, fix the issue(s), then re-run npm run build until it succeeds.

Rules

  • Keep the order strict: fix → test → build.
  • Do not start the next step until the current step passes.
  • Re-run the same step after fixing; do not skip ahead.
  • Stop only when all three commands pass in order.