Free guide

Make Claude Code follow your rules

A 11-page PDF from episode 1 of After the demo, our series on what engineers do once the demo works. It covers the three layers that stop Claude making the same mistake twice: CLAUDE.md, memory and hooks.

Download the PDFPDF · 11 pages · by Eduard Vlase

What the guide is

Every new chat with Claude starts from nothing. It doesn't know your business, your style, or the mistake it made yesterday, so you explain it all again. The fix isn't a better prompt. It's a place where your rules live, that Claude reads before it starts any work.

We build with Claude Code every day on client work. The guide shows the rules we actually use, then gives you a starter file to copy and three things to do this week.

CLAUDE.md

CLAUDE.md is a plain text file that Claude Code reads at the start of every session: the house rules on the fridge. You write the rules once, and every new chat starts from them instead of from nothing.

The guide shows where the file lives, in the project or in your home folder for every project, and two parts of our own: the limits that keep the machine usable and the checks before anything is installed. Then it gives a ten-line starter to copy and four habits that make rules stick.

Memory

The second layer is what Claude learns from being corrected. Claude Code keeps a memory folder for each project, and a good memory has three parts: the rule, why it exists and how to apply it.

The guide gives two real corrections from ours and says when a correction should become a memory, and when it belongs in CLAUDE.md instead.

Hooks

A rule in a text file is a request, and Claude usually follows it. A hook is a few lines of code that run every time Claude writes or edits a file, whatever Claude remembers.

The guide prints our hook, which replaces long dashes in every file Claude touches, explains it line by line and says which rules deserve one: anything where a mistake would cost money or trust.

What else is in it

The three ways a rules file stops working: it gets too long, its rules contradict each other, or they go stale. Then three things to do this week, and line 1 of our production checklist: rules written down, and the rules that matter enforced by code. Each episode of the series adds a line.

It goes with course 2 on the path, Build Your AI Toolkit, where you set up Claude Code and n8n and build three automations of your own.

Take the guide with you

The PDF is free to download and keep. Hub members get each new guide as it ships.

Every guide is listed on the resources page.