Create working React and Tailwind interfaces that fit the product, preserve explicit constraints, and make the primary task clear. Read only the references relevant to the requested work.
Match the requested scope
For advice, comparison of workflows, or questions about which skill to use, answer without executing those skills. Do not edit files, persist context, create reports, or start an interview. For an explicit review, inspect and report. Implement fixes only when the user requests them or has already authorized them. Reuse prior authorization within its scope.
Context Gathering Protocol
Gather only the context needed for the requested decision. Use this order:
- Reuse the user's current instructions, prior answers, and any direction or creative authority already granted.
- Resolve the target application's context using project context. Read its
.better-react-web-ui.md, applicable parent defaults, matching page brief, and existing design documents. Legacy files are fallback inputs within the same scope.
- Inspect the affected code, callers, assets, and existing design system. Treat observed implementation as evidence of the current system, not proof of unstated audience needs.
- Ask only about missing facts that materially change the work. Label reasonable assumptions and proceed with reversible choices within the authorized scope.
For a new design direction, establish the audience, intended task, and brand tone. Under explicit creative delegation, choose and record reasonable assumptions without another approval checkpoint. Never invent user answers or product facts.
For a focused repair, use the relevant code and constraints. Do not require a brand interview before fixing keyboard focus, overflow, or a measured performance defect.
Use $setup when the user requests persistent project context or when substantial design work needs missing context recorded. The absence of a context file alone does not require setup. Preserve existing context when updating it.
Set priorities
Preserve the existing visual system unless the user requests a change. For an open direction, choose a coherent style through design directions. Establish hierarchy with spacing, grouping, type, and contrast before adding decoration.
Distinguish requirements from preferences:
- Preserve accessibility, truthful content, functional controls, and explicit user constraints.
- Treat aesthetic guidance as defaults for open decisions. Inter, Arial, system fonts, pure white, pure black, gradients, cards, and familiar layouts are valid when they fit the brand and task.
- Use AI slop detection to diagnose generic composition, unsupported claims, or unnecessary decoration. A font or color alone is not a defect.
- Keep core workflows familiar and readable even when the marketing page uses expressive imagery or motion.
Prioritize clarity, task completion, and error prevention over visual novelty. Never fabricate customers, testimonials, metrics, capabilities, urgency, or scarcity. Keep prices, consent, destructive consequences, and cancellation paths clear. See interface honesty.
Match the implementation
Detect the existing React framework, Tailwind configuration, components, tokens, and data flow before editing. Reuse suitable code and installed dependencies. Respect explicit stack choices for new projects. Use framework defaults only for unspecified choices.
Consult framework official docs before framework-specific decisions. For Next.js, read relevant bundled documentation at node_modules/next/dist/docs/ when available. Prefer that version-matched source over memory.
Use component and block strategy and React shadcn accelerators when existing components or blocks fit the task. For custom primitives, read component anatomy and component accessibility. Preserve mature library semantics rather than rewriting them for appearance.
In Astro projects, add React islands only for interactions that need them. Keep implementation complexity proportionate to the requested result.
Implement the requested result
- Identify the target page, flow, or component and the visitor's task on that page. Preserve fixed content, section order, and interaction behavior. For substantial work, reuse or prepare the optional page brief described in project context.
- Choose a direction within the user's authority. For one requested artifact, implement directly. Use $add-ui for comparison when the user asks for alternatives, honoring the requested count. Do not add a selection checkpoint after the user has chosen or delegated a direction.
- Build the smallest complete version with real source files and working actions. Establish a constrained spacing, type, color, radius, and elevation system before decorative details. When following an approved visual reference, use reference fidelity.
- Cover relevant loading, empty, error, success, and responsive states. Use optimistic updates only when failures can be recovered without misleading the user or losing data.
- Verify the result in the target project. Report what changed, the checks performed, and any untested behavior.
For substantial missing context, use design process and UX strategy. Do not turn a focused repair into a redesign.
Load references by task
| Task |
References |
| Landing or marketing page |
Landing-page storytelling, hero sections, marketing copywriting, social proof |
| Hierarchy and layout |
Hierarchy checklist, spacing system, spatial design |
| Typography |
Typography, text hierarchy and readability |
| Color and status |
Color and contrast, semantic color, colorblindness UX |
| Imagery and depth |
Image treatment, surface separation, elevation system |
| Animation or scrolling |
Motion design, landing-page storytelling |
| Responsive behavior |
Responsive design, container queries |
| Controls, forms, and recovery |
Interaction design, component accessibility, error recovery |
| Copy and product decisions |
UX writing, interface honesty, pricing and packaging |
| Final review |
React and Tailwind implementation review, before-and-after examples |
Use the reference index for specialized topics such as authentication, commerce, data visualization, onboarding, permissions, and localization. Do not load the entire reference library for every task.
Verify before delivery
Follow visual verification for evidence, fix status, and unavailable-tool handling. Scale the following checks to the affected feature.
- Check that the primary action is clear and functional. Keep labels and content truthful.
- Check desktop and phone layouts, long content, and zoom for clipping, overflow, and lost functionality.
- Test keyboard operation, visible focus, accessible names, contrast, and relevant error recovery.
- With reduced motion enabled, keep all meaningful content visible and reachable. Decorative animation must not gate content access.
- Load initially visible and likely LCP images eagerly. Lazy-load suitable below-fold media. Reserve dimensions to avoid layout shifts.
- Base performance findings on measurements. Add memoization or temporary
will-change only when profiling supports it.
- Use the project's existing checks and respect its command restrictions. Do not claim browser, accessibility, or performance results from source inspection alone.
- Review whether typography, spacing, color, and interaction decisions fit the product. Preserve approved brand choices even when a different style is your personal preference.
1---2name: frontend-design-93description: Create distinctive React and Tailwind interfaces with strong hierarchy and polished implementation. Use when building or redesigning pages, flows, or components, or when another better-react-web-ui skill needs shared design guidance. Pair with add-ui for direct implementation or requested alternatives.4license: Apache 2.0. Based on Anthropic's frontend-design skill. See NOTI5---67Create working React and Tailwind interfaces that fit the product, preserve explicit constraints, and make the primary task clear. Read only the references relevant to the requested work.89## Match the requested scope1011For advice, comparison of workflows, or questions about which skill to use, answer without executing those skills. Do not edit files, persist context, create reports, or start an interview. For an explicit review, inspect and report. Implement fixes only when the user requests them or has already authorized them. Reuse prior authorization within its scope.1213## Context Gathering Protocol1415Gather only the context needed for the requested decision. Use this order:16171. Reuse the user's current instructions, prior answers, and any direction or creative authority already granted.182. Resolve the target application's context using [project context](reference/project-context.md). Read its `.better-react-web-ui.md`, applicable parent defaults, matching page brief, and existing design documents. Legacy files are fallback inputs within the same scope.193. Inspect the affected code, callers, assets, and existing design system. Treat observed implementation as evidence of the current system, not proof of unstated audience needs.204. Ask only about missing facts that materially change the work. Label reasonable assumptions and proceed with reversible choices within the authorized scope.2122For a new design direction, establish the audience, intended task, and brand tone. Under explicit creative delegation, choose and record reasonable assumptions without another approval checkpoint. Never invent user answers or product facts.2324For a focused repair, use the relevant code and constraints. Do not require a brand interview before fixing keyboard focus, overflow, or a measured performance defect.2526Use $setup when the user requests persistent project context or when substantial design work needs missing context recorded. The absence of a context file alone does not require setup. Preserve existing context when updating it.2728## Set priorities2930Preserve the existing visual system unless the user requests a change. For an open direction, choose a coherent style through [design directions](reference/design-directions.md). Establish hierarchy with spacing, grouping, type, and contrast before adding decoration.3132Distinguish requirements from preferences:3334- Preserve accessibility, truthful content, functional controls, and explicit user constraints.35- Treat aesthetic guidance as defaults for open decisions. Inter, Arial, system fonts, pure white, pure black, gradients, cards, and familiar layouts are valid when they fit the brand and task.36- Use [AI slop detection](reference/ai-slop-detection.md) to diagnose generic composition, unsupported claims, or unnecessary decoration. A font or color alone is not a defect.37- Keep core workflows familiar and readable even when the marketing page uses expressive imagery or motion.3839Prioritize clarity, task completion, and error prevention over visual novelty. Never fabricate customers, testimonials, metrics, capabilities, urgency, or scarcity. Keep prices, consent, destructive consequences, and cancellation paths clear. See [interface honesty](reference/interface-honesty.md).4041## Match the implementation4243Detect the existing React framework, Tailwind configuration, components, tokens, and data flow before editing. Reuse suitable code and installed dependencies. Respect explicit stack choices for new projects. Use [framework defaults](reference/framework-defaults.md) only for unspecified choices.4445Consult [framework official docs](reference/framework-official-docs.md) before framework-specific decisions. For Next.js, read relevant bundled documentation at `node_modules/next/dist/docs/` when available. Prefer that version-matched source over memory.4647Use [component and block strategy](reference/component-and-block-strategy.md) and [React shadcn accelerators](reference/react-shadcn-accelerators.md) when existing components or blocks fit the task. For custom primitives, read [component anatomy](reference/component-anatomy.md) and [component accessibility](reference/component-accessibility.md). Preserve mature library semantics rather than rewriting them for appearance.4849In Astro projects, add React islands only for interactions that need them. Keep implementation complexity proportionate to the requested result.5051## Implement the requested result52531. Identify the target page, flow, or component and the visitor's task on that page. Preserve fixed content, section order, and interaction behavior. For substantial work, reuse or prepare the optional page brief described in [project context](reference/project-context.md).542. Choose a direction within the user's authority. For one requested artifact, implement directly. Use $add-ui for comparison when the user asks for alternatives, honoring the requested count. Do not add a selection checkpoint after the user has chosen or delegated a direction.553. Build the smallest complete version with real source files and working actions. Establish a constrained spacing, type, color, radius, and elevation system before decorative details. When following an approved visual reference, use [reference fidelity](reference/reference-fidelity.md).564. Cover relevant loading, empty, error, success, and responsive states. Use optimistic updates only when failures can be recovered without misleading the user or losing data.575. Verify the result in the target project. Report what changed, the checks performed, and any untested behavior.5859For substantial missing context, use [design process](reference/design-process.md) and [UX strategy](reference/ux-strategy.md). Do not turn a focused repair into a redesign.6061## Load references by task6263| Task | References |64| --- | --- |65| Landing or marketing page | [Landing-page storytelling](reference/landing-page-storytelling.md), [hero sections](reference/hero-sections-ux.md), [marketing copywriting](reference/marketing-copywriting.md), [social proof](reference/social-proof-patterns.md) |66| Hierarchy and layout | [Hierarchy checklist](reference/hierarchy-checklist.md), [spacing system](reference/spacing-system.md), [spatial design](reference/spatial-design.md) |67| Typography | [Typography](reference/typography.md), [text hierarchy and readability](reference/text-hierarchy-and-readability.md) |68| Color and status | [Color and contrast](reference/color-and-contrast.md), [semantic color](reference/semantic-color.md), [colorblindness UX](reference/colorblindness-ux.md) |69| Imagery and depth | [Image treatment](reference/image-treatment.md), [surface separation](reference/surface-separation.md), [elevation system](reference/elevation-system.md) |70| Animation or scrolling | [Motion design](reference/motion-design.md), [landing-page storytelling](reference/landing-page-storytelling.md) |71| Responsive behavior | [Responsive design](reference/responsive-design.md), [container queries](reference/container-queries.md) |72| Controls, forms, and recovery | [Interaction design](reference/interaction-design.md), [component accessibility](reference/component-accessibility.md), [error recovery](reference/error-recovery.md) |73| Copy and product decisions | [UX writing](reference/ux-writing.md), [interface honesty](reference/interface-honesty.md), [pricing and packaging](reference/pricing-and-packaging.md) |74| Final review | [React and Tailwind implementation review](reference/react-tailwind-implementation-review.md), [before-and-after examples](reference/before-and-after-examples.md) |7576Use the [reference index](reference/README.md) for specialized topics such as authentication, commerce, data visualization, onboarding, permissions, and localization. Do not load the entire reference library for every task.7778## Verify before delivery7980Follow [visual verification](reference/visual-verification.md) for evidence, fix status, and unavailable-tool handling. Scale the following checks to the affected feature.8182- Check that the primary action is clear and functional. Keep labels and content truthful.83- Check desktop and phone layouts, long content, and zoom for clipping, overflow, and lost functionality.84- Test keyboard operation, visible focus, accessible names, contrast, and relevant error recovery.85- With reduced motion enabled, keep all meaningful content visible and reachable. Decorative animation must not gate content access.86- Load initially visible and likely LCP images eagerly. Lazy-load suitable below-fold media. Reserve dimensions to avoid layout shifts.87- Base performance findings on measurements. Add memoization or temporary `will-change` only when profiling supports it.88- Use the project's existing checks and respect its command restrictions. Do not claim browser, accessibility, or performance results from source inspection alone.89- Review whether typography, spacing, color, and interaction decisions fit the product. Preserve approved brand choices even when a different style is your personal preference.