.agents/skills/reui-seo/references/pattern-seo-playbook.md
Use this when authoring or expanding oss/registry-reui/bases/seo.json entries for each pattern category (accordion, alert, button, …).
Completed reference categories (accordion-style): accordion, alert, data-grid (TanStack Table called out). Migrate the rest in batches using oss/.agents/workflows/reui-pattern-seo-orchestration.md.
Use this order in JSON and on the page:
content.title: Title Case. Use "General Information" (or "{Component} Overview") for the guide block heading above the summary.content.summary: 2–3 short paragraphs only (general intro, what ReUI shows, pointer to sections below). Internal links: [[slug|Shadcn Name]] (see naming below).content.sections (typically 3 blocks):
featureItems: array of { "title": "Short label.", "description": "…" } (title bold, description inline; links use [[slug|Shadcn Name]]).relatedComponents (after sections, before FAQ in UI):
title: e.g. "Integrating With Other Components" (Title Case).integrationBody: 2–3 paragraphs with [[slug|Shadcn Name]] only. Mention components in prose; the site does not show a separate list of links.items: optional in JSON for author reference only (not rendered).content.faqs: Last on the page (accordion + FAQPage JSON-LD). 5–7 questions per pattern. Each question must be a real user or search intent, derived from research (Google, Stack Overflow, Quora) and from component API / features (shadcn docs + faq-research-subagent.md process). Forbidden: generic template FAQs copied across unrelated components (e.g. “Why include FAQs on pattern pages?”). No subtitle under the FAQ heading in the UI.| Topic | Choice |
|---|---|
| Em dash | Never use — (U+2014). Use comma, period, colon, or two sentences. |
| Keyword badges on page | Removed from UI. Keep keywords in JSON for metadata.keywords only. |
| SEO section chrome | No top border on the pattern SEO block (muted background only). |
| Section titles | Title Case, same visual size as the guide title (text-xl sm:text-2xl font-semibold). |
| Related components | integrationBody only on page (no link list). Optional items in JSON for authors. |
| FAQ UI | Accordion. Heading: "Frequently Asked Questions" only (no subtitle). 5–7 FAQs. |
| SEO column width | Fluid within max-w-7xl (same as pattern grid), full width of column. |
| Component names | Always Shadcn {Component} in copy and link labels: e.g. `[[button |
description / intro: Meta and hero; keep tight and accurate.content.summary: ~Half the old long summaries: 3 short paragraphs max for the template.integrationBody: 2–3 paragraphs.[[slug|Label]] only; slug is the registry category id (button, alert-dialog, card).integrationBody and feature text; optional items in JSON only if you want a private checklist for authors.JSON.parse on seo.json.relatedComponents: integrationBody present when the block exists; items optional.content.faqs: 5–7 entries; questions are research-backed and component-specific (see faq-research-subagent.md).[[…|…]] in new strings).| Piece | Location |
|---|---|
| Inline `[[slug | Label]]` |
| SEO block layout | pattern-category-seo-content.tsx |
| Related list + integration | pattern-category-seo-content.tsx (PatternCategoryRelatedComponents) |
.cursor/rules/reui-seo.mdc