Blog · Setting up Claude Code to work my way

Rules that came from things going wrong

A server left running, a resized window, and a feature that disappeared on rework.

In this seriesShow all 11 partsHide the list
  1. 01One file every session reads first
  2. 02Where it writes things down, and where it doesn't
  3. 03Every project starts with the same five files
  4. 04What it does on its own, and what waits for me
  5. 05Show me before you build it
  6. 06A front desk for all my projects
  7. 07The cheapest model that does the job right
  8. 08Two voices: documentation and me
  9. 09Rules that came from things going wrong
  10. 10Keeping projects from bleeding into each other
  11. 11Routines that get better every run

Most of my rules weren't planned. They're what's left after something went wrong once and I didn't want it to happen twice. There's even a section in my rules file called "Notes for Claude, from past mistakes on this PC."

A server left running My window resized A feature dropped Rules +

The server nobody turned off

To check how a page looks, a session starts a small local web server, takes its screenshots, and moves on. One time, it moved on and left the server running, a background process on my daily machine that nobody had asked for. The rule now: close any server you started once you're done with it.

The window that changed size

Checking a page at phone width is routine. Doing it by resizing my actual browser window is not, because that's the window I'm working in. Phone-width checks now happen inside a phone-sized frame on the page, and my window stays the size I left it.

Commit messages and big files

Two small ones from the same section. Multi-line commit messages kept tripping over the older command shell on my PC, so messages now go into a file first and get committed from there. And very large files get written in parts instead of all at once.

The feature that disappeared

This is the one that frustrates me most. I ask for a change to something that already works, and the reworked version quietly drops a feature I'd asked for earlier. The rule is blunt: on rework, keep every feature I already asked for.

A related one: never change an existing test to make your own change pass. If a test fails after a change, the change is what gets fixed.

The question I never want to answer again

Every link I'll come back to gets a bookmark. For a while, sessions asked me to add those bookmarks myself. Now they add the link to a shared list, and a small helper in my browser files it in the right folder on its own. "Never ask me to add a bookmark" is in the rules in those words.

How the list grows

None of these rules are clever. Each one costs a line in a file and saves the same mistake from happening in every future session. When something goes wrong twice, it becomes a rule. A starter set built from these rules is on my Working rules page.

Have something in mind?

Tell me what you're trying to do. I reply within two business days.

Get in touch