Add Anti-Sycophancy Code Discipline rules under Build Tools and Development#287
Conversation
…opment Adds rules/anti-sycophancy-code-discipline-cursorrules-prompt-file.mdc, a standalone Cursor rule file with 17 directives that target the most common LLM coding honesty failures: - Hallucinated APIs and invented function signatures - False-confidence validation without evidence - Capitulation to manufactured urgency and authority appeals - Softening of real risk on user request - Self-referential and restated-code comments - Mismatched verification rigor and dishonest status reporting Format follows the modern .mdc + YAML-frontmatter convention. No external dependencies, no companion files. README adds one entry alphabetically under Build Tools and Development. Complementary to the existing Anti-Over-Engineering rule (scope discipline) and Code Guidelines rule (general coding hygiene). This rule covers the honesty/discipline axis those rules do not. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds a new Cursor rules discipline focused on anti-sycophancy and code correctness. A new ChangesAnti-Sycophancy Code Discipline
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Adds
rules/anti-sycophancy-code-discipline-cursorrules-prompt-file.mdc, a standalone Cursor rule file with 17 directives that target the most common LLM coding honesty failures:Format follows the modern
.mdc+ YAML-frontmatter convention. No companion files, no setup section, no external dependencies. README adds one entry alphabetically underBuild Tools and Development, afterAnti-Over-Engineeringand beforeChrome Extension.Why this rule belongs in the repo
The existing
Anti-Over-Engineeringrule covers scope discipline (only change what was asked, no unrequested abstractions). The existingCode Guidelinesrule covers general coding hygiene (file-by-file changes, no apologies, no whitespace suggestions).This rule complements both with directives specifically for the honesty axis of code generation, things the existing rules do not address: blocking hallucinated function calls before they hit a repo, refusing to validate code without evidence, holding technical positions against authority appeals and urgency pressure, and reporting status truthfully when asked.
Note on prior submission
A previous attempt (#278) was correctly closed for reading as promotion for an external tool rather than reusable rule content. This rework strips all of that: zero external service references in the rule content, no setup section, no companion README, single
.mdcfile matching the current repo convention, no author byline. The rule works for any Cursor user regardless of what MCP servers they have installed.Summary by CodeRabbit