Skip to content

Commit dee4eb5

Browse files
elkaixcursoragent
andcommitted
chore(cursor): add rule banning Co-authored-by trailers on commits
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0342b0e commit dee4eb5

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
description: Never add Co-authored-by or other AI/tool trailers to git commits or PRs
3+
alwaysApply: true
4+
---
5+
6+
# No co-author or AI trailers on commits
7+
8+
**Never** add `Co-authored-by`, `Signed-off-by` for an AI tool, or any Cursor/Claude/Copilot
9+
footer to commit messages or PR descriptions.
10+
11+
This matches `AGENTS.md`: commits use Conventional Commits subject (+ optional body) only.
12+
13+
## When creating commits
14+
15+
- Pass the message via HEREDoc or `-m` with **only** the intended subject/body.
16+
- Do **not** append `Co-authored-by: Cursor <cursoragent@cursor.com>` or similar.
17+
- If a hook or tool adds a co-author trailer, **amend it out** before pushing (only when amend rules allow).
18+
19+
## Examples
20+
21+
```text
22+
feat(soul): emit TodoListUpdated wire event
23+
```
24+
25+
Not:
26+
27+
```text
28+
feat(soul): emit TodoListUpdated wire event
29+
30+
Co-authored-by: Cursor <cursoragent@cursor.com>
31+
```

0 commit comments

Comments
 (0)