Original Reddit post

I found this to be quite true. Any comments or suggestions? Ensure your CLAUDE.md (and/or AGENTS.md) coding standards file adheres to the following guidelines: 1/ Keep it short, under 200 lines, to avoid ‘context bloat & rot’. 2/ Avoid including information that: - Constitutes well-established common knowledge about your technology stack. - Is commonly understood by advanced Large Language Models. - Can be readily ascertained by the Agent through a search of your codebase. - Directs the Agent to review materials before it needs them. 3/ Conversely, do incorporate details about your project’s distinct coding standards, such as: - Specific file paths within your documentation directory where relevant information can be found, when Agent decides it needs it… - Project-specific knowledge unlikely to be present in general LLM datasets. - Guidance on how to mitigate recurring coding errors frequently made by the Agent (this section should be updated periodically). - References to preferred coding or user interface patterns. submitted by /u/pebblepath

Originally posted by u/pebblepath on r/ClaudeCode