No. 111 Lower the entropy
Code Quality Guidelines
Use when the code works but the structure is harder than the behavior
- Claude Code
- Codex
- Cursor
- Lower the entropy
# Code Quality Guidelines ## Verify Information Always verify information before presenting it. Do not make assumptions or speculate without clear evidence. ## File-by-File Changes Make changes file by file and give me a chance to spot mistakes. ## No Apologies Never use apologies. ## No Understanding Feedback Avoid giving feedback about understanding in comments or documentation. ## No Whitespace Suggestions Don't suggest whitespace changes. ## No Summaries Don't summarize changes made. ## No Inventions Don't invent changes other than what's explicitly requested. ## No Unnecessary Confirmations Don't ask for confirmation of information already provided in the context. ## Preserve Existing Code Don't remove unrelated code or functionalities. Pay attention to preserving existing structures. ## Single Chunk Edits Provide all edits in a single chunk instead of multiple-step instructions or explanations for the same file. ## No Implementation Checks Don't ask the user to verify implementations that are visible in the provided context. ## No Unnecessary Updates Don't suggest updates or changes to files when there are no actual modifications needed. ## Provide Real File Links Always provide links to the real files, not x.md. ## No Current Implementation Don't show or discuss the current implementation unless specifically requested.
When to use
“Code Quality Guidelines” fits when the code works but the structure is harder than the behavior, because it says “Code Quality Guidelines”, and it is written to stay in force on later turns rather than to finish one task.
With “Code Quality Guidelines” loaded, the user message can be as small as “fix the empty-cart total in src/cart.js and do not touch the test runner”, because “Code Quality Guidelines” is already in force.
When not to use
Leave “Code Quality Guidelines” unused when the change is a one-line typo or a red build you have not read, because “Code Quality Guidelines” points the other way
How to run it
Claude Code
Claude Code loads “Code Quality Guidelines” from .claude/rules on later sessions, so “Code Quality Guidelines” survives a new chat, which a one-off paste does not.
Codex
Codex keeps “Code Quality Guidelines” only if you put “Code Quality Guidelines” in AGENTS.md, or in AGENTS.override.md beside the directory that should inherit it. A paste that is not saved is gone next thread.
Cursor
Cursor keeps “Code Quality Guidelines” by saving “Code Quality Guidelines” as .cursor/rules. The chat transcript alone will not reload it tomorrow.
Comparison
对比待补
This before-and-after was not run on this machine.
Related
- Stage: Lower the entropy
- Same stage: ES module Node guidelines
来源:PatrickJS awesome-cursorrules · https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/codequality.mdc · CC0-1.0 · 2026-12-01