Every AI coding tool starts each session knowing nothing about your project. A rules file fixes that. AGENTS.md has become the shared convention: according to Vibe Coding Weekly #49, Claude Code started falling back to AGENTS.md when a project has no CLAUDE.md, matching Codex, Copilot, Cursor and Gemini CLI. Lovable now reads AGENTS.md files in subfolders too (Vibe Coding Weekly #54).
What to put in it for a WordPress site
- The stack: WordPress and Bricks versions, key plugins, hosting, staging URL.
- Design rules: class prefix, colour and font variables, container width, breakpoints.
- Content rules: no invented statistics or reviews, affiliate links marked sponsored, British or American spelling.
- Safety rules: never edit the parent theme, test on staging, stop on login errors, ask before deleting.
- Checks: open every changed page at desktop and phone width.
- Where things are: header and footer template names, key page IDs.
Rules file or skill?
A rules file describes this project and is read at the start of every session. A skill teaches a kind of task and loads only when needed, across projects. Use both: AGENTS.md for “how this site works”, a skill for “how Bricks works”. See How We Wrote a Bricks Skill.
Keep it short and true
Agents follow what you write. Remove rules that no longer apply, and update the file when the site changes.
