By bcmyguest
Kernel-style AI commit attribution (Assisted-by) — skill + enforcing PreToolUse hook.
npx claudepluginhub bcmyguest/assisted-byEnforce Linux-kernel AI commit attribution: require an `Assisted-by:` trailer and forbid AI `Signed-off-by:` / `Co-Authored-By: Claude` on git commits.
Credit AI in git the way the Linux kernel says to — an
Assisted-by:trailer, enforced.
A Claude Code plugin (and portable agent skill) that makes coding agents attribute their help correctly on every commit, following the kernel's coding-assistants policy:
Assisted-by: Claude:claude-opus-4-8
It ships two things:
git-attribution skill — teaches the agent the rule, so it writes the right trailer
on its own.attribution-guard.py hook — a Claude Code PreToolUse hook that blocks a
git commit if the agent gets it wrong, and tells it how to fix the message.Assisted-by: trailer:
Assisted-by: AGENT_NAME:MODEL_VERSION [extra-analysis-tools]
(e.g. Assisted-by: Claude:claude-opus-4-8).Signed-off-by: from the AI — the Signed-off-by certifies the Developer
Certificate of Origin, and only a human can do that.Co-Authored-By: Claude — that older convention is replaced by Assisted-by:.coccinelle, sparse, smatch, …).claude plugin marketplace add bcmyguest/assisted-by
claude plugin install assisted-by@assisted-by
That registers this repo as a plugin marketplace and installs the plugin (skill + hook). Restart Claude Code to load the hook.
The skill is in the portable skills format, so any agent that reads
SKILL.md can use the guidance:
npx skills add bcmyguest/assisted-by
The portable skill carries the guidance; the enforcing hook is Claude Code-specific for now. Native hook enforcement for opencode / Codex is on the roadmap.
The guard inspects the git commit command line on the Bash PreToolUse event. It
only acts when a message is being authored there — -m / --message, -F / --file,
-C / --reuse-message, or --amend without --no-edit. It blocks (exit 2, reason on
stderr, fed back to the agent) when the command:
Assisted-by: trailer, orCo-Authored-By: Claude, orSigned-off-by: naming Claude/Anthropic.A bare git commit whose message is composed in the editor isn't visible to the hook —
add the trailer yourself in that case. The guard never blocks on a parse failure or on
commits that don't author a message (--amend --no-edit, plain git commit).
The human submitter takes full responsibility for a contribution and its licensing, so
the DCO chain (Signed-off-by:) must stay human. Assisted-by: records the assistance
transparently without implying the AI can certify provenance.
.claude-plugin/
plugin.json # plugin manifest (name, version, keywords, skills)
marketplace.json # single-plugin marketplace (source ".") for `claude plugin marketplace add`
hooks/hooks.json # registers the PreToolUse Bash guard
scripts/attribution-guard.py
skills/git-attribution/SKILL.md
skills.sh.json # grouping for `npx skills`
See LICENSE. All rights reserved; in particular, the contents may not be used as training, fine-tuning, or evaluation data for machine-learning or AI systems.
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.