Home › Rules
Free AGENTS.md, CLAUDE.md & Cursor rules templates
Copy-paste rules files for 30 beginner projects, from Phaser games to Supabase apps. Each one comes as AGENTS.md, CLAUDE.md, Cursor .mdc rules and, where it fits, Lovable/Bolt Project Knowledge, replit.md or Base44 instructions, with a plain-English note on why each rule exists.
Build your own rules file → Which file does my tool read?
Showing all 30 rules files
Browser game (Phaser)
Phaser games fall apart when the AI rewrites the game loop every time you ask for a new enemy. These rules keep it to one mechanic at a time, with a playable build after every step.
Get the rules →Godot game
AI coding tools can write GDScript well, but they can't click around the Godot editor and they get Godot 3 vs 4 mixed up. These rules account for both.
Get the rules →Discord bot
The two classic Discord bot disasters are a leaked token and a bot that asks for every permission. These rules stop both, and keep commands small.
Get the rules →Telegram bot
Telegram bots are quick to start and easy to over-build. These rules keep v1 to polling, a handful of commands, and a token that never leaves .env.
Get the rules →Chrome extension
Chrome extensions get rejected or break for two reasons: too many permissions and old Manifest V2 code. These rules handle both.
Get the rules →Lovable app
In Lovable, every vague prompt costs credits and can quietly redesign pages you liked. Paste these rules into Project Knowledge so every message starts with them.
Get the rules →Next.js SaaS MVP
A SaaS MVP has three places where AI shortcuts hurt: auth, payments, and secrets. These rules keep the AI on the boring, safe path for all three.
Get the rules →Supabase app
Supabase is safe when Row Level Security is on and the secret key stays secret. It's wide open when either slips. These rules make both non-negotiable.
Get the rules →Landing page
A landing page needs to load fast and say one thing clearly. AI tools love to add frameworks, carousels, and five sections nobody reads. These rules say no for you.
Get the rules →Portfolio site
A portfolio should be easy for you to update without the AI. These rules keep content in Markdown files and the code out of your way.
Get the rules →Mobile app (Expo)
Mobile apps add two traps: packages that don't match your Expo SDK, and secrets shipped inside the app. These rules cover both.
Get the rules →Python automation script
Automation scripts touch real files and real accounts. These rules give every script a dry-run mode and make it ask before it deletes anything.
Get the rules →Web scraper
Scrapers get you blocked, or worse, when they hammer a site. These rules keep yours polite, cached, and easy to fix when the page layout changes.
Get the rules →Inbox / email AI agent
An email agent that can delete or send is one bad prompt away from a very bad day. These rules keep yours to labeling and drafting, tested on 20 emails first.
Get the rules →AI chatbot app
AI chat apps leak API keys and run up bills when the model call happens in the browser. These rules put the key on the server and a ceiling on spending.
Get the rules →Online store (Stripe)
Stores built with AI usually break in one of two spots: trusting the price from the browser, or skipping webhook checks. These rules cover the money parts.
Get the rules →Data dashboard
A dashboard is only useful if the numbers are right. These rules stop the AI from inventing sample data, and keep your source data read-only.
Get the rules →API backend (FastAPI)
Backends break their clients quietly. These rules make the AI validate input, keep existing endpoints stable, and prove changes with tests.
Get the rules →Google Sheets automation (Apps Script)
Apps Script can rewrite a whole spreadsheet in a second. These rules make the AI test on a copy, batch its reads and writes, and stay inside Google's limits.
Get the rules →Fixing a messy vibe-coded project
When a project is already messy, the AI's instinct is to rewrite it. That's how you lose the parts that worked. These rules force read, test, fix one thing, verify.
Get the rules →Lovable Project Knowledge
Project Knowledge is the one box Lovable reads on every message. Most people leave it empty or paste in a wall of text. Here's a short, credit-saving version you can fill in in five minutes.
Get the rules →Lovable + Supabase app
Lovable can design your tables, run migrations, and deploy edge functions for you. That's powerful, and risky. These rules keep your data locked down and every schema change deliberate.
Get the rules →Lovable SaaS app
A SaaS in Lovable is three things: login, one core feature, and payments. These rules keep Lovable on that path and away from the two classic money bugs.
Get the rules →Lovable website (SEO)
Lovable sites can rank, but only if each page has real content, real titles, and real structure. These rules make Lovable build pages that Google and AI search tools can actually read.
Get the rules →Lovable + Cursor / Claude Code (GitHub sync)
Lovable's GitHub sync is two-way: what you push to the synced branch shows up in Lovable, and Lovable's edits land in your repo. That's great until both sides change the same thing. These rules keep them in step.
Get the rules →Bolt.new app
Bolt's pricing FAQ says most token use comes from syncing your project's files to the AI, so the bigger the project, the more each message costs. These rules keep prompts small and changes targeted.
Get the rules →Bolt + Supabase app
Bolt can connect your project to Supabase for the database, sign-in, and edge functions. Choose Supabase at the start, lock down your tables, and never let a database switch wipe your data.
Get the rules →Bolt mobile app (Expo)
Bolt builds phone apps with Expo, but only if you say "mobile app" from the very first prompt. These rules keep the app phone-first, testable on your own phone, and free of leaked keys.
Get the rules →Replit Agent app (replit.md)
Replit Agent reads a file called replit.md in your project root, and it may rewrite that file as it learns. These rules go in there so they stick, plus one rule that stops Agent from quietly dropping them.
Get the rules →Base44 app
Base44 has a Custom Instructions box that applies to every prompt for your app. It takes one rule per line, so here's a short, line-by-line version written for beginners.
Get the rules →
Explainers
- Lovable vs Bolt vs Replit for beginners
- Rules file formats explained
- AGENTS.md vs CLAUDE.md
- Cursor rules vs AGENTS.md
- Free Starter Rules
Every file here is built on the same core habits as our free Starter Rules: small steps, ask before risky changes, never fake a result, keep secrets secret, and work → test → commit.
Get the free Starter Rules, emailed instantly
- A copy-paste rules file to save as AGENTS.md or CLAUDE.md, or paste into Lovable, Bolt, v0 or Replit: small steps, ask before risky changes, no fake "it works", secrets kept out of code.
- A kickoff prompt that makes your AI ask up to 3 questions and plan 5 to 8 small, testable steps before it writes any code.
- The habit that saves projects: work, test, commit.
After that, an occasional email when we publish a new guide or rules file.
Free. No spam. Unsubscribe anytime. See our privacy note.