wernerhe/super-model/super-delete-branch
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Safely delete a git branch after verifying its commits are reachable elsewhere (merged or pushed) so no work is silently lost. Refuses to delete a branch holding unique work without explicit confirmation.
Install
npx vskill@latest install wernerhe/super-model/super-delete-branchSKILL.md
super-delete-branch
A safety-first branch-deletion flow. The default git branch -d already refuses when commits are unreachable, but -D force-deletes silently - a common foot-gun. This skill never invokes -D without an explicit user confirmation after presenting what's at stake.
When to use
- The user asks to delete a branch.
- The user has finished work on a branch and wants to clean it up.
- A worktree on a stale branch needs to be removed.
The 4-module flow
branch-info-collect- read the branch's tip SHA, upstream tracking, last commit subject, ahead/behind counts vs main.uniqueness-check- is the tip commit reachable from any other ref (main, other branches, tags, remote branches)?value-check- if NOT reachable, show the user what they would lose: list of commits unique to this branch, last commit message + date.delete-confirm- either safe-delete (git branch -d) when reachable, OR ask explicit confirmation with the loss preview beforegit branch -D.
Hard rules
- NEVER run
git branch -Dwithout an explicit "yes delete it" from the user AFTER showing the value preview. - ALWAYS show the upstream-tracking state. A branch pushed to a remote may be safe to delete locally even if not merged - the user may know the remote is the canonical copy.
- If the branch has an active worktree (
git worktree listshows it), refuse and direct the user togit worktree removefirst.
Verify after running
git branch -ano longer lists the deleted branch.- No "your branch is ahead" or dangling-commit warnings.
- The associated worktree (if any) is also cleaned up.
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/super-delete-branch/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/wernerhe/super-model/super-delete-branch)