StoicBuilder

HandbookIV the PraetoriumProject rules files

IVthe Praetorium, Direct the agent

Project rules files

1 min readUpdated 28 November

In plain words

A project rules file is a note the agent reads at the start of every chat: which tools you use, how to run the app, what never to do.

Where you see it

CLAUDE.md for Claude Code, AGENTS.md for Codex and several other agents, .cursor/rules in Cursor, and the Knowledge section in Lovable's project settings. It's how you stop repeating "we use Supabase, not Firebase" in every chat.

CLAUDE.mdagent
# Quill- Stack: React + Vite, Supabase (database and login), Tailwind.- Run `npm run build` before saying you're done.- Every notes query filters by user_id.- Ask before adding a package or changing a table.- Never edit old files in supabase/migrations.
Short, specific rules the agent can follow and you can check.

What goes wrong

  1. Writing an essay

    A rules file hundreds of lines long gets followed patchily. Keep the rules that prevent real mistakes and cut the rest.

  2. Letting it go stale

    The file still says Prisma, but you moved to Drizzle in March. The agent trusts the file and writes code for a tool you no longer use.

  3. Rules nobody can check

    "Write clean code" changes nothing. "Run the build before you finish" is something the agent can do and you can see.

    - Always write clean, high-quality code

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Read this project and draft an AGENTS.md: the stack, how to run and build it, the folders that matter, and the five rules you most need to follow here. Keep it under 60 lines and list anything you had to guess.

Quick check

Sign in to earn +10 XP for it

Every new Cursor chat suggests Firebase, but your app uses Supabase. Best fix?

Got a prompt that touches project rules files?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.