Skip to content

Commit 7139abb

Browse files
committed
ci: document disabling AI attribution
1 parent 0b70b76 commit 7139abb

2 files changed

Lines changed: 82 additions & 0 deletions

File tree

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
name: disabling-ai-attribution
3+
description: Disables commit, pull request, and session attribution in contributors' local Claude Code and Amp settings, and checks Codex workspace policy. Use when configuring an AI coding tool to avoid attribution in repository history.
4+
---
5+
6+
# Disabling AI attribution
7+
8+
Update the contributor's user-level settings without changing repository files
9+
outside this skill. Preserve every unrelated setting.
10+
11+
## Workflow
12+
13+
### 1. Inspect before editing
14+
15+
Find the existing user settings files. Expand `~` using the current user's home
16+
directory.
17+
18+
- Claude Code: `~/.claude/settings.json`
19+
- Amp: `~/.config/amp/settings.json` or `settings.jsonc`
20+
- Codex: `~/.codex/config.toml`
21+
22+
If both Amp files exist, stop and ask which one to update. If a settings file is
23+
malformed, report the parse error instead of replacing it.
24+
25+
### 2. Update Claude Code
26+
27+
Merge this object into `~/.claude/settings.json`:
28+
29+
```json
30+
{
31+
"attribution": {
32+
"commit": "",
33+
"pr": "",
34+
"sessionUrl": false
35+
}
36+
}
37+
```
38+
39+
Create the directory and file when missing. Preserve other keys inside
40+
`attribution` and elsewhere in the file.
41+
42+
### 3. Update Amp
43+
44+
Set these top-level keys in the existing Amp settings file:
45+
46+
```json
47+
{
48+
"amp.git.commit.ampThread.enabled": false,
49+
"amp.git.commit.coauthor.enabled": false
50+
}
51+
```
52+
53+
Create `~/.config/amp/settings.json` when neither supported file exists. Preserve
54+
comments when updating `settings.jsonc`.
55+
56+
### 4. Check Codex
57+
58+
Do not add `commit_attribution` or `features.codex_git_commit` to Codex config.
59+
Current Codex versions removed those local controls. Attribution is determined
60+
by the authenticated workspace's `commit_attribution_enabled` policy.
61+
62+
Report whether Codex is installed. If it is, explain that the contributor or a
63+
workspace administrator must disable commit attribution in the Codex workspace
64+
settings. Do not claim Codex attribution is disabled from a local file change.
65+
66+
### 5. Verify
67+
68+
Parse the updated JSON or JSONC files and read back the exact keys. If the tool
69+
is installed, run a non-mutating command such as `amp --help` or
70+
`claude --version` to catch settings-load errors.
71+
72+
Report each tool as updated, already configured, unavailable, or requiring a
73+
workspace setting. Never print unrelated settings, tokens, or credentials.
74+
75+
## References
76+
77+
- [Claude Code attribution settings](https://code.claude.com/docs/en/settings#attribution-settings)
78+
- [Amp configuration](https://ampcode.com/manual#configuration)
79+
- [Codex configuration reference](https://developers.openai.com/codex/config-reference)

.github/scripts/check-ai-co-authors.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ if [[ -n "$violations" ]]; then
8585
echo ""
8686
echo "and remove the Co-authored-by lines, then force-push your branch."
8787
echo ""
88+
echo "To prevent future attribution, use the disabling-ai-attribution skill:"
89+
echo " https://github.com/Comfy-Org/ComfyUI_frontend/tree/main/.agents/skills/disabling-ai-attribution"
90+
echo ""
8891
echo "If you believe this is a false positive, please open an issue."
8992
exit 1
9093
fi

0 commit comments

Comments
 (0)