Updated
AGENTS.md · Astro

AGENTS.md and CLAUDE.md examples for Astro

Of 99 actively developed open-source products built with Astro, 64 (65%) keep instruction files for coding agents: AGENTS.md in 52, CLAUDE.md in 35. The typical file is 1,134 words, and most cover commands to build, run and test (86%) and testing (76%).

Real files to read

From the best-known open-source Astro products whose file is a real one (not a pointer to another), 200 to 4,000 words, covering at least three of the usual topics and naming Astro. Each opens on GitHub.

ProjectFileStarsWordsCovers
kriasoft/react-starter-kitAGENTS.md23,703845CommandsTestingDoc pointersStructureCode style
cocoindex-io/cocoindexAGENTS.md11,7662,908CommandsTestingDoc pointersStructureCode styleGit
dmno-dev/varlockAGENTS.md4,8421,135CommandsTestingStructureCode styleGit
haydenbleasel/blumeAGENTS.md1,8081,362CommandsTestingStructureCode styleGit
haydenbleasel/files-sdkAGENTS.md1,6042,477CommandsTestingDoc pointersStructureCode styleGit
golemcloud/golemAGENTS.md1,5222,656CommandsTestingDoc pointersStructureCode styleGit
inkline/inklineAGENTS.md1,470859CommandsTestingDoc pointersCode styleGit
mattogodoy/nametagCLAUDE.md1,1013,576CommandsTestingDoc pointersStructureCode styleGit

What Astro projects put in them

Share of the 58 files that cover each topic, against all 731 files we read.

Commands to build, run and test86% vs 79%
Testing76% vs 67%
Pointers to other docs74% vs 69%
Project structure64% vs 57%
Git, commits and pull requests64% vs 46%
Code style57% vs 49%

How they talk to the agent: 91% say “never” or “do not” somewhere (all files: 80%), 17% shout a rule in capitals like IMPORTANT or MUST (23%), and 22% tell it to ask before some changes (20%).

The tools they name

Package managerspnpm (15 files), bun (15 files), npm (9 files)

Tests and lintersVitest (14), Playwright (11), ESLint (9), Jest (3), pytest (3), Prettier (3)

Named more than in files generallyVite (17), PostgreSQL (15), Rust (14), SQLite (13), Astro (ASO) (12), Bun (11), Anything (8), Cloudflare (8)

What they tell the agent

Instructions that recur across files, in our words; open one for the Astro projects whose file says it.

About Astro

About Vite

About PostgreSQL

About Rust

About SQLite

About Bun

About Cloudflare

A starting AGENTS.md for Astro

The sections these files cover most, the package manager and checks Astro projects name most, and the stack Astro makers' products chose most often. Fill in the <placeholders>.

# AGENTS.md

<What this product does and who it is for, in a sentence or two.>

## Stack

- Frontend Framework: Astro
- Hosting: Vercel
- Transactional Email: Resend
- Web Analytics: Cloudflare Web Analytics
- Payments: Stripe
- Database: Supabase
- LLM API: OpenAI API
- Product Analytics: PostHog

## Commands

- Install: `pnpm install`
- Run locally: `<command>`
- Test: `pnpm exec vitest run`
- End-to-end tests: `pnpm exec playwright test`
- Lint: `pnpm exec eslint .`

## Testing

Run `pnpm exec vitest run` and `pnpm exec playwright test` before calling a change done, and add a test with each fix or feature.

## Project structure

- `<folder>/`: <what lives there>
- More in <docs/…>

## Conventions

- <Naming, patterns and style the code does not show>
- Commits and pull requests: <your rules>

## Boundaries

- Ask before: <changes you want to approve first>
- Never: <files or actions that are off-limits>

<!-- Started from https://howmakersbuild.com/agents-md/astro — point CLAUDE.md here with a line: @AGENTS.md -->
  • pnpm: named in 15 of 58 instruction files from open-source projects built with Astro.
  • Vitest: named in 14 of 58 instruction files from open-source projects built with Astro.
  • Playwright: named in 11 of 58 instruction files from open-source projects built with Astro.
  • ESLint: named in 9 of 58 instruction files from open-source projects built with Astro.

Make one for your own stack →

Questions

What should an AGENTS.md for a Astro project include?

In 58 files from open-source Astro products: commands to build, run and test (86%), testing (76%), pointers to other docs (74%), project structure (64%), git, commits and pull requests (64%), code style (57%). The package manager they name most is pnpm (15 files).

AGENTS.md or CLAUDE.md?

Among these Astro products, 52 keep an AGENTS.md and 35 a CLAUDE.md. Across every product we checked, 354 keep both, and in 189 of those the CLAUDE.md only points to the AGENTS.md (a symlink or a line like @AGENTS.md), so there's one file to maintain. Codex, Cursor, Copilot and others read AGENTS.md; Claude Code reads CLAUDE.md.

How long is a typical Astro AGENTS.md?

The median is 1,134 words in these 58 files; across all 731 files we read, half are between 444 and 1,727 words.

How this is counted: the GitHub repos of open-source products built with Astro, pushed to in the 180 days before 2026-10-28. We read each repo's AGENTS.md, CLAUDE.md and other agent files; what's published here is counts and links, not their text. All files, by the numbers.