Skip to content
Back to skills

Eval Test Skill

ASecurity

Git branch cleanup utility. Lists and deletes branches that have been merged to main. Use when user wants to clean up old branches, delete merged branches, or tidy up their git repository.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
toolsbashgit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill eval-test-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Eval Test Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Eval Test Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-eval-test-skill/badge)](https://www.skillsdirectory.com/skills/majiayu000-eval-test-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: eval-test-skill
description: Git branch cleanup utility. Lists and deletes branches that have been merged to main. Use when user wants to clean up old branches, delete merged branches, or tidy up their git repository.
---

# Git Branch Cleanup

Clean up merged git branches from local repository.

## Workflow

1. **List merged branches** - Show branches already merged to main
2. **Confirm deletion** - Ask user which branches to delete
3. **Delete branches** - Remove selected merged branches

## Commands

### List merged branches

```bash
git branch --merged main | grep -v "^\*\|main\|master"
```

### Delete a single branch

```bash
git branch -d <branch-name>
```

### Delete all merged branches (except main/master)

```bash
git branch --merged main | grep -v "^\*\|main\|master" | xargs -r git branch -d
```

## Safety

- Only delete branches merged to main (use `-d` not `-D`)
- Never delete `main` or `master`
- Never delete currently checked out branch
- Show list before deletion for user confirmation

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.