Built with Claude Code
Start your own workbench
The setup behind this site, generalized for any hobby project with Claude Code: the seven parts, a personal CLAUDE.md, a /new-project skill that sets a project up, when to add each piece, and what to say.
On this page
Almost none of what makes this site work well with Claude is about games. It’s a way of working where each session starts out knowing more than the last one, and a mistake, once fixed, stays fixed. I wrote this kit with Claude for my brother, to start his own projects the same way. Here it is for anyone.
You won’t need all of it on day one. A skill below sets up a small version of the first five parts in about twenty minutes, and the rest grow when a real problem asks for them.
The seven parts#
| Part | What it does | Here, on this site |
|---|---|---|
| One front door | AGENTS.md at the root: what the project is, where things live, numbered rules with the reason for each, the exact commands. CLAUDE.md points to it. |
Every session reads it first (How I work). |
| A decision log | One short file per call you make, dated, in your own words. | docs/adr/, with a check that keeps the records consistent. |
| Docs that can’t drift | Each doc names the code it explains and carries a hash of it. When the code changes, a check names the doc to read again. | This guide (How this guide stays true). |
| One gate | A single command runs every check, and a pass leaves a receipt tied to the exact code it ran on. | npm run check:pr (Testing and checks). |
| Hooks | Rules the tool itself enforces, so nobody has to remember them. | A commit is blocked while the guide is stale; a pull request until the gate passes. |
| Skills | A workflow you’ve done twice, written down once. | Five of them. |
| Memory | Claude’s own notes about how you like to work, each with the reason, carried into every session. | Kept private, and moved into the project when a note becomes a rule. |
Set it up once#
- Install the tools. Claude Code (the Claude desktop app’s Code tab is the friendliest start; it needs a paid plan), git, and a GitHub account with the
ghcommand-line tool. One folder, and one git repository, per project. - Tell Claude who you are, once, in a personal
CLAUDE.mdthat applies to every project (below). The “how I like to work” lives there, so each project’s own file can stick to the project. - Install the
/new-projectskill as a personal skill, so it works in every folder (below). The easy way to do both: open a Claude session anywhere, paste the two files, and ask it to save the first as your personalCLAUDE.mdand the second as a personal skill callednew-project. - Start a project. Make a folder or open a repository, start a session in it, and type
/new-project. Claude reads what’s there, asks you a few questions in one round, sets up a small version of each part, and says what it left for later. Then start asking for things.
Your personal CLAUDE.md#
Save it as ~/.claude/CLAUDE.md and fill in the angle brackets:
docs/workbench/personal-claude.md lines 1–18# About me
- I'm <your name>. I build hobby projects for fun: <your interests>.
- Experience: <e.g. comfortable with Python, new to web front ends>.
- My machine: <e.g. a laptop with 16 GB>. Keep at most 2 helper agents and one dev server running at a time.
- Plan: <Pro / Max>. I sometimes hit my weekly limit, so work in small batches and tell me before something will be expensive.
# How I like to work
- Plan first, then go straight through without checking in on every step.
- Ask me only for taste calls and real trade-offs, all in one round, with your recommendation first.
- Show me a mockup before building anything visual and new.
- Plain words. When you finish, say what you did and what you didn't check.
- Write down every decision I make, in my words and dated, in the project itself.
- I bring the ideas. Put your effort into making them good rather than pitching others.
- After fixing a bug, ask why the checks missed it, and fix that too.
# Every project
- Each project keeps an AGENTS.md at its root. Read it first and keep it true.
- If a project doesn't have one, offer to run /new-project.
The /new-project skill#
Save it as ~/.claude/skills/new-project/SKILL.md. This is the heart of the kit: the steps Claude follows to set a project up.
docs/workbench/new-project/SKILL.md lines 1–106---
name: new-project
description: Set up a new or existing hobby project so Claude can work on it across many sessions without re-explaining - an interview, AGENTS.md, a decision log, docs that can't drift from the code, one check command, and hooks that enforce it. Use when starting a project, when a project has no AGENTS.md, or when the owner says "set this project up".
---
# Setting up a project
The goal: any future session can open this repo cold, read one file, and work the way the owner wants. Every mistake that gets through becomes a rule, a test or a check, so it can't come back.
Build the smallest version of each piece now. Grow a piece only when a real problem calls for it.
## 1. Interview the owner first
If the folder already has code, read it first and ask only what the code doesn't answer. Ask in one round (AskUserQuestion, at most four questions, your recommendation first on each):
- What is it, and who's it for? (Just me, family and friends, the public.)
- What does "working" look like a month from now?
- Stack and where it runs. With no preference, recommend the simplest, most boring stack that fits, and say why in one line.
- How often to ask: every decision, only taste calls and trade-offs, or almost never. And may you merge your own pull requests once the gate passes?
Write the answers down in their words (step 3).
## 2. AGENTS.md: the one front door
Create AGENTS.md at the root. Create CLAUDE.md holding only "See AGENTS.md." plus the one rule that touches every change (the docs rule in step 4).
AGENTS.md has these sections:
- **What this is**: two or three sentences, then a table of path → what lives there.
- **Rules**: numbered. A bold one-line rule, then a short paragraph. Each ends with the decision record that explains it, like "(decision 0003)". Start with three to five, only rules that are true now and that a newcomer would break.
- **Working**: the exact commands to install, run, test and check, copy-pasteable.
- **How we work together**: the list below, adapted to the interview.
- **Style**: plain, warm copy; comments explain why, not what; tests read as sentences.
Keep it under 150 lines to start. It grows a line each time a lesson is learned. Trim it when it gets long.
How we work together:
1. Sort what the owner reports. A bug: reproduce it and fix it, without asking. A broken rule (the code doesn't follow a written rule): fix the code. A wrong rule (the rule itself felt wrong) or a taste call: that's the owner's call.
2. Ask the owner's calls in one round, a few questions at a time, with your recommendation first. Before building anything visual and new, show a mockup with the options side by side.
3. Write every call down the day it's made, in the owner's words, dated, in a decision record or the feature's doc. A call made in chat and written nowhere gets asked again.
4. After every fix, ask why the checks let it through, and fix that too: a test, a check, a better default, or a line in this file.
5. When a workflow has been done by hand twice, propose a skill for it (.claude/skills/<name>/SKILL.md).
6. Small pull requests, one idea each. (Merge policy from the interview goes here.)
7. Save the owner's preferences and corrections to memory, each with the reason.
8. The owner brings the ideas. Spend creativity on making their idea good, not on pitching others unasked.
## 3. Decisions: docs/decisions/
One file per decision someone might question later: docs/decisions/0001-<short-slug>.md
# 0001 — The decision, as a sentence
**Status:** accepted (YYYY-MM-DD)
## Context
## Decision (the owner's words, when it was their call)
## Consequences
Write 0001 now: the stack, and why. When a later decision changes an earlier one, say so in both Status lines ("amends 0001" and "amended by 0004").
## 4. Docs that can't drift: docs/guide/
A chapter per system, for a curious reader: how it works, explained from the code. Each chapter opens with front matter naming the files it covers and a stamp:
---
covers: [src/scoring/, src/api/scores.py]
stamp: <hash>
---
Write a short script in the project's language, tools/docs_check:
- check: for each chapter, hash the covered files. If the hash doesn't match the stamp, print the chapter, the files, and the git diff since the stamp was written, then exit 1.
- stamp <chapter>: write the current hash into that chapter.
The rule for AGENTS.md and CLAUDE.md: every change that alters behavior updates its chapter in the same commit; run the check, update what it names, then stamp. A stamp means "I read this chapter against this code", never "make the check pass".
Start with one chapter: the architecture. Add a chapter when a system gets big enough to need explaining.
## 5. One gate
One command runs everything that must pass before work is shared: the tests, any lint or type checks, the docs check, and a decisions check (each number used once, every record has a Status, amends/amended-by pairs agree, links resolve). Name it `check` in the project's task runner (npm script, Makefile or justfile).
When it passes, write a receipt: the git tree hash it ran on (git write-tree), into .git/gate.json.
Name tests as sentences: test_a_score_is_counted_once_per_player.
If the project has a screen, add one script that opens it in a headless browser (Playwright) and does what a person would do, at a laptop size and a phone size. For hardware or data projects, the gate is whatever proves it works without a person: a compile, a simulator run, a known-answer test on sample data.
## 6. Hooks: rules the harness enforces
Instructions are advice; hooks are enforced. In .claude/settings.json, with each hook a short script in .claude/hooks/ whose first comment names the rule it enforces:
- PreToolUse on Bash, if "Bash(git commit*)": run the docs check. On failure, exit 2 with a message naming what to update, which blocks the commit.
- PreToolUse on Bash, if "Bash(gh pr create*)": exit 2 unless .git/gate.json matches the committed tree. Let --draft through.
- Stop: if the docs check fails, print a reminder as a systemMessage. Never block here.
Test each hook once by tripping it on purpose. Match the command itself, not any text that mentions it: a commit message or a file written from the shell can contain the words too.
## 7. Report and stop
Commit on a branch. Then tell the owner, briefly:
- what you set up (files and commands);
- what you left for later, and what would make each piece earn its place;
- the three phrases that get the most out of this setup: "plan first, then go straight through", "write that down", and "why didn't the checks catch that? fix that too".
Don't build ahead. No release process, CI, extra skills or extra checks until the project asks for them.
Grow it only when it hurts#
This site didn’t start with any of this. Each piece arrived the day something went wrong. Building it all up front is how you end up maintaining machinery instead of making things.
| When this happens | Add this |
|---|---|
| You’ve done the same workflow twice | Say “make that a skill.” Every skill here began as a long conversation I’d had twice. |
| Claude asks you the same question twice | A decision record, or a line in AGENTS.md. Once the answer is written down, the question doesn’t come back. |
| The same kind of bug comes back | A check that fails on it. After a laptop at a game night showed wrapped words, the layout check started measuring two laptop window sizes on every game. |
| A doc says something the code no longer does | The docs check, and a chapter for that system. A stamp means “I read this against the code”, never “make the check pass”. |
| A rule matters too much to forget | A hook. “Update the guide in the same change” was advice here until a hook blocked the commit. |
| You want two things built at once | One session per piece, each in its own worktree, never two on the same files. Give each its own port and, if it writes decision records, its number up front. |
| Other people start using it | Releases: a version number, plain notes, and a checklist per device that you tick before it ships. A feedback button in the thing itself, so reports arrive saying where they came from. |
| A test fails only when the machine is busy | Time it by what the machine actually did, not the clock, and limit what runs at once. |
Things to say#
| Say | What it does |
|---|---|
| “Plan first, then go straight through.” | You approve the plan once, and Claude doesn’t stop to check in on every step. |
| “Ask me everything you need in one round, with your pick first.” | One batch of questions instead of a drip. Often you can just take the recommendations. |
| “Show me a mockup first.” | The options side by side on a page before anything visual gets built. |
| “Write that down.” | The call goes into a decision record or the project’s docs, dated, in your words. |
| “Why didn’t the checks catch that? Fix that too.” | The second half of every bug fix. Say it until Claude does it unasked. |
| “Make that a skill.” | After the second time you’ve walked through the same workflow. |
| “Remember that I prefer…” | Saved to memory with the reason, for every future session. |
| “Try it like I would.” | Open it in a browser at a phone’s size and a laptop’s, and actually use it. |
| “Split that into small pull requests.” | One idea each, small enough to read in one sitting. |
| “Start a separate session for that.” | A side task that shouldn’t hold up the main one. |
| “Trim AGENTS.md.” | Every session reads it, so every stale line costs attention. Do it when it gets long. |
| “What did you not check?” | The honest list of what’s untested, before you rely on it. |
Learned the hard way#
- Bring your own ideas. When Claude pitched original games for this site, they came out bland. My family’s own favorites are what made it good. Use Claude’s creativity on making your idea good: the details, the polish, the personal touches.
- Write calls down the same day. Anything decided in chat and written nowhere comes back as a question in the next session.
- Small changes, shipped often. Fixing something live is cheaper than holding work for a perfect review. Tell Claude when it may merge on its own, and when it should ask.
- Mind the laptop. On an 8 GB machine, two helper agents and one dev server at a time is the ceiling. Put the limit in your personal
CLAUDE.md, so every plan is sized to it. - Mind the budget. Big fan-outs of parallel agents use up a plan’s weekly limit fast. Ask what something will cost before a large run, and work in batches.
- Check it with your own eyes before others do. Tests prove the logic. Only using the thing, on the devices people will use, proves it feels right.
- Match a hook to the command, not the words. A hook that blocks
git commitcan also catch a file you write that only mentions it. Test each hook by tripping it on purpose, and by writing about it.