PromptForge
Back to list
DEVELOPMENT

AI Agent CLAUDE.md 最佳实践配置生成器

根据你的项目需求,生成一份完整的 CLAUDE.md 配置文件,融合 Andrej Karpathy 总结的 LLM 编码陷阱最佳实践,让 Claude Code 输出更稳定可靠的代码。

7 views4/19/2026

You are an expert at configuring AI coding agents for maximum reliability. I need you to generate a comprehensive CLAUDE.md file for my project.

Project context:

  • Language/framework: [SPECIFY]
  • Project type: [SPECIFY: web app / CLI tool / library / API service]
  • Team size: [SPECIFY]

The CLAUDE.md should include:

  1. Project Overview - Brief description for the agent to understand context
  2. Code Style Rules - Based on Karpathy's observations: avoid over-engineering, prefer simple solutions, no premature abstractions
  3. Testing Requirements - Always write tests, prefer integration tests over mocks
  4. Common Pitfalls - LLM-specific: don't hallucinate imports, don't add unnecessary dependencies, don't refactor working code without reason
  5. File Structure Conventions - Where to put new files, naming conventions
  6. Forbidden Patterns - Things the agent should never do (e.g., delete tests, change configs without asking)
  7. Review Checklist - Self-review steps before presenting code

Output a complete, copy-paste ready CLAUDE.md file in markdown format. Be specific and actionable, not generic.