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.
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.
Enforces a draft-first PR workflow: PRs are always created as drafts, and marking one ready for review is a deliberate, confirmed action.
gh_pr_draft_gate.py runs on every Bash tool call (PreToolUse). It no-ops
unless the command contains a gh pr create or gh pr ready invocation.
gh pr createDenied unless the exact token --draft or -d is present (shorthand
clusters like -df aren't parsed and are treated as missing --draft).
-h/--help and --dry-run are always allowed, since neither actually
creates a PR.
gh pr readyAlways asks for confirmation, since this transitions a PR out of draft.
--undo (which moves a PR back into draft) and -h/--help are allowed
without asking.
Compound commands are split on &&, ||, ;, newlines, |, and &, then
each piece is tokenized with shlex. If a quoted argument happens to contain
one of those characters (e.g. --title "a && b"), splitting can sever the
quote and shlex will fail to tokenize the resulting piece — when that
happens, the hook falls back to a regex-only check over the original,
unsplit command rather than allowing the command through.
This is a local safety net, not a hard security boundary: it doesn't expand
shell aliases the way git-hooks does, so a personal alias like
ghpr='gh pr create' bypasses it.
Python 3.11+ (no third-party dependencies).
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 steeef/claude-hooks --plugin gh-workflowPlugins from other owners that cover similar ground