docs/customize/rules.mdx
Think of these as the guardrails for your AI coding agents:
By implementing rules, you transform the AI from a generic coding agent into a knowledgeable team member that understands your project's unique requirements and constraints.
Your agent detects rules and applies the specified rules while in Agent, Chat, and Edit modes.
Learn more in the rules deep dive, and view rules in the YAML Reference for more details.