AgentSkillsCN

b4push

运行全面的推送前验证,涵盖构建、测试与文档站点。在以下情况下使用:(1) 完成PR或功能实现时;(2) 在推送重大变更之前;(3) 在大型重构或多文件编辑之后;(4) 当用户说“b4push”、“before push”、“check everything”、“run all checks”或“ready to push”时。

SKILL.md
--- frontmatter
name: b4push
description: >-
  Run comprehensive pre-push validation covering builds, tests, and doc site.
  Use when: (1) Completing a PR or feature implementation, (2) Before pushing significant changes,
  (3) After large refactors or multi-file edits, (4) User says 'b4push', 'before push', 'check
  everything', 'run all checks', or 'ready to push'.
user-invocable: true
allowed-tools:
  - Bash

Before Push Check

Run pnpm b4push from the project root. This executes scripts/run-b4push.sh which runs all checks in order:

  1. Build kumiko-gen package
  2. Test kumiko-gen package
  3. Build kumiko-gen-viewer
  4. Doc data generation - doc-titles.json + category-nav.json
  5. Doc site build - Full Docusaurus production build

All steps must pass.

On failure

  1. Read the failure output to identify which step failed
  2. Fix the issue
  3. Re-run pnpm b4push to confirm all checks pass
  4. Report the final status