📄 中文摘要
每个 AI 编码工具都有其特定的上下文文件,例如 Cursor 使用 .cursorrules 和 .mdc 文件,Claude Code 使用 CLAUDE.md,Copilot 则使用 .github/copilot-instructions.md。这些文件的主要功能是指导 AI 如何编写代码。然而,大多数指南仅停留在格式层面,未能深入探讨 AI 实际遵循的规则与被忽略的规则。经过几周的测试,特别是针对 Cursor 的 .mdc 格式,发现了一些明显和不明显的合规性问题,这些发现为理解 AI 的行为提供了重要的见解。
📄 English Summary
What I Actually Put in My Project Context Files
Every AI coding tool has its own context file, such as Cursor with .cursorrules and .mdc files, Claude Code with CLAUDE.md, and Copilot with .github/copilot-instructions.md. These files primarily serve to instruct the AI on how to write code. However, most guides stop at the format level, failing to delve into which rules the AI actually follows and which ones it quietly ignores. After several weeks of testing, specifically with Cursor's .mdc format, various compliance issues were identified, some of which were obvious while others were not, providing important insights into understanding AI behavior.
Powered by Cloudflare Workers + Payload CMS + Claude 3.5
数据源: OpenAI, Google AI, DeepMind, AWS ML Blog, HuggingFace 等