返回提示词库
文本 · 通用大模型AI Agent CLAUDE.md 最佳实践配置生成器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

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

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

12浏览
完整提示词可替换花括号中的变量后直接使用

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.

2026/4/19

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。