Issue 531
Update guidelines and write-code skill: a plain read needs no use case
Back to our planOpen
documentationtoolingpriority: lowneeds grooming
Summary
PR #529 (for #521) lets a plain read skip the use case: a module's server.ts can export a data/ query directly, and a server component in ui/ can read data/. Two policy files still say every read goes through a use case. They need the same wording as docs/architecture/ (decision 0016).
Details
Lines to update (policy files, so not in #529):
docs/guidelines/nextjs-tailwind.mdline 24: "Fetch data through the owning module's use cases (from itsserver.ts)…" and line 49: "fetch through the owning module's use cases". Say a use case, or a plain read exported fromserver.ts..agents/skills/write-code/SKILL.mdline 62: "ui/→use-cases/→domain/" (add that server components inui/may readdata/, and client code never does), and line 71 (server.tsalso exports plaindata/reads).
Quote the owner from #521 (2026-10-31, voice session with Claude) when changing them.
Acceptance criteria
- The listed lines match
docs/architecture/README.mdrules 1, 4 and 5. - Nothing else in those files changes.
Generated by Claude Code, opens in a new tab