From 0d65a072ae0e7ecd907e5a7bbc8fe73e45f6b1ec Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 26 Jul 2025 18:31:51 +0100 Subject: [PATCH] chore(ai-rules): add rule about comments --- claude/CLAUDE.md | 3 +++ cursor/user-rules.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/claude/CLAUDE.md b/claude/CLAUDE.md index 3caf8ce..7734496 100644 --- a/claude/CLAUDE.md +++ b/claude/CLAUDE.md @@ -42,3 +42,6 @@ everything you do. - Respect all code comments, they're usually there for a reason. Remove them ONLY if they're completely irrelevant after a code change. if unsure, do not remove the comment. +- When adding new comments, they must be relevant and specific to the code in + question. They should NOT refer to any specific instructions like "use new X + function". diff --git a/cursor/user-rules.md b/cursor/user-rules.md index 941808f..abb6cf7 100644 --- a/cursor/user-rules.md +++ b/cursor/user-rules.md @@ -37,3 +37,6 @@ - Respect all code comments, they're usually there for a reason. Remove them ONLY if they're completely irrelevant after a code change. if unsure, do not remove the comment. +- When adding new comments, they must be relevant and specific to the code in + question. They should NOT refer to any specific instructions like "use new X + function".