📄 中文摘要
CLAUDE.md 的范围规则在实践中表现不一,部分规则有效,部分则被忽视。有效的规则包括:特定文件约束,要求仅修改 src/api/ 目录下的文件,避免触碰 src/web/ 或任何配置文件;最小化影响规则,强调只处理完成任务所需的文件,不进行相邻代码的重构或修复未请求的问题;以及记录而非修复规则,要求在工作时注意到其他问题时,仅记录而不修复。这些规则的有效性在于它们明确且具体,能够有效防止范围漂移。
📄 English Summary
The exact CLAUDE.md scope rules that actually work
CLAUDE.md scope rules vary in effectiveness, with some being effective while others are ignored. Effective rules include: specific file constraints that require modifications only within the src/api/ directory, avoiding src/web/ or any configuration files; the minimal footprint rule, which emphasizes only touching files directly necessary for the task, refraining from refactoring adjacent code or fixing unrequested issues; and the note-don't-fix rule, which advises to note other issues encountered during work without attempting to fix them. The effectiveness of these rules lies in their clarity and specificity, effectively preventing scope drift.
Powered by Cloudflare Workers + Payload CMS + Claude 3.5
数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等