.agents/skills/shade-page-templates/SKILL.md
When building a new admin page, the first question is what page type is this? — then reach for the matching pattern instead of inventing chrome.
Browsing or scanning a collection of items.
PageHeader (title + count + search/filter/actions) → table or list → empty state → pagination.ListPage (composes PageHeader). Heavy filter UI uses Filters.Working with a single item — viewing, editing, or both.
PageHeader with breadcrumb + title + meta, a primary action area, and a content area dedicated to the item.PageHeader directly and lay out the body yourself.Out of scope for the current page-template milestone. Don't force a settings page into ListPage or PageHeader.
No standard yet — too few examples. Don't standardise prematurely.
import {ListPage} from '@tryghost/shade/page-templates';
import {PageHeader, ViewBar, FilterBar} from '@tryghost/shade/patterns';
import {Button, EmptyIndicator, Table} from '@tryghost/shade/components';
<ListPage>
<ListPage.Header>
<PageHeader sticky={false} blurredBackground={false}>
<PageHeader.Left>
<PageHeader.Title>
Members<PageHeader.Count>{count}</PageHeader.Count>
</PageHeader.Title>
</PageHeader.Left>
<PageHeader.Actions>
<PageHeader.ActionGroup>
<Button>Add member</Button>
</PageHeader.ActionGroup>
</PageHeader.Actions>
</PageHeader>
<ViewBar></ViewBar>
<FilterBar></FilterBar>
</ListPage.Header>
<ListPage.Body>
{items.length === 0 ? <EmptyIndicator title='No members yet' /> : <Table>...</Table>}
</ListPage.Body>
</ListPage>
sticky={false} on PageHeader inside ListPage.Header. The wrapper handles stickiness and blur — leaving PageHeader sticky stacks two sticky containers and breaks scroll.useQuery inside a pattern. State lives in the consumer. Patterns are layout/composition contracts.PageHeader is slot-based (.Left, .Title, .Count, .Description, .Meta, .Actions, .ActionGroup, .Breadcrumb) — don't pass a prop bag.FilterBar auto-collapses when empty — render it unconditionally; no need to conditionally mount.PageHeader.Left — title block containerPageHeader.Breadcrumb — small muted breadcrumb above the titlePageHeader.Title — H1, accepts inline CountPageHeader.Count — inline secondary count next to the titlePageHeader.Description — paragraph below the titlePageHeader.Meta — small muted metadata line belowPageHeader.Actions — right-side action areaPageHeader.ActionGroup — grouping for buttonsPageHeader directly; build the body from primitives + components.If you're tempted to force a non-list shape into ListPage, stop and check whether you're actually building one of those three other shapes.
apps/shade/AGENTS.md. Human docs: Storybook → Page Templates / Page Types.