Where the code, folders, and task live
Project Rules
I keep reminding the AI to use TypeScript and our existing styles. Can these requirements live in project rules?
I keep reminding the AI to use TypeScript and our existing styles. Can these requirements live in project rules?
Where the code, folders, and task live
States rules for the applicable scope
Follows the rules while reading, editing, and verifying
Project rules tell an agent how to work in a directory; they are not permanent memory inside the model.
Rules files contain conventions and constraints: A typical AGENTS.md or .cursorrules includes: (1) project overview and tech stack; (2) code conventions and structure; (3) forbidden actions (e.g. no committing, deleting DBs); (4) verification steps. Starting with 5–10 high-value rules works best.
Become part of the multi-turn context: Tools read project rules and pass them to the model automatically, reducing repetitive prompting.
Share rules with the repo, but never secrets: Team rules are committed to Git; real API keys and local paths belong in environment variables, not rules files.
Read the project rules before editing the button component. Follow the existing stack, do not use any, and ask before delete or reset commands. Run the project's existing checks after editing.
Build in 3D. Put your computer to work.