CLAUDE.md Optimization
Gives Claude Code a clear rubric for evaluating the file, specifies the project context, and sets a concrete word limit to prevent bloat.
Review my CLAUDE.md file and suggest improvements. Focus on: 1. Missing context that would help you understand my codebase faster 2. Ambiguous instructions that could be interpreted multiple ways 3. Redundant or contradictory rules 4. Missing build/test/lint commands 5. Directory structure gaps My tech stack is {{tech_stack}} and the project is a {{project_description}}. Output a revised CLAUDE.md that follows best practices: structured sections, specific over vague, commands copy-pasteable, and under 800 words.
Variables to customize
Why this prompt works
Gives Claude Code a clear rubric for evaluating the file, specifies the project context, and sets a concrete word limit to prevent bloat.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Get thorough code reviews with actionable feedback tailored to your language, framework, and standards.
Context-Aware Code CompletionProviding the surrounding code and project context lets the model match existing patterns exactly. The constraint against modifying existing code prevents unwanted side effects.
Inline Code SuggestionConstraining suggestions to match existing style and scope produces insertions that feel native to the codebase. The 'no explanation' rule mimics real inline completion behavior.
Code ExplanationThe audience level parameter adjusts complexity automatically. Requiring a usage example ensures the explanation is practical, not just theoretical.