PlaygroundCatalog › Git Troubleshooter
GT

Git Troubleshooter

🔵 Stable🕐 updated 2026-06-21 ✅ 4/5 🔷 SkillSpec L3 pm-engineering

Diagnose a tangled git situation and give the exact, safe commands to fix it. Use when asked to undo a commit, recover lost work, fix a bad merge or rebase, resolve a detached HEAD, unstage files, or get out of a git mess. Produces the diagnosis, the precise commands to run in order, what each does, and a recovery note if something goes wrong.

▶ Run it free — no key needed 📝 Grade your existing draft View SKILL.md ↗

✅ The bar it holds itself to

Every skill in this library self-verifies — these are this skill's own quality checks, straight from its definition.

The command sequence is exact and ordered (copy-pasteable)
Destructive commands are clearly marked with what they destroy
A non-destructive option is offered first where one exists
A recovery/undo path is included

⚠️ What it refuses to do

Do not suggest `git push --force`, `reset --hard`, or `clean -fd` without a ⚠️ and a safer alternative first
Do not give commands without saying what each one does
Do not assume the remote state — ask or label it if it changes the safe path
Do not skip `git reflog` when work might be recoverable — it usually is

Install

npx pm-claude-skills add --agent claude   # or codex · cursor · gemini · hermes
# or one-line MCP (every skill, any client):
claude mcp add pm-skills -- npx -y pm-claude-skills-mcp

Start with

Related skills

🔌 Embed this skill

Drop this on your blog, docs, or site — it renders a "Run this skill" card:

<div data-pm-skill="git-troubleshooter"></div>
<script src="https://mohitagw15856.github.io/pm-claude-skills/embed.js" async></script>

💬 Discussion

Git Troubleshooter is one of 599 open-source professional AI agent skills — all SkillSpec L3. Try them all in the browser · ⭐ Star on GitHub · Browse the full catalog