git-cleanup

by Bakhtiyar Ospanov · ★ 0 · updated yesterday

GuardsPromptAutomationvalidates

0

Cleans up after merged work, once it shipped: removing a branch needs git, the forge or the user to say it merged; removing it or filling in its issue waits for the pipeline holding it to pass; merged, clean work gets a follow-up to remove its worktree and branches.

install git-cleanup

Install

/plugin marketplace add bahaospanov/skills
/plugin install git-cleanup@bahaospanov

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
prompt.submittool.callturn.complete
API calls
$.clock.after$.env.get$.fs.read$.http.fetch$.process.run$.prompt.submit$.ui.log
Can see
every promptBash calls
Reach
level 3 of 3 networkruns processesdrives Claudereads filesreads env varsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/bahaospanov/skills
Path in repo
git-cleanup
Source commit
b63fe7b the exact code the scan read
Author
Bakhtiyar Ospanov @bahaospanov
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from bahaospanov/skills

git-gates

bahaospanov/skills

Gates git work: no commit, push or merge without the user's say-so in the current turn; a push to a branch that already landed is refused; a pushed series must leave the project working at every commit; commit messages (format and the issue it is about, then a Haiku review of the body) and MR descriptions kept tidy.

★ 0Status lineGuardsPrompt

lean-comments

bahaospanov/skills

Comments worth keeping: limit-edits flags comment-heavy edits, limit-turns sends a follow-up when a turn's diff adds too many comments.

★ 0GuardsAutomation

lean-docs

bahaospanov/skills

Docs worth keeping: docs-review asks Haiku whether new text will be read again, docs-no-repeat-code blocks lines that restate code, limit-docs sends a follow-up when a turn adds too much prose.

★ 0Status lineGuards

lean-scripts

bahaospanov/skills

Scripts worth keeping: scripts-review asks Haiku whether a new script could just be typed again when needed.

★ 0Status lineGuards