Skip to content

Commit 41addbc

Browse files
iruvanclaude
andcommitted
docs(skills): require co-author trailer on every Claude-made commit
The trailer was only being added when the user explicitly said "commit this," so commits made mid-flow inside other skills (e.g. open-pr) rendered with no Claude attribution at all. Make it unconditional on Claude running git commit, not on phrasing. Use the generic "Claude" name rather than a specific model version, so the trailer doesn't need updating on every model bump. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 08e90fb commit 41addbc

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

  • .claude/skills/conventional-commits

.claude/skills/conventional-commits/SKILL.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,21 @@ instead of raw context.Value keys.
6767

6868
- Check `git log --oneline -20` for how recent commits are actually styled before assuming this repo already follows the spec strictly.
6969
- When drafting a commit message per the user's global commit workflow (see CLAUDE.md / top-level instructions on commit style), still shape the subject line as `<type>[optional scope]: <description>`.
70+
71+
## Co-author trailer
72+
73+
Any commit Claude runs `git commit` for — regardless of what triggered it
74+
(direct "commit this" request, mid-flow inside `open-pr`, or any other
75+
skill) — always ends with this footer, one blank line after the rest of
76+
the body/footers:
77+
78+
```
79+
Co-Authored-By: Claude <noreply@anthropic.com>
80+
```
81+
82+
Use the generic `Claude` name, not the specific model name/version
83+
(e.g. not `Claude Sonnet 5`) — this trailer shouldn't need editing every
84+
time the underlying model changes.
85+
86+
This is not conditional on phrasing. If Claude is the one invoking
87+
`git commit`, the trailer goes in.

0 commit comments

Comments
 (0)