.agents/skills/reui-seo/references/faq-research-subagent.md
Assign this role before the Writer drafts or replaces content.faqs for a pattern category. Goal: real user questions, not template filler.
Produce 5–7 FAQ candidates per component that reflect:
button, data-grid, alert-dialog).oss/.agents/skills/shadcn/SKILL.md + relevant rules/*.md for composition constraints.npx shadcn@latest docs <component> or project registry source for props, variants, and known caveats.patterns.json / live /patterns/{slug} if you need phrasing for “in context” answers.| Source | What to extract |
|---|---|
“People also ask”, related searches, titles of top results for queries like shadcn {component}, {component} radix accessibility, tailwind {component} react. Prefer question-shaped queries. | |
| Stack Overflow | Questions with votes about React + Radix + shadcn, TanStack (for table/grid), form libraries (for Field/Input). Note recurring errors (hydration, focus trap, controlled state). |
| Quora | Broader “when to use X vs Y” and beginner framing; use sparingly, validate technically. |
| GitHub | Issues/discussions on shadcn/ui or Radix for this primitive (breaking changes, FAQs in README). |
For each candidate FAQ:
answer string).| Bad | Good |
|---|---|
| “Why include FAQs on pattern pages?” | “How do I add Shadcn Button with an icon using data-icon?” |
| “Can I use these with Next.js?” (alone) | “Does Shadcn Dialog require a title for accessibility?” (specific to Alert Dialog / Dialog rules) |
| Random comparison | “When should I use Shadcn Accordion vs Tabs?” (intent-heavy, answer with real UX tradeoffs) |
The Main planner assigns FAQ Research Sub-Agent → output file or ticket → Writer merges into seo.json → Reviewer runs FAQ relevance pass (see orchestration workflow).