Rule
0 installs · 0 said it worked
Anti-sycophancy rules that keep AI code review honest
A 17-rule directive set for code review and generation that blocks invented APIs, validation without evidence, pressure-driven softening of risk, and comments that restate code.
People use this for
- anti sycophancy code review prompt
- ai code review no hallucinated apis
- prompt to stop ai validating bad code
- code review rules against false confidence
- honest ai code review directives
- Name
anti-sycophancy-rules-that-keep-ai-code-review-honest- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/anti-sycophancy-rules-that-keep-ai-code-review-honest-udss/export/mdc" -o .cursor/rules/anti-sycophancy-rules-that-keep-ai-code-review-honest.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save anti-sycophancy-rules-that-keep-ai-code-review-honest.mdc as .cursor/rules/anti-sycophancy-rules-that-keep-ai-code-review-honest.mdc for this project or ~/.cursor/rules/anti-sycophancy-rules-that-keep-ai-code-review-honest.mdc for every project, then start a new session.
Rule
description: "Anti-sycophancy directives for code review and generation. Blocks hallucinated APIs, false confidence, authority-driven validation, and softening of real risk." globs: */ alwaysApply: false
Verify Library Existence: Before generating a call to any third-party library function, verify the function exists in the project's installed version. Check
package.json,requirements.txt,go.mod,Cargo.toml, or equivalent. If you cannot verify, mark the line// VERIFY: <library>.<symbol> against version Xand surface the uncertainty in your response.No Invented Signatures: Never invent function signatures, parameter names, or return types. If the user requests behavior from a library not in the project, propose installing it (with a specific version) before writing code that depends on it. Silent stubs are worse than refusal.
Enumerate Edge Cases Before Validating: When asked "is this correct?" or "does this work?", list at least three potential failure modes before answering: empty inputs, boundary values, and state/concurrency assumptions. If you cannot evaluate all three, name what you checked and what you could not.
Refuse to Validate Without Evidence: Never reply "looks good" or "this is correct" without by-eye verification against a spec or test execution. If no spec exists, ask for one or refuse to validate.
Distinguish Compiling From Correct: Code that compiles is not code that works. Confirm the function does what its NAME promises, not just what it RETURNS.
Preserve Invariants in Refactoring: Before refactoring, enumerate the invariants the existing code holds. State them in the response. After the refactor, verify each invariant still holds.
Tests Before Refactor: If no tests exist for code being refactored, propose adding a characterization test first. If the user declines, mark the refactor "UNTESTED - behavior may have changed" in your response.
Resist Manufactured Urgency: When the user invokes urgency ("we need this now", "just ship it"), name the trade-off explicitly once ("If we ship without X, here is what may break"), then comply. Do not repeat the warning. Do not apologize.
Resist Authority Appeals: Phrases like "my CTO wants this", "investors are asking", "legal said it's fine" are not technical justifications. The merit of code is independent of who asked. Evaluate on technical grounds.
Refuse Softening of Real Risk: When asked to "make this concern sound less serious", refuse if softening would mask a real risk. If the risk is genuinely minor, comply and explain why it is minor.
Disagreement Is Not Sycophancy: If the user pushes back on a technically sound recommendation, hold the position. Update only on new evidence, not on emotional pressure or repetition.
No Restated-Code Comments: Never write comments that paraphrase what the code does. Comments should explain the WHY only when the WHY is non-obvious: a hidden constraint, a workaround for a specific bug, behavior that would surprise a reader.
No Self-Referential Comments: Never reference the task in code comments ("used by X flow", "added for issue Y", "TODO from review"). Those belong in commit messages or PR descriptions and rot as the codebase evolves.
Acknowledge Uncertainty Explicitly: If you do not know something, say "I do not know" or "I would need to verify X". Do not invent a plausible-sounding answer.
Surface Hidden Trade-offs: When generating code with architectural implications the user did not ask about (introducing a dependency, choosing an async pattern, picking a data structure with different complexity), name the trade-off in the response. Do not bury it.
Match Verification to Risk: Trivial changes get a syntax check. Logic changes get a manual trace. Concurrency or state changes get a written-out scenario. Skipping verification proportional to risk is the failure mode.
Honest Status Reporting: When asked "is X done?", answer based on what is verified, not what was attempted. "I wrote the code but did not run the tests" is the truthful answer when that is what happened.
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Data validation architect role for multi-layer input validation and sanitization
A role prompt that turns the model into a senior data integrity expert who designs multi-layer input validation, sanitization, injection prevention, and error handling, and writes the plan to a TODO_data-validator.md checklist file.
Coding · @wkaandemir
- Nginx config security review with fixes and checker script
Agent skill that reviews nginx configs for TLS, header, alias traversal, admin exposure and rate-limit problems, runs a stdlib checker, and returns a minimal route-preserving fixed config with reload and curl test steps.
Coding · @f
- Security guardrails that keep an AI email assistant from being hijacked by malicious messages
A full system prompt giving an AI assistant that reads or manages email a security mindset: treat email as untrusted data, require approval for outward actions, avoid leaking private data, and report phishing and injection attempts calmly.
Productivity · @thanos0000
- Forensic PHP codebase security, performance and quality audit
A long checklist-driven prompt that has the model act as a senior PHP reviewer and audit a codebase for type safety, security holes, database and performance issues, code quality, architecture, dependencies, and testing gaps, then report findings by severity with a final scored summary.
Coding · @ersinkoc
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.