diazmelgarejo/orama-system/git-pending-push-guard
Claude Code and agent skill by diazmelgarejo/orama-system
- community
Checking that the SKILL.md file is still in the repository.
Block git push while MERGE_HEAD, CHERRY_PICK_HEAD, or REVERT_HEAD is set after a --no-commit merge/cherry-pick/revert. KB exit codes 1–4, conflict vs clean merge detection, periscope PR #39 remediation. Triggers on: MERGE_HEAD, pre-push blocked, empty PR after merge, no-commit merge, CHERRY_PICK_HEAD, REVERT_HEAD, pending git operation before push, GIT_PUSH_E_PENDING.
Install
npx vskill@latest install diazmelgarejo/orama-system/git-pending-push-guardSKILL.md
The same SKILL.md was published earlier as diazmelgarejo/orama-system/git-pending-push-guard.
Git Pending Push Guard
Thin entrypoint. Full invariant, diagrams, KB table, and decision log:
When to Use
- Before
git pushafter any--no-commitmerge, cherry-pick, or revert - When pre-push prints
GIT_PUSH_E_PENDING_* - When a PR describes a merge but
git diff base...headis near-empty
Quick check
Pre-push hook runs this automatically (.githooks/pre-push).
Exception: active history surgery
While a rewrite/expunge is in progress (filter-repo, filter-branch, expunge-*.sh, post-rewrite force-push), disable hooks for that window — do not rely on pre-push to block or validate. Hooks are preventive for normal commits; during surgery they false-block and stall multi-branch publishes.
Full protocol: `../git-history-surgery/references/history-surgery-hooks-safeguard-reference-card.md`.
After surgery completes, this skill's pending-operation checks apply again to every normal push.
KB exits (summary)
| Exit | Symbol | |
|---|---|---|
| 0 | GIT_PUSH_OK | |
| 1 | GIT_PUSH_E_PENDING_MERGE_CLEAN | |
| 2 | GIT_PUSH_E_PENDING_MERGE_CONFLICT | |
| 3 | GIT_PUSH_E_PENDING_CHERRY_PICK | |
| 4 | GIT_PUSH_E_PENDING_REVERT |
Boundaries
Always Do
- Run the quick check before any push that follows a no-commit merge, cherry-pick or revert.
Ask First
- Bypassing the guard (document why).
Never Do
- Push while
MERGE_HEAD,CHERRY_PICK_HEADorREVERT_HEADis set.
Parent skill
`../git-history-surgery/SKILL.md` — decision item 11.
Before any push, verify reports against live origin and local code: `../../references/integration-synthesis-and-verification.md`.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbin/orama-system/skills/git-pending-push-guard/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diazmelgarejo/orama-system/git-pending-push-guard)