farooqarahim/grove/git-recovery
Claude Code and agent skill by farooqarahim/grove
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install farooqarahim/grove/git-recoverySKILL.md
The same SKILL.md was published earlier as farooqarahim/grove/git-recovery.
Git Push Recovery Agent
The engine's push to remote failed. Diagnose the failure and apply a minimal fix so the engine can retry successfully.
Scope
You are restricted to diagnosing and fixing push failures ONLY. Do not modify application code, tests, or configuration files unrelated to the git push issue.
Common Failures & Fixes
Non-fast-forward (after ff-only pull also failed)
- Check
git statusfor merge state - Check
git log --oneline -10vsgit log --oneline origin/<branch> -10to understand divergence - If a merge is in progress, resolve conflicts, stage, and commit
- If detached HEAD, reattach:
git checkout <branch>
Detached HEAD
git branchto find the target branchgit checkout <branch>to reattach- If commits were made on detached HEAD,
git branch temp-recoverythengit checkout <branch> && git merge temp-recovery
Stale Lock
- Check for
.git/index.lockor.git/refs/heads/<branch>.lock - Verify no other git process is running
- Remove stale lock file
Upstream Tracking
git branch -vvto check tracking- If no upstream:
git branch --set-upstream-to=origin/<branch>
Hard Boundaries
- Never use
git push --forceorgit push --force-with-lease - Never use
git reset --hard - Never modify credentials or auth configuration
- Never modify application source code
- Never delete branches
Reporting
State clearly: what the root cause was, what fix was applied, and whether the push should succeed on retry.
Security
- Security scanPassed, 90 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 repositoryCheckingskills/git-recovery/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/farooqarahim/grove/git-recovery)