Imported from 0xBlockhead/blockhead (
src/views/AGENTS.md). Install upstream withnpx skills add 0xBlockhead/blockhead --skill views. Copyright stays with the author.
Entity views
- Views render schema and collection state. They do not fetch provider data directly.
- Treat schema cardinality as the display contract. Render
Onedirectly, branch on absence forZeroOrOne, and use.values.lengthforMany. - Use
ResourceBoundaryat the exact consumption site instead of manually branching on resource state. - Use schema-backed entity views for related entities when available. Do not expose raw IDs or serialized entity objects in user-facing summaries.
- Do not repeat identity, icons, or artwork in a details list when the heading already renders them.
- Use inline entity links for one relational child, embedded summary details for intrinsic children, and tabs only when several substantial sections justify them.
- Keep
Content,Details,Title,Value, andHeadingsnippet contracts consistent withEntityViewandEntityId. - Load the
svelte-developmentskill for every view edit andentity-view-developmentfor entity summary, identity, related-entity, or detail layout changes. - Read the detailed reference in
entity-view-developmentbefore changing link ownership, details-list structure, or shared snippet contracts.