AGENTS.md and CLAUDE.md examples for Fastify
Of 59 actively developed open-source products built with Fastify, 40 (68%) keep instruction files for coding agents: AGENTS.md in 35, CLAUDE.md in 22. The typical file is 936 words, and most cover commands to build, run and test (79%) and pointers to other docs (71%).
Real files to read
From the best-known open-source Fastify 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 Fastify. Each opens on GitHub.
| Project | File | Stars | Words | Covers |
|---|---|---|---|---|
| tsedio/tsed | AGENTS.md | 3,089 | 783 | CommandsTestingDoc pointersGit |
| Draculabo/AntigravityManager | AGENTS.md | 2,410 | 1,409 | CommandsDoc pointersStructureGit |
| platformatic/platformatic | CLAUDE.md | 2,132 | 455 | CommandsTestingStructureGit |
| getnao/nao | AGENTS.md | 1,962 | 394 | CommandsTestingStructureCode style |
| ViewTube/viewtube | CLAUDE.md | 1,475 | 1,389 | CommandsTestingDoc pointersStructureCode styleGit |
| namecheap/ilc | AGENTS.md | 776 | 1,479 | CommandsTestingDoc pointersStructureCode styleGit |
| loglayer/loglayer | AGENTS.md | 549 | 2,059 | CommandsTestingDoc pointersStructureCode style |
What Fastify projects put in them
Share of the 38 files that cover each topic, against all 731 files we read.
How they talk to the agent: 79% say “never” or “do not” somewhere (all files: 80%), 13% shout a rule in capitals like IMPORTANT or MUST (23%), and 18% tell it to ask before some changes (20%).
The tools they name
Package managerspnpm (15 files), npm (9 files), yarn (4 files)
Tests and lintersESLint (9), Prettier (6), Vitest (4), Biome (4), Jest (2), Playwright (1)
Named more than in files generallypnpm (17), ESLint (9), SQLite (7), Anything (6), Electron (6), Yarn (6), GraphQL (5), Biome (4)
What they tell the agent
Instructions that recur across files, in our words; open one for the Fastify projects whose file says it.
About pnpm
Use the pnpm version pinned in the packageManager field, ideally through Corepack, rather than a global install.2 files
Scope commands to one workspace package with pnpm --filter instead of running them from the whole monorepo.3 files
Use pnpm only for installs and scripts; do not switch to npm or yarn.1 files
Avoid repo-wide pnpm lint fixes, full builds or whole test suites; run targeted commands for the changed code.2 files
About ESLint
Lint with the project's lint script, such as pnpm lint, and use its fix variant.2 files
Use a flat or shared ESLint config file in the repo as the source of rules.1 files
Lint must pass in CI and pre-commit hooks, so run it before committing.2 files
Some repos use Biome or oxlint instead of ESLint, so do not add or run ESLint there.2 files
About SQLite
Serves as the default or embedded local database, often with PostgreSQL as an optional alternative.3 files
Reach SQLite through an ORM or query builder such as Drizzle, Kysely or SeaORM, not scattered raw SQL.2 files
Tests use in-memory or real SQLite instead of external database services.1 files
About Electron
Named as the desktop app or wrapper, living in its own directory such as desktop or electron.2 files
Treat Electron as a thin desktop shell; keep shared logic and UI in common packages or the web app.1 files
About Yarn
The monorepo is managed with Yarn workspaces.3 files
Use Yarn rather than npm.2 files
Use the Yarn 4 version pinned in the package manifest.1 files
About GraphQL
Named as the API layer of the backend, often next to REST or MCP endpoints.2 files
About Biome
Run Biome through package scripts such as lint, format, check, or fix, optionally with auto-fix.2 files
Biome handles both linting and formatting, replacing ESLint and Prettier, so don't add those.1 files
Style is enforced by Biome automatically, so don't hand-police or comment on formatting.1 files
A starting AGENTS.md for Fastify
The sections these files cover most, the package manager and checks Fastify projects name most, and the stack Fastify 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 - Backend Framework: Fastify ## 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/fastify — point CLAUDE.md here with a line: @AGENTS.md -->
- pnpm: named in 15 of 38 instruction files from open-source projects built with Fastify.
- Vitest: named in 4 of 38 instruction files from open-source projects built with Fastify.
- Playwright: named in 1 of 38 instruction files from open-source projects built with Fastify.
- ESLint: named in 9 of 38 instruction files from open-source projects built with Fastify.
Questions
What should an AGENTS.md for a Fastify project include?
In 38 files from open-source Fastify products: commands to build, run and test (79%), pointers to other docs (71%), testing (61%), git, commits and pull requests (55%), project structure (53%), code style (47%). The package manager they name most is pnpm (15 files).
AGENTS.md or CLAUDE.md?
Among these Fastify products, 35 keep an AGENTS.md and 22 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 Fastify AGENTS.md?
The median is 936 words in these 38 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 Fastify, 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.