# AGENTS.md
Write clean, maintainable code.
Follow best practices.
Be careful with tests.# AGENTS.md
## Commands
- Install: `pnpm install`
- Test: `pnpm test`
- Lint: `pnpm lint`
## Rules
- Use the API client in `src/lib/api.ts`; never call `fetch` directly.
- Every new component gets a test in `__tests__/`.Exact commands and project-specific rules give the agent facts it cannot guess, while generic advice adds nothing.
README.md is for people who use or join the project. AGENTS.md holds the commands, conventions and rules an agent needs to work in the code.
Short enough to read in a minute, often under a few hundred lines. Move detailed guides into separate files or rules and link to them.
Yes. Many agents also read instruction files in subfolders, so a package can add its own rules on top of the root file.