]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Some more instructions for Claude Code
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 2 Dec 2025 13:24:53 +0000 (13:24 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 2 Dec 2025 13:24:53 +0000 (13:24 +0000)
.claude/README.md
.claude/commands/check-code.md
.claude/commands/prepare-commit.md
.claude/project_context.md

index 2258ea89f360b62a6622edd0de3eeeed76e22837..715c9aac52eb82b6e0beb2c4b759f206fe7dfe92 100644 (file)
@@ -100,6 +100,8 @@ Tags:
 - `[Test]` - Test changes
 - `[Rules]` - Spam detection rule changes
 
+**NEVER MENTION** generated by or coauthored by.
+
 ### GPG Signing
 **ALL commits and tags MUST be GPG-signed:**
 ```bash
index 0ec3af622e98a76fe9dd74fc21fd94db06223e05..5ce351b76b7e23ad1377f30e15e9c124ba19ca09 100644 (file)
@@ -9,4 +9,16 @@ Run the following code quality checks for Rspamd project:
 3. Report any issues found
 4. Suggest fixes if there are problems
 
+# Remove AI code slop
+
+Check the diff against main, and remove all AI generated slop introduced in this branch.
+
+This includes:
+- Extra comments that a human wouldn't add or is inconsistent with the rest of the file
+- Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths)
+- Casts to any to get around type issues
+- Any other style that is inconsistent with the file
+
+Report at the end with only a 1-3 sentence summary of what you changed
+
 Focus on files that have been modified in the current git working directory.
index df2b6a8beae857423c6be0a507bd8094dc1b4449..b8f952a860c20fbeba5d469a0a06fc4bff027714 100644 (file)
@@ -2,6 +2,18 @@
 description: Prepare for commit - build, test, format, check, suggest commit message
 ---
 
+# Remove AI code slop
+
+Check the diff against main, and remove all AI generated slop introduced in this branch.
+
+This includes:
+- Extra comments that a human wouldn't add or is inconsistent with the rest of the file
+- Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths)
+- Casts to any to get around type issues
+- Any other style that is inconsistent with the file
+
+Report at the end with only a 1-3 sentence summary of what you changed
+
 Complete pre-commit workflow for Rspamd project:
 
 1. Check git status to see what files are staged/modified
@@ -22,4 +34,4 @@ Complete pre-commit workflow for Rspamd project:
    - Remind to use `git commit -S` for GPG signing
 6. Ask if the user wants to proceed with the commit
 
-Do NOT automatically commit - just prepare, verify, and suggest.
\ No newline at end of file
+**NEVER MENTION** generated by or coauthored by.
\ No newline at end of file
index 613931fa86949d432985205f3ff2c6f8345c30f3..de280a67cabe6b5b2cf8febfe898d068323648a1 100644 (file)
@@ -43,6 +43,8 @@ All commits MUST follow structured format with tags:
 - `[Test]` - Test additions or modifications
 - `[Rules]` - Changes to spam detection rules
 
+**NEVER MENTION** generated by or coauthored by.
+
 ### Examples
 
 Single-line commits: