AGENTS.md and CLAUDE.md examples for React Native
Of 52 actively developed open-source products built with React Native, 39 (75%) keep instruction files for coding agents: AGENTS.md in 35, CLAUDE.md in 22. The typical file is 1,429 words, and most cover pointers to other docs (81%) and commands to build, run and test (72%).
Real files to read
From the best-known open-source React Native 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 React Native. Each opens on GitHub.
| Project | File | Stars | Words | Covers |
|---|---|---|---|---|
| RSSNext/Folo | AGENTS.md | 39,176 | 986 | CommandsTestingDoc pointersStructureCode styleGit |
| pingdotgg/t3code | AGENTS.md | 30,859 | 3,845 | TestingDoc pointersGit |
| assistant-ui/assistant-ui | AGENTS.md | 12,787 | 1,207 | CommandsTestingDoc pointers |
| Uniswap/interface | AGENTS.md | 5,542 | 1,429 | CommandsTestingDoc pointersStructureCode style |
| artsy/eigen | AGENTS.md | 3,786 | 733 | CommandsTestingDoc pointersStructureCode styleGit |
| msgbyte/tailchat | AGENTS.md | 3,642 | 1,727 | CommandsTestingDoc pointersGit |
| garden-co/classic-jazz | AGENTS.md | 2,537 | 1,472 | CommandsTestingStructureCode styleGit |
| YosemiteCrew/Yosemite-Crew | AGENTS.md | 2,021 | 765 | TestingDoc pointersCode styleGit |
| evoluhq/evolu | AGENTS.md | 1,910 | 3,334 | CommandsTestingDoc pointersStructureCode style |
| theopenco/llmgateway | AGENTS.md | 1,714 | 1,966 | CommandsTestingDoc pointersStructureCode styleGit |
| AudiusProject/apps | CLAUDE.md | 622 | 773 | CommandsTestingDoc pointersStructureCode style |
| ever-co/ever-teams | AGENTS.md | 599 | 1,238 | CommandsDoc pointersStructureCode styleGit |
What React Native projects put in them
Share of the 36 files that cover each topic, against all 731 files we read.
How they talk to the agent: 94% say “never” or “do not” somewhere (all files: 80%), 39% shout a rule in capitals like IMPORTANT or MUST (23%), and 28% tell it to ask before some changes (20%).
The tools they name
Package managerspnpm (13 files), npm (9 files), yarn (6 files)
Tests and lintersVitest (10), Jest (7), Playwright (5), ESLint (5), Prettier (5), pytest (3)
Named more than in files generallyReact (27), TypeScript (25), Expo (16), pnpm (16), Vite (10), Vitest (10), Electron (9), Next.js (9)
What they tell the agent
Instructions that recur across files, in our words; open one for the React Native projects whose file says it.
About React Native
The mobile app is a React Native app, usually built on Expo, living in its own app directory.14 files
Mobile differs from web, so keep native and browser behavior in separate platform layers with their own guidance.4 files
About React
Named as the UI layer, usually React 19 with TypeScript on Vite or Next.js, sometimes with Tailwind.2 files
The React frontend or mobile app has its own nested instruction file with component and UI conventions to read first.2 files
Use React Query for server state and API calls, keeping client-only state elsewhere.1 files
About TypeScript
Keep TypeScript in strict mode; do not loosen compiler settings to make errors go away.3 files
Run the project's type-check script as a separate verification step, alongside lint and tests.2 files
Avoid the any type; use precise types, or unknown with type guards when the shape is not known.1 files
Named as the language for all code in the project.2 files
About Expo
Mobile apps are built with Expo and React Native, usually as one app inside a larger monorepo.13 files
About pnpm
Scope commands to one workspace package with pnpm --filter instead of running them from the whole monorepo.1 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.3 files
Run the pnpm lint, typecheck and test scripts before finishing or committing; CI enforces the same checks.1 files
About Vite
Vite is the frontend bundler and dev server, typically behind a React or Vue single-page app.1 files
Run the Vite dev server for hot-reload UI work.1 files
Where the project uses Vite+, run everything through the vp CLI instead of calling pnpm, npm, or vite directly.1 files
Environment variables exposed to client code use the VITE_ prefix and are baked in at build time.1 files
About Vitest
Co-locate Vitest test files next to the source they test.1 files
While iterating, run a single test file or filtered scope rather than the whole suite.1 files
Vite+ bundles Vitest, so run tests through its vp command.1 files
Run Vitest non-interactively with run or --run, never in watch mode, especially in automation.1 files
About Electron
Named as the desktop app or wrapper, living in its own directory such as desktop or electron.4 files
Treat Electron as a thin desktop shell; keep shared logic and UI in common packages or the web app.5 files
Running Electron locally needs care: install its binaries per worktree, avoid focus-stealing e2e runs, kill stale processes.2 files
About Next.js
Named as the web frontend, dashboard or docs site app inside a monorepo.3 files
Use App Router conventions.1 files
Keep backend and server logic in separate packages; Next.js is only the web frontend or dashboard.1 files
A starting AGENTS.md for React Native
The sections these files cover most, the package manager and checks React Native projects name most, and the stack React Native 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 - Mobile Framework: React Native ## 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/react-native — point CLAUDE.md here with a line: @AGENTS.md -->
- pnpm: named in 153 of 577 instruction files from open-source projects built with TypeScript.
- Vitest: named in 118 of 577 instruction files from open-source projects built with TypeScript.
- Playwright: named in 106 of 577 instruction files from open-source projects built with TypeScript.
- ESLint: named in 102 of 577 instruction files from open-source projects built with TypeScript.
Questions
What should an AGENTS.md for a React Native project include?
In 36 files from open-source React Native products: pointers to other docs (81%), commands to build, run and test (72%), testing (72%), project structure (56%), code style (56%), git, commits and pull requests (56%). The package manager they name most is pnpm (13 files).
AGENTS.md or CLAUDE.md?
Among these React Native 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 React Native AGENTS.md?
The median is 1,429 words in these 36 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 React Native, 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.