A repo lists the commit trailers it will not accept in .chock/commit-trailers.json (Co-Authored-By naming an agent, Generated-by). A commit-msg hook reads the final trailer block as git interpret-trailers does and asks on a banned key, case-insensitive, with an optional value regex. No list allows all. A person answers with CHOCK_ALLOW; an agent's commit is refused. Misses: CI does not run this check, and a message that never passes through git commit is not read.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Block Commit Trailers?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/open-coder-ai-block-commit-trailers)
---
name: block-commit-trailers
description: "A repo lists the commit trailers it will not accept in .chock/commit-trailers.json (Co-Authored-By naming an agent, Generated-by). A commit-msg hook reads the final trailer block as git interpret-trailers does and asks on a banned key, case-insensitive, with an optional value regex. No list allows all. A person answers with CHOCK_ALLOW; an agent's commit is refused. Misses: CI does not run this check, and a message that never passes through git commit is not read."
metadata:
chock.artifact: rule
chock.enforcement: advise
chock.coverage_without_chock: advisory
---
# Block Banned Commit Trailers
A repo lists the commit trailers it will not accept in .chock/commit-trailers.json (Co-Authored-By naming an agent, Generated-by). A commit-msg hook reads the final trailer block as git interpret-trailers does and asks on a banned key, case-insensitive, with an optional value regex. No list allows all. A person answers with CHOCK_ALLOW; an agent's commit is refused. Misses: CI does not run this check, and a message that never passes through git commit is not read.
```
commit_message: ask if final_trailer_block(git interpret-trailers --parse) has key banned in .chock/commit-trailers.json {"banned":[{"key":K,"value_regex":R?}]}; key: case_insensitive; body_line != trailer; no_file|empty: allow
on(asked): remove(trailer); answer: CHOCK_ALLOW=block-commit-trailers by a person; agent: never(set|edit .chock/), ask(person)
```
This skill is advisory: the client reading it has no mechanism to enforce it. The same policy compiled by `chock` can refuse a change at commit-msg. See https://github.com/open-coder-ai/chock