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 lexfreiv2.4.0BSD-3-ClauseIn 1 marketplace
Blocks git push and gh pr create until your commits keep Signed-off-by and lose Claude-Session or model-named Assisted-by lines. It runs before publish commands and after commit-writing ones, so a rewrite through a script goes unnoticed until the next such command.
Trending plugins
7-day copy clicks
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
dco, signed-off-by, commit-trailers, git-hooks, pre-push, claude-session
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Guards the trailers of your own commits on the current branch before CI or a reviewer does. It catches three things: a commit that lost its Signed-off-by, a commit carrying a Claude-Session: line, and an Assisted-by: trailer that names a model instead of the neutral Assisted-by: LLM. It reports them after a command that writes, moves or publishes commits, and blocks the commands that would publish the branch while they remain.
Rewriting a commit message replaces it whole, so any path that supplies fresh text (commit --amend -m, a rebase reword, a prepared file) drops the sign-off silently, and the failure surfaces in a DCO check hours later. The same paths are where a harness slips a session URL or a model name into the message as a trailer, and nothing in git objects to either.
One script, two hook events. As a PostToolUse hook it runs after a Bash tool call that can change what the guard would say — git commit, merge, rebase, cherry-pick, revert, am, reset, checkout, switch, pull, filter-branch, gh stack rebase, and everything the PreToolUse arm blocks — inspects the commits the current branch added over its base, and reports defects so the model sees them at once. A read is not one of them: git log, git status and git diff cannot change the answer, and firing after them repeats a standing report once per command until the commit is repaired, which buries it. The cost is that a rewrite by some other route — a script, an editor-driven rebase — is not noticed until the next command that is on the list; nothing defective reaches a remote regardless, because the PreToolUse arm is unchanged and blocks on the commits themselves. As a PreToolUse hook it runs before git push, git send-email, git send-pack, git imap-send, git subtree push, git svn dcommit, git svn set-tree, git p4 submit, gh pr create, gh pr ready, gh pr merge, gh stack submit, gh stack sync, gh stack push, gh stack merge and gh stack link, and denies the command while defects remain. Amend, rebase, status, log and gh stack rebase are never blocked, so the guard never stands between you and the fix. git format-patch and git request-pull are not blocked either: they write to a file or to stdout and send nothing anywhere, and neither is git lfs push, which uploads blobs rather than commits, so no trailer travels with it. git send-email --dry-run is blocked along with the rest, the same way git push --dry-run is. What the line runs is what counts, not what it mentions. The text zones come out first, a heredoc body and any quoted argument of more than one word, though a double-quoted one carrying a $( or a backtick stays in, since that really would run. In what is left the verb has to sit where a git subcommand sits. So a commit message naming a guarded command is not that command, as long as a quoted message carries no shell separator (;, |, &, a newline), since the line is cut on those before quotes are read and a fragment holding the verb is then judged as code. A heredoc body has no such limit, it is set aside whole, so that is the way to write a message with separators in it. A value handed to an option (git log --grep push) is not a command either. A text zone is read as a command again where its segment runs a shell, so bash -c 'git push', eval "git push" and bash <<EOF are still blocked. Both events fire on the result rather than on the shape of the command, which covers every rewrite mechanism, including ones not invented yet.
Three decisions keep it quiet in the right places.
user.email as resolved in that repository. A cherry-pick or a co-author's commit on the same branch is not your message to rewrite. Without a configured identity every commit is judged.Signed-off-by trailers. The Claude-Session and Assisted-by checks apply everywhere, since neither line is ever correct.@{upstream}. A branch tracks itself on the remote, so a defective commit that has already been pushed would land inside the base and the guard would report clean on the very branch that is red in CI. The base is the integration branch unless the branch sits on another local branch, see below.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 lexfrei/ccc --plugin trailer-guardPlugins from other owners that cover similar ground