Skip to content

From the author

Removes finished local git work in one automatic pass, with no question and no name to type: dead worktrees first (`git worktree remove`, then `git worktree prune`), then branches already merged into the local `main`, then the branches a squash-merged pull request left behind (tree identical to `origin/main`, tagged before deletion). Trigger for "tidy up", "tidy up these branches", "tidy branches", "delete old branches", "start fresh", "limpieza de branches", "limpia branches", or by naming ai-git-cleanup. A branch that is not merged into `main` is left alone — unless its tree is byte-identical to `origin/main`, which is what a squash-merged pull request looks like afterward; the pass deletes those with the proof in hand, tags the tip, and never force-deletes anything else. Not for pushing, not for remote branches, not for opening a pull request.

Install

npx skills add arcasilesgroup/ai-engineering --skill ai-git-cleanup -a claude-code

Installs to .claude/skills/ai-git-cleanup/ · Each command fetches the skill straight from GitHub with the open skills CLI.

Download .zip

Byte-identical to the scanned commit, with the repository’s licence and a SOURCE.txt.

Want your agent to suggest skills while you type? See how to use skills from your IDE.

Safety checks on SKILL.md

No warnings.

Why 82

Security100
Provenance62
Maintenance100
Licence100
Adoption32

aiqbench computes the trust score from public signals. It is not a security audit, so read a skill before you install it.

Similar skills

Closest to this one by what they do and when they are used.

Ratings & reviews

—

no reviews

Tried this skill? Rate it to help others. Sign in

    Discussion

    Join the discussion. Sign in