git-tidy

by Bakhtiyar Ospanov · ★ 0 · updated 2 days ago

Status lineGuardsPromptvalidates

0

Keeps git history tidy: commit messages in Conventional Commits with no Claude credit, then a Haiku review of the body; a push to a branch that already landed is refused; an MR whose branch lacks the target's latest commit is refused; a pushed series must leave the project working at every commit; follow-up commits and MRs carrying several features are held for the user.

install git-tidy

Install

/plugin marketplace add bahaospanov/skills
/plugin install git-tidy@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.call
API calls
$.env.get$.fs.read$.model.complete$.process.run$.session.cwd$.session.messages$.ui.log$.ui.status
Can see
every promptBash calls
Reach
level 2 of 3 runs processesdrives Claudereads filesreads env varsreads the transcriptdraws

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-tidy
Source commit
01c436e 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-cleanup

bahaospanov/skills

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 is removed at the end of the turn, with one line saying what went.

★ 0GuardsPromptAutomation

git-gates

bahaospanov/skills

Gates git work on the user's word: no commit, push, MR opening or merge without their say-so in the current turn, a protected branch named, a grant for a commit per task; a negated keyword does not count.

★ 0GuardsPromptTools & agents

issue-first

bahaospanov/skills

Feature work starts from an issue, and each commit names its own: a feat commit naming none is refused until Claude finds the issue, drafts one the user agrees to, or the user says it needs none; a commit whose subject does not end with the issue the user or the branch named gets a suggestion.

★ 0GuardsPromptAutomation

lean-comments

bahaospanov/skills

Comments worth keeping: limit-edits flags comment-heavy edits, limit-turns shows a one-line notice when a turn's diff adds too many comments.

★ 0GuardsPromptAutomation

lean-docs

bahaospanov/skills

Docs worth keeping: docs-review asks Haiku whether new text will be read again, docs-no-repeat-code flags lines that may restate code, limit-docs shows a one-line notice when a turn adds too much prose.

★ 0Status lineGuardsPrompt

lean-scripts

bahaospanov/skills

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

★ 0Status lineGuards