diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..f4e5436 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,23 @@ +# River UI Agent Guidelines + +## Commands +- Dev: `npm run dev` (pro: `npm run dev:pro`) +- Lint/format: `npm run lint`, `npm run fmt` +- Tests: `npm run test`, `npm run test:once`, `npm exec -- vitest --run path/to/file.test.tsx` +- Build: `npm run build`, `make build` +- Go lint/test: `make lint`, `make test` + +## Rules +- No `any`; use `unknown` or specific types. +- Tests live beside components (`.test.tsx`). +- Prefix unused variables with `_`. + +## Validate +- UI/router/search-state: targeted tests + `npm run lint`. +- Larger changes: `npm run test:once` + `npm run build`. +- Go changes: `make lint`. + +## Commits +- Title <= 50 chars (max 72); wrap body ~72. +- Explain problem, fix, why it works, and tests. +- Use auto-close keywords; don’t mention "ran lint/tests".