# The CLAUDE.md Starter Template (Compounding Engineering)

> Project notes file so Claude Code remembers your setup and stops repeating mistakes.

- **What it does:** A ready-to-use notes file for Claude Code that tells it how your project works, so it stops asking the same questions and making the same mistakes every session — includes a simple beginner version and an advanced one that improves itself over time.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_87d3212c085ca1bc00ae1df0`
- **Creator:** Mariah Brunner (@itsmariahbrunner) on Instagram
- **Reach:** Creators' posts about it have 605,336 views
- **Safety:** Checked by Orbit: nothing risky found in what it runs or reads
- **Last updated:** 2026-11-14
- **Page:** https://orbitinbox.app/s/the-claude-md-starter-template-compounding-engineering

## Skill

---
name: claude-md-starter-template
description: Use when setting up or improving a CLAUDE.md file for Claude Code so it stops repeating mistakes and self-improves via the Compounding Engineering workflow.
---

## What this does
Sets up a CLAUDE.md project memory file for Claude Code, from a 30-second beginner version to the Anthropic-team-style system where the file writes new rules from every mistake Claude makes.

## When to use
Use when a user is starting a new project with Claude Code, or wants their existing CLAUDE.md to stop being ignored and start compounding in usefulness.

## How to run it
### Beginner setup
1. Open Claude Code in the project folder and run: `/init` — Claude reads the project and writes a starter CLAUDE.md. If one exists, `/init` suggests improvements instead of overwriting it.
2. Or write it manually: save this as `CLAUDE.md` in the project root, filling in the blanks:
```
# Workflow
- Run tests with: [your test command]
- Typecheck when you're done making a set of changes
- Prefer running one test at a time, not the whole suite

# Code style
- [One or two rules you actually care about]
- Example: use 2-space indentation, not tabs
```
3. Rule of thumb before adding a line: "would leaving this out make Claude mess up?" If no, don't add it. Keep it under ~200 lines. A second file at `~/.claude/CLAUDE.md` holds rules for every project.

### Advanced: Compounding Engineering system
1. Use this 4-section structure (the Claude Code team's own format):
```
# Development Workflow
**Always use [your package manager], not [the wrong one].**
1. Make changes.
2. Typecheck: `[your typecheck command]`
3. Run tests: `[your test command]` (use `[single-test flag]` for a single suite)
4. Lint before committing: `[your lint command]`
5. Before opening a PR: `[your pre-PR command]`

# Code style
- Use ES modules (import/export), not CommonJS (require)
- [Your other style rules — only the ones that aren't standard]

# Architecture
- All API routes go through [your auth middleware path]
- New database queries go in [your queries directory]. No inline raw SQL.
- [Your other architectural rules]

# Gotchas
- [Empty for now. Claude will fill this in as you work.]
```
2. Save this as `CLAUDE.md` at the repo root, commit it so the team shares it.
3. The core trick: every time Claude makes a mistake, after fixing it, end the prompt with:
"Update CLAUDE.md so you don't repeat this."
Claude adds a precise rule to the Gotchas section itself.
4. Keep a personal, gitignored `CLAUDE.local.md` for individual PR-feedback and quirks, structured as:
```
# From PR feedback
- [reviewer comments]

# My own quirks to correct
- [personal preferences]
```
5. Two-week ritual: Days 1–3 set up the template and commands. Days 4–14, end every corrected mistake with the "Update CLAUDE.md" line, no filtering. End of week 1, ask Claude to "reread the Gotchas section in CLAUDE.md and merge any duplicate or overlapping rules." End of week 2, trim entries that are now muscle memory.
6. Filter for every line: "Would removing this line cause Claude to make a mistake?" If no, cut it. Skip standard language conventions, file-by-file tours, long tutorials, API docs, platitudes, and anything that changes frequently. Reserve words like IMPORTANT/YOU MUST for the 1–2 rules that matter most.

## Output
A committed `CLAUDE.md` (and optional `CLAUDE.local.md`) file in the project repo, plus a short note on the two-week ritual to keep running.

Credit: Based on public content by itsmariahbrunner, packaged by Orbit.

Shared by Mariah Brunner, credited on Orbit.