diazmelgarejo/orama-system/git-pending-push-guard

Claude Code and agent skill by diazmelgarejo/orama-system

Trust tier 3
  • community
Source check pending

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-guard

SKILL.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 push after any --no-commit merge, cherry-pick, or revert
  • When pre-push prints GIT_PUSH_E_PENDING_*
  • When a PR describes a merge but git diff base...head is near-empty

Quick check

text
scripts/git/check_no_pending_merge.sh
# exit 0 = OK; 1–4 = see reference card KB table

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.

bash
git -c core.hooksPath=/dev/null push --force-with-lease origin <branch>
bash scripts/git/install-local-hooks.sh # before the next ordinary commit

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)

ExitSymbol
0GIT_PUSH_OK
1GIT_PUSH_E_PENDING_MERGE_CLEAN
2GIT_PUSH_E_PENDING_MERGE_CONFLICT
3GIT_PUSH_E_PENDING_CHERRY_PICK
4GIT_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_HEAD or REVERT_HEAD is 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/diazmelgarejo/orama-system/git-pending-push-guard/badge)](https://verified-skill.com/skills/diazmelgarejo/orama-system/git-pending-push-guard)

Something wrong with this skill or its page? Tell us.