# CLAUDE.md Template — Astro / Next.js Projects (meetBlogging free resource)

Copy this into your repo root as `CLAUDE.md`. Replace every [bracket]. Keep it under
~150 lines: everything here is loaded on every request, so it pays token rent.

```markdown
# [Project name]

[One sentence: what this project is and who it serves.]

## Stack
- Framework: [Astro 7 / Next.js 15] · Styling: [Tailwind v4]
- Content: [Astro content collections in src/content] · Hosting: [Cloudflare Pages]

## Commands (run these, never guess)
- Dev: `npm run dev` · Build: `npm run build` · Preview: `npm run preview`
- Typecheck: `npx astro check` (Astro) / `npx tsc --noEmit` (Next.js)

## Rules that prevent real mistakes
- Never edit `.env*` files. If a task needs a new variable, stop and say which.
- Content collections are schema-strict: a missing frontmatter field fails the build.
  Always check `src/content.config.ts` before writing a new entry.
- Internal links use trailing slashes and root-relative paths (`/blog/slug/`).
- No new dependencies without naming the package and why in your summary.

## Definition of done
1. `npm run build` passes. 2. You summarised changed files in 3 lines or fewer.
3. You flagged anything you could not verify instead of inventing it.
```

## Why each section exists
- **Stack** stops the agent reaching for the wrong framework's APIs.
- **Commands** stop invented scripts (the #1 cause of "it worked in my head" failures).
- **Rules** encode mistakes that already cost you time — add one line per real incident.
- **Definition of done** makes the agent verify with the build, not with confidence.

Full system (AGENTS.md pairing, 10 Skills, MCP pack): the paid **Agent-Ready Astro** kit
at https://meetblogging.tech/products/agent-ready-astro/
