Agent rules builder
Build a coding-agent rules file with project context, build and test commands, scope and conventions. Export AGENTS.md, CLAUDE.md or a Cursor rule.
Rules file
Save as AGENTS.md at the project root.
Fill in any section to see your rules file.
What belongs in a coding-agent rules file?
Start with the actual build and test commands, the directories that matter and the conventions you expect a new contributor to follow. Prefer concrete instructions an agent can verify, such as which generated files to leave alone.
Choose the file your client loads for the project. Use the file-pattern field to scope a Cursor rule to part of a repository. Review the output alongside the rules already in the project.
Keep rules concise so they do not crowd out the task prompt. Link to existing docs or scripts in the repo rather than duplicating long style guides inside every session.
Common questions
What is the difference between AGENTS.md, CLAUDE.md and Cursor rules?
AGENTS.md is an open project-root format read by tools such as Codex, CLAUDE.md provides repository memory for Claude Code, and Cursor .mdc rules support frontmatter globs to apply instructions only to matching files.
Should I commit generated rules files to Git?
Yes, committing shared build, test and style conventions lets every teammate and coding agent work from the same project expectations.