Skip to content
Back to skills

Block Commit Trailers

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsgit

Works with

  • cli

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add open-coder-ai/chock-catalog --skill block-commit-trailers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Block Commit Trailers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Block Commit Trailers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/open-coder-ai-block-commit-trailers/badge)](https://www.skillsdirectory.com/skills/open-coder-ai-block-commit-trailers)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.