ai-coding-primer
CLAUDE.md82 starsChanged 49 days agoMITView on GitHub
Guidance for Claude Code when working in this repository. Flat files in guidebook/, numbered for reading order: Save progress notes, plans, and brainstorming to docs/. Read docs/ at the start of sessions to recover context. Keep this CLAUDE.md lean — rules and constraints only.
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Always use D1, never Turso
- Distinctive: line 43
Do not recommend OpenAI for anything
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
Guidance for Claude Code when working in this repository.
Repository Structure
ai-coding-primer/
├── guidebook/ # The guidebook — one markdown file per chapter (00-08)
├── starter/ # Starter project template
├── assets/ # Images and diagrams
├── docs/ # Working notes, plans, progress (project memory)
├── _authoring/ # Editorial materials (outlines, research, notes — not reader-facing)
├── CHANGELOG.md # Reader-facing record of guide updates
├── CLAUDE.md # This file
├── CONTRIBUTING.md # Contributor guide
└── README.md # Project overviewGuidebook Chapters
Flat files in guidebook/, numbered for reading order:
00-tldr.md— TL;DR Fast Track01-about-the-author.md— About the Author02-the-landscape.md— The Landscape03-setting-up.md— Setting Up Your Workshop04-the-cloud.md— The Cloud05-building.md— Building06-daily-practice.md— The Daily Practice07-where-this-is-going.md— Where This Is Going08-appendices.md— Appendices
Constraints
- Companion plugin:
a-primer-skills(separate repo: github.com/ammonhaggerty/a-primer-skills) - Always use D1, never Turso
- DaisyUI 5 via CDN —
card-borderdoesn't work, useborder border-base-300 - Theme:
emerald - Cookies:
secure: falsein local dev,secure: truein production - Sonnet 5.5 recommended for most coding (Pro default); Opus 5.5 for hard problems or as daily driver on Max. Encourage checking via /model
- Recommend
mediumeffort for most coding tasks (faster, fewer tokens; step up for hard problems) - Do not recommend OpenAI for anything
- Image generation: Google Gemini (Nano Banana) — Imagen is shut down, don't recommend it
- Voice: ElevenLabs, Deepgram, Cartesia
Writing Tone
- Practical, grounded, zero hype
- Audience is non-technical — explain everything
- Prescriptive and opinionated — specific recommendations with reasoning
- Honest about costs, limits, and breakage
- Minimal formatting — prose over bullet points
Working Memory
Save progress notes, plans, and brainstorming to docs/. Read docs/ at the start of sessions to recover context. Keep this CLAUDE.md lean — rules and constraints only.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

