diff --git a/AGENTS.md b/AGENTS.md index 9340734f36500..920fa232af7ca 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -149,6 +149,7 @@ Read the matching doc before changing code in that area; code review enforces th - Client mutations use `createEnvironmentRpcCommand`, declare protected methods in `CLIENT_GUARDED_RPC_SCOPES`, and gate UI with `permissionAtom` (server stays authoritative). Keep raw RPC clients inside `rpc/`. - Server features are Effect services using `Effect.fn("Service.operation")` with thin transport handlers; see [02_effect-services.md](docs/internals/02_effect-services.md). - `apps/web/src/components/ui` exports own their look (`shadcn/no-restyle` enforces this); see [10_web-ui.md](docs/internals/10_web-ui.md). +- Before building UI, open `/design-system` in a dev build: it renders every primitive, variant and type role. Text takes a role (`` or `text-title` … `text-micro`), not `text-sm` or `font-medium`; a clickable thing is a `components/ui` control, not a styled `