AGENTS.md · react-cosmos/react-cosmos
AGENTS.md from react-cosmos/react-cosmos: 36 lines covering Architecture, Dependencies, Build & test commands, Cross-package source linking.
Template by react-cosmos
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/react-cosmos/react-cosmos/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend-development, code-generation
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 36 lines
- File
AGENTS.md
Sections
- Architecture
- Dependencies
- Build & test commands
- Cross-package source linking
First lines (shown under the repo's MIT license)
# AGENTS.md
Guidance for agents when working in this monorepo.
Never commit without an explicit prompt — the user reviews changes before they land.
Never add a `Co-Authored-By` line or any other tool attribution to commit messages.
## Architecture
See [docs/pages/docs/dev/architecture.md](docs/pages/docs/dev/architecture.md) for the three-part breakdown of React Cosmos (Server, UI, Renderer) and how they communicate. Keep it in mind when making changes — the boundaries between these parts are load-bearing.
## Dependencies
All npm dependencies are pinned to exact versions (no `^` or `~` prefix). When adding or upgrading a package, use `npm install --save-exact <pkg>` (or `-E`) so the `package.json` entry is an exact version.
## Build & test commands
Use the npm scripts, not raw `tsc` / `vitest` — the scripts wrap custom build orchestration (see `scripts/build.ts`) and shared config that the raw tools don't know about.
- **Build one package**: `npm run build <pkg>` — e.g. `npm run build react-cosmos-core`. Accepts shorthand (`plugin-webpack` → `react-cosmos-plugin-webpack`).
- **Build all packages**: `npm run build` (serial, in dependency order).
- **Clear builds**: `npm run build:clear`.
- **Type-check**: `npm run check-types`.
- **Lint**: `npm run lint`.
- **Format**: `npm run format` (writes) or `npm run format:check` (CI mode).
- **Run tests**: `npm run test:run <filter>` — e.g. `npm run test:run react-cosmos-core`. Without a filter runs the full suite.
- **Watch tests**: `npm run test`.
- **E2E**: `npm run test:e2e` (Playwright).
## Cross-package source linking
`npm run src` rewrites the root shim files (`packages/*/{index,client,vitest}.{js,d.ts}`) to point at `./src/…` so cross-package edits resolve without rebuilding and so cross-package test coverage is measured against source. CI runs it before `check-types`, `lint`, and `test:run` — source-mode must type-check cleanly, not just dist-mode.
`npm run dist` flips them back. Always run this before committing; the repo's committed state is dist-mode.Signals
- Stars
- 8,690
- Forks
- 382
- Open issues
- 4
- Last commit (this folder)
- Aug 17, 2026 (2 months ago)
- Last release
- Aug 31, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/react-cosmos/react-cosmos
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Cite this page
AGENTS.md · react-cosmos/react-cosmos. Agent Mart. https://agentmart.dev/templates/react-cosmos-react-cosmos-agents-md (last updated 2026-10-24)