// rules
Rules and Config Files
A rule file is a plain config file that encodes your team conventions so an AI coding tool follows them on every task. The common formats are CLAUDE.md for Claude Code, .cursorrules for Cursor, and AGENTS.md for shared setups. Copy one below as a starting point, read the line-by-line breakdown, and adapt it to your codebase.
Browse Rules and Config Files
Concepts: Agentic coding
Rule File Questions
What is a rule file?
It is a config file that tells an AI coding tool your standards and conventions, so its output matches how your team already works. The tool reads it on every task.
What is the difference between CLAUDE.md, .cursorrules, and AGENTS.md?
They are the same idea in different formats for different tools. CLAUDE.md is for Claude Code, .cursorrules is for Cursor, and AGENTS.md is a shared format several tools read. The card badge shows which format each config uses.
How do I use one of these?
Copy the full config with the button on the card, drop it into your project at the path the format expects, and adjust it to your codebase. The rule page explains each line.
Are these safe to copy into my project?
Yes. A rule file only sets preferences and conventions for the tool. Read the line-by-line breakdown so you know what each setting does before you commit it.
