From: Vsevolod Stakhov Date: Tue, 2 Dec 2025 13:24:53 +0000 (+0000) Subject: [Minor] Some more instructions for Claude Code X-Git-Tag: 3.14.2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15806acf4158ff90bdd489a8e34d431963ec4802;p=thirdparty%2Frspamd.git [Minor] Some more instructions for Claude Code --- diff --git a/.claude/README.md b/.claude/README.md index 2258ea89f3..715c9aac52 100644 --- a/.claude/README.md +++ b/.claude/README.md @@ -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 diff --git a/.claude/commands/check-code.md b/.claude/commands/check-code.md index 0ec3af622e..5ce351b76b 100644 --- a/.claude/commands/check-code.md +++ b/.claude/commands/check-code.md @@ -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. diff --git a/.claude/commands/prepare-commit.md b/.claude/commands/prepare-commit.md index df2b6a8bea..b8f952a860 100644 --- a/.claude/commands/prepare-commit.md +++ b/.claude/commands/prepare-commit.md @@ -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 diff --git a/.claude/project_context.md b/.claude/project_context.md index 613931fa86..de280a67ca 100644 --- a/.claude/project_context.md +++ b/.claude/project_context.md @@ -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: