pre-push-verification
Execute lint, test, and build checks before pushing code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute lint, test, and build checks before pushing code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Pre-push Verification |
| description | Execute lint, test, and build checks before pushing code |
| instructions | This skill runs the pre-push verification command to ensure code quality. |
This skill executes all mandatory checks before pushing code to ensure code quality and prevent CI failures.
Runs the following checks in sequence:
Simply run:
npm run pre-push
Or have Claude Code execute this skill when preparing to push code.
npm run lint:check)npm run test)npm run build)npm run pre-push to verify changesgit pushThe command displays:
The tool will stop at the first failure. Follow these steps:
Lint failures:
npm run lint # Auto-fix most issues
npm run lint:check # Verify fixes
Test failures:
npm run test # Review error messages
# Fix failing tests
npm run test # Re-run to confirm
Build failures:
npm run build # Check TypeScript errors
# Fix all errors in source code
npm run build # Re-run to verify
This skill is also enforced by a Git pre-push hook at .git/hooks/pre-push.
Even if you forget to run this skill before pushing, the hook will:
Note: The hook can be bypassed with git push --no-verify, but this is not recommended as it may cause CI failures.
/CLAUDE.md for full development workflowbiome.jsonvitest.config.tsnext.config.ts