ワンクリックで
pre-push
Run all validations before pushing to remote
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run all validations before pushing to remote
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Orchestrate complete issue implementation workflow from branch to PR
Create Pull Requests with pre-flight checks and proper formatting
Decompose a large GitHub Issue (epic, refactor, or feature) into subtask Issues, each small enough for a single focused PR
Standardized release workflow with version updates and CHANGELOG management
Spawn a Reviewer Agent to evaluate code changes against architecture, design, and quality criteria
Create commits with code quality checks and conventional commit messages
| name | pre-push |
| description | Run all validations before pushing to remote |
Final validation before pushing commits to remote repository.
Validate branch conventions and push commits to remote. Quality checks (fmt, clippy, tests)
are delegated to the .githooks/pre-push hook, which runs automatically when git push executes.
Hook delegation:
cargo fmt --all -- --check,cargo clippy --all-targets --all-features -- -D warnings, andcargo test --allare all run by.githooks/pre-pushon everygit push. Runmake setuponce to activate the hook if you haven't already.
All of the following MUST pass before pushing:
git branch --show-current
Verify branch name follows convention based on Issue labels (priority order):
| Priority | Issue Label | Branch Prefix | Example |
|---|---|---|---|
| 1 | enhancement | feature/ | feature/84-agent-skills |
| 2 | bug | bugfix/ | bugfix/42-fix-parsing |
| 3 | refactor | refactor/ | refactor/30-cleanup-code |
| 4 | documentation | doc/ | doc/50-update-readme |
| 5 | (no label) | feature/ | feature/99-misc-task |
Additional: hotfix/<issue>-<desc> for critical production fixes
FORBIDDEN branches for direct push:
main - Use PR onlydevelop - Use PR only (if applicable)git remote -v
git branch -vv
Verify:
origin)BRANCH=$(git branch --show-current)
echo "Current branch: $BRANCH"
Verify:
main or developgit log origin/$(git branch --show-current)..HEAD --oneline 2>/dev/null || git log --oneline -5
Review what will be pushed.
Before pushing, confirm:
.githooks/pre-push hook is active (make setup has been run)git push -u origin $(git branch --show-current)
The .githooks/pre-push hook will automatically run cargo fmt --all -- --check,
cargo clippy --all-targets --all-features -- -D warnings, and cargo test --all
before the push completes.
If the .githooks/pre-push hook reports a failure:
/pre-pushWARNING: You are on branch 'main'. Direct pushes to main are not allowed.
CRITICAL: Always create branches from origin/develop:
git fetch origin
git checkout -b feature/<issue>-<description> origin/develop
developIf the hook does not run (no [pre-push] output during push):
make setup
Then re-run the push.
User: "pushする前にチェックして"
Claude executes /pre-push skill:
feature/84-agent-skills - VALIDgit push -u origin feature/84-agent-skills.githooks/pre-push runs fmt/clippy/test automaticallyAfter push completes successfully, output:
Pre-push Complete
=================
[PASS] Branch: feature/84-agent-skills (valid naming)
[PASS] Hook: cargo fmt, clippy, tests passed
[INFO] Commits pushed: X commits
Pushed to origin/feature/84-agent-skills