agentleFS
ammonhaggertyammonhaggerty/ai-coding-primer/CLAUDE.md

ai-coding-primer

CLAUDE.md80 starsChanged 5 months 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
  1. Distinctive:

    Always use D1, never Turso

    line 36
  2. Distinctive:

    Do not recommend OpenAI for anything

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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)
├── CLAUDE.md            # This file
├── CONTRIBUTING.md      # Contributor guide
└── README.md            # Project overview

Guidebook Chapters

Flat files in guidebook/, numbered for reading order:

  • 00-tldr.md — TL;DR Fast Track
  • 01-about-the-author.md — About the Author
  • 02-the-landscape.md — The Landscape
  • 03-setting-up.md — Setting Up Your Workshop
  • 04-the-cloud.md — The Cloud
  • 05-building.md — Building
  • 06-daily-practice.md — The Daily Practice
  • 07-where-this-is-going.md — Where This Is Going
  • 08-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-border doesn't work, use border border-base-300
  • Theme: emerald
  • Cookies: secure: false in local dev, secure: true in production
  • Opus 4.8 recommended for all coding (available on Pro and Max; Pro defaults to Sonnet — switch via /model)
  • Recommend medium effort for most coding tasks (faster, fewer tokens; step up for hard problems)
  • Do not recommend OpenAI for anything
  • Image generation: Google Gemini / Imagen
  • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.