Diego MurilloCDMX
← Resources
TemplateNovember 10, 2026Template · Coding with AI

One bug, one line: the rules file your AI reads every session

A rules file template (CLAUDE.md, AGENTS.md, or GEMINI.md) with a lessons section, three example lines, and the prompt that has your AI add them when you close the session.

Comment LINEACame from my video? Here’s what I promised.
Use it now

The shape of each lesson

Your AI reads the rules file when the session opens. If every bug that already cost you time sits there in one line, the next session starts out knowing where to look.

One line per bug

If [what you saw], check [what] first.

Start with the symptom, because that’s all you know when the bug comes back. End with where to look, not with how it got fixed.

This doesn’t work, this does
1“We fixed the cache thing.”
The first one doesn’t say what you saw or where to look. Your AI recognizes the second one as soon as the symptom comes back.
“If a screen shows yesterday’s data, check that screen’s cache first.”
ToolWhere it goes
Claude CodeCLAUDE.md in the project root
Codex (OpenAI)AGENTS.md in the root
Gemini CLIGEMINI.md in the root
CursorAn .mdc file in .cursor/rules/ (it also reads AGENTS.md and CLAUDE.md)
ChatGPTIn your Project’s instructions
Unlike each tool’s own memory, you read this file, you fix it, and it always loads.
How to use it
  1. 01Download the PDF and copy the template into your tool’s rules file: CLAUDE.md, AGENTS.md, GEMINI.md, or .cursor/rules. In ChatGPT, into your Project’s instructions.
  2. 02Fill in “What this is” and “How to run it.” Leave “Lessons” empty.
  3. 03Every time you fix something, paste the prompt before closing the session. Your AI writes the line and shows it to you before saving it.
Want a look first? Read the preview ↑
This is the shape

The PDF has the full template to copy as is, three well-written example lines, the prompt that has your AI add the lessons when you close the session (plus its short version), and three rules to keep the file from growing too much.

I’ll email it to you.

Leave your email and it’ll arrive in a minute. No spam: I only write when I post something new worth your time.

More resources
See all →
By email
Checklist · App design

13 signs your app looks vibecoded

The checklist for going over your app before you show it: what looks wrong, why it costs you the trust of whoever uses it and what to do in each case, plus two extra signs that give away the AI. Four pages to keep next to you while you go through it.

Comment PREMIUMSee→
By email
Before you code

Your product on paper

The template I fill out before writing any code: Who is it for? What does it do? How does it do it? What doesn't it do? Plus a sheet that takes you from those answers to your app's data. Made to print and fill in by hand.

Comment PAPELSee→
Free
Prompts · Before you launch

Does this go in your first version?

Prompts so your coding agent runs your list through the cut question and leaves you the table of what ships and what waits in the PRIMERA-VERSION.md file.

Comment PRIMERASee→