Skip to content
SprecherEast
Issue 531

Update guidelines and write-code skill: a plain read needs no use case

Back to our plan
Open
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.md line 24: "Fetch data through the owning module's use cases (from its server.ts)…" and line 49: "fetch through the owning module's use cases". Say a use case, or a plain read exported from server.ts.
  • .agents/skills/write-code/SKILL.md line 62: "ui/ → use-cases/ → domain/" (add that server components in ui/ may read data/, and client code never does), and line 71 (server.ts also exports plain data/ 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.md rules 1, 4 and 5.
  • Nothing else in those files changes.

Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab