component-source-router
Use when deciding whether to implement UI from native HTML/CSS, accessible primitives, shadcn-style source components, or visual component registries such as 21st.dev, Aceternity, React Bits, Motion P
SKILL.md.codex/skills/component-source-router/SKILL.md
GitHubComponent Source Router
Principle
A component source solves implementation cost; it does not define the final visual language.
Route in this order
- semantic native HTML/CSS when sufficient;
- accessible unstyled primitives for complex behavior;
- owned/source components when they save implementation time;
- animated/visual registries as inspiration or behavior prototypes;
- custom implementation when the signature interaction requires it.
Read references/catalog.md when choosing a source.
Before adopting an external component
Check:
- behavior fit;
- accessibility and keyboard model;
- framework/runtime fit;
- dependency cost and duplication;
- styling reset effort;
- responsive behavior;
- reduced-motion behavior;
- license/current documentation.
Integration rule
Strip generic surface styling, map to project tokens, rewrite content, adapt composition, audit states, and remove unused dependencies. If the imported component makes the page look like its registry, the integration is unfinished.