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