Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By tombakerjrv3.0.0MITIn 1 marketplace
Deterministic git guardrails for Claude Code: blocks commits and pushes to main/master, warns once before PR merges, flags uncommitted work when a session stops
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Deterministic git guardrails for Claude Code. Two hooks, no prompt scaffolding:
gh pr merge proceedsThis plugin used to be much bigger: six workflow skills, seven reviewer/implementer agents, model-routing tables, context-injection hooks. All of that was removed in v3.
The reasoning: prescriptive scaffolding written for older models actively degrades output on current ones. Anthropic's model prompting guidance says instructions carried over from prompts tuned for earlier models should be removed rather than rewritten, and Claude Code's creator recommends periodically deleting your CLAUDE.md, skills, and hooks to see what the model does without them — Anthropic itself deleted more than 80% of Claude Code's system prompt for Opus 5 and measured an improvement.
What survives that test here is the part a model can't self-enforce: hard, deterministic checks with exit codes. A hook that blocks a commit to main works whether or not the model is having a good day. That's the bar for anything added to this plugin — a reproducible failure, caught deterministically. Instructions asking the model to behave don't qualify.
The pre-v3 machinery is preserved in git history (v2.x) if you need to resurrect any of it.
/plugin marketplace add tombakerjr/claude-code-workflows
/plugin install dev-workflow@claude-code-workflows
Then restart Claude Code.
git clone https://github.com/tombakerjr/claude-code-workflows.git
/plugin marketplace add /path/to/claude-code-workflows
/plugin install dev-workflow@tombakerjr-claude-tools
Then restart Claude Code.
| Hook | Event | Function |
|---|---|---|
git-guard.py | PreToolUse:Bash | Blocks commits on main/master (worktree-aware: resolves the branch for each git commit via its own -C <path> or the last preceding cd <path> &&), blocks push to main/master, warns once per (session, PR) on gh pr merge |
stop-check.sh | Stop | Emits a systemMessage warning for uncommitted changes, open PRs, or dirty main |
Both dispatch through run-hook.cmd, a batch/bash polyglot that works on
macOS, Linux, and Windows (Git Bash).
The merge warning points at the SHA-anchored review protocol: before merging,
CI must pass (gh pr checks <pr> --watch) and the latest claude[bot] sticky
review comment must be for the current head commit — parse
**Reviewed commit:** <short-sha> from the comment and compare to
gh pr view <pr> --json headRefOid -q .headRefOid. The
claude-code-review.yml workflow in this repo stamps that SHA into its
review comments.
python3 -m unittest hooks.test_git_guard # use `python` on Windows
bash -n hooks/stop-check.sh
Tests are stdlib-only (no pytest) and include end-to-end coverage that invokes the hook exactly as Claude Code does, against real temporary git repos.
MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub tombakerjr/claude-code-workflows --plugin dev-workflowPlugins from other owners that cover similar ground