pre-submit-pr
Installation
SKILL.md
Pre-Submit PR Check
Comprehensive validation before submitting a pull request. Run this before creating or updating a PR.
Instructions
-
Check branch freshness (BLOCKING):
- Run
git fetch origin mainto get latest main - Run
git rev-list --count HEAD..origin/mainto check commits behind - If > 0 commits behind, merge main before proceeding:
git merge origin/main - This prevents "branch out of date" issues on GitHub
- Run
-
Run all automated hooks:
bash .claude/hooks/lint.sh- format check (includes ruff format + ruff check)bash .claude/hooks/test.sh- run testsbash .claude/hooks/check-debug.sh- find debug code