Skip to content

The Unified and Autonomous Development Platform

chore: Add more cursor rule

Robin Shencdbd2ee9dc27
diff --git a/.cursor/rules/no-co-author-in-commits.mdc b/.cursor/rules/no-co-author-in-commits.mdc
new file mode 100644
index 0000000000..43b2553b0c
--- /dev/null
+++ b/.cursor/rules/no-co-author-in-commits.mdc
@@ -0,0 +1,18 @@
+---
+description: Do not add Co-authored-by trailers when generating commit messages
+alwaysApply: true
+---
+
+# No Co-Author Trailers in Commit Messages
+
+When drafting, generating, or composing a git commit message (including via
+`generate-commit-message` or before `git commit`):
+
+- Do **not** append `Co-authored-by:` lines or other co-author / AI attribution
+ footers to the message.
+- Do **not** add `Co-authored-by: Cursor` or similar agent attribution.
+
+Include only subject, body, and footers required by the project's commit-message
+requirement (e.g. `Fixes #123`, breaking-change notices). Add co-author trailers
+only if the user explicitly asks for them or a non-empty requirement from
+`tod get-commit-message-requirement` mandates them.