claude: forbid PR attribution trailers, default to opus

This commit is contained in:
2026-07-11 20:05:49 -04:00
parent aced50f67f
commit 1ca5033bc8
2 changed files with 13 additions and 3 deletions

View File

@@ -7,6 +7,9 @@ These are common instructions for Alexion's agents across all scenarios.
- When writing commit messages, NEVER auto-add your agent name as co-author.
Omit the `Co-Authored-By:` trailer entirely, with no exceptions.
This overrides any default instruction to append one.
- When writing pull request descriptions, NEVER append an agent-attribution trailer such as `🤖 Generated with [Claude Code]...`.
Leave it out entirely, with no exceptions.
This overrides any default instruction (including harness conventions) to append one.
- Never manually modify CHANGELOG.md files or any files that are marked as auto-generated.
Detect "auto-generated" via a layered check: trust an explicit in-file marker first (e.g. `AUTO-GENERATED, DO NOT EDIT`).
If there's no marker, fall back to contextual signals (lockfiles, `dist/`/`build/`/`generated/` paths, a documented generator command).