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 mmalyskav1.3.13MITIn 1 marketplace
Git discipline and automation — enforces worktree-first development with a pre-write hook, plus PR creation and commit conventions
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
git, github, pull-request, commit, workflows, megalinter, worktree, hooks
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Git discipline and automation for Claude Code and Codex.
Both hosts load the same workflow skills. Codex explicitly disables the bundled
hooks: worktree rules are procedural guidance there. The hook behavior below
applies to Claude Code only. Rules are also available on demand through the
git-workflows-rules skill.
Default STANDARD + SOLO applies to the shared engineering workflow. Other actor topologies require explicit user authorization before capability checks. This plugin works alone: worktree creation/finishing, commit and PR procedures have local checks and manual paths, without a required lifecycle or Superpowers plugin. Existing command names and shared skill directories remain unchanged.
Claude's native entrypoints/hooks and Codex's shared-skill discovery do not create
equal enforcement: Codex has hooks: [] and no automatic rule injection. A native
agent definition is not a registered Codex agent. Read the relevant rule skill;
installation alone cannot intercept every arbitrary prompt. Missing delegation,
scanner, scheduler or service is a limitation to report, not permission to install
it, start another harness or claim successful background work.
The repository's capability matrix and consumer strategy records host loading/enforcement limits, manual OpenCode and deferred migrations. This external maintainer reference adds no runtime dependency. Existing command names below stay unchanged. Readiness grants no delivery permission; a GitOps/HCP merge with runtime effects needs fresh explicit impact/rollback authorization. Native verification and consumer fresh/reapply evidence remain separate release acceptance gates; installing shared procedures does not satisfy them.
This plugin installs a hook that runs before every file write and every git mutation, in every repo you use Claude Code in. The agent-toolkit plugin also includes optional inventory scripts.
The hook enforces one rule: the primary checkout is never a workspace. It stays on the default branch with a clean tree, and work happens in .worktrees/<branch>.
default and plan mode, naming the repo and branch. In auto, acceptEdits, dontAsk and bypassPermissions it denies instead — those modes answer their own prompts, so an ask there is granted silently and enforces nothing. An unrecognised mode falls back to ask.isolation: "worktree"..git/, inside a submodule, or outside any repo are untouched. So are read-only commands — git status, grep, sed -n, and test runs never pay a cost.Bash it intercepts two things. Unambiguous git mutations: commit, merge, rebase, cherry-pick, revert, apply, stash pop/apply, and checkout/switch to a non-default branch. git pull, git fetch, and git worktree add are deliberately left alone — they are how the primary checkout stays current and how worktrees get made. And shell writes: >, >>, tee, sed -i, heredoc redirects, cp, mv, rm, mkdir and friends.echo x > /tmp/f from the primary checkout is allowed; echo x > /abs/path/into/primary from a worktree is caught. A cd earlier in the command line moves the base that relative paths resolve against.echo "alert at >3" or a comparison in a heredoc is not mistaken for a redirect. A quoted string that is a single path (> "/abs/path/into/primary") is still classified, and an unterminated quote is left as it was, so it can only over-flag. A path under <repo>/.worktrees/ counts as a worktree even before git worktree add has created it, so creating a worktree and writing into it in one command is allowed.python -c "open('f','w')" and the like. The worktree-workflow.md rule covers those; the hook is a backstop, not a fence.jq is missing or anything errors, the write proceeds. A broken guard must never brick every write on your machine — but it does mean no jq means no enforcement.Explicit primary maintenance must already be authorized. CLAUDE_ALLOW_MAIN_EDITS=1
disables the Claude hook but does not grant that authority or override task scope.
If worktree creation is blocked, stop writes rather than silently edit primary.
Missing jq/fail-open hook behavior does not waive procedural isolation.
macOS and Linux. Windows is not supported.
npx claudepluginhub mmalyska/claude-plugins --plugin git-workflowsBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground