# git-stinger

git-stinger guides agents through complex Git tasks, from reflog recovery and interactive rebase to safe disposable sandbox practice exercises.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 96 repo stars
- Author: Legion Code Inc.
- License: AGPL-3.0-or-later · policy=link-only · description only; the file stays with the author
- Source: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/wasp-nest-core/skills/git-stinger/SKILL.md
- Updated: 2026-10-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/git-stinger

## What it does

\`git-stinger` equips agents with structured playbooks for advanced Git procedures inside Claude Code and Codex. It covers interactive rebasing with autosquash, conflict resolution using `rerere`, and parallel workspace isolation with `git worktree`. History scrubbing relies on `git-filter-repo` and BFG rather than obsolete tooling.

For hands-on learning, the skill runs `scripts/practice-git.py` to create ephemeral synthetic repositories. This keeps early experiments completely separate from your production files. Destructive operations strictly require an escape route first, such as showing `git reflog` before running `git reset --hard` or generating a bundle backup. It mandates `--force-with-lease` over raw force-pushes.

Running practice exercises requires an accessible Python installation. Advanced commands also demand modern Git binaries: stable worktrees need version 2.15, while cone-mode sparse checkouts require at least Git 2.25.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add legioncodeinc/vibe-coding-tools
```
In the agent chat (not a shell):
```text
/plugin install wasp-nest-core@wasp-nest
```
This installs the whole wasp-nest-core plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill git-stinger -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/git-stinger/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/git-stinger/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill git-stinger -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/git-stinger/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill git-stinger -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/git-stinger/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install legioncodeinc/vibe-coding-tools plugins/wasp-nest-core/skills/git-stinger
```

2. **Manually: put the files in place**
- File: `.github/skills/git-stinger/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill git-stinger -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/legioncodeinc/vibe-coding-tools --path plugins/wasp-nest-core/skills/git-stinger
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/git-stinger/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/wasp-nest-core/skills/git-stinger/SKILL.md

## When to use it
- recover deleted commits or branches using reflog
- squash and reorder commits during interactive rebase
- isolate branch development using git worktree
- purge leaked credentials from repository history with git-filter-repo
- run Git practice exercises in an isolated temporary repository

## Example prompts
- I ran a hard reset by mistake, help me find the lost commit hash in reflog.
- Help me rebase the last three commits interactively and squash the fixups.
- Spin up a temporary Git practice repository to test branching commands.

## Similar
- [git-master](https://affpapa.org/en/nevibecode/skills/git-master.md) — skill · 822 installs
- [git-advanced-workflows](https://affpapa.org/en/nevibecode/skills/git-advanced-workflows.md) — skill · 19356 installs
- [git-safety-net](https://affpapa.org/en/nevibecode/skills/git-safety-net.md) — skill · 362 installs
- [git-workflow-and-versioning](https://affpapa.org/en/nevibecode/skills/git-workflow-and-versioning.md) — skill · 75700 installs
- [git-rebase](https://affpapa.org/en/nevibecode/skills/git-rebase.md) — skill · 401 installs
- [git-integrate](https://affpapa.org/en/nevibecode/skills/git-integrate.md) — skill · 391 installs

From the same set: [legioncodeinc/vibe-coding-tools](https://affpapa.org/en/nevibecode/by/legioncodeinc/vibe-coding-tools.md) — 172 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
