avibebuilder/claude-prime / .claude/starter-skills/frontend-development
frontend-development
VerifiedUse this skill for ANY work involving React, Next.js, TypeScript, or Tailwind in the browser layer. This includes building components and pages, but equally covers debugging and fixing frontend issues: CSS/Tailwind classes not applying, form validation behavior, hydration mismatches between server and client renders, styling bugs, layout shifts, and rendering problems. Also use for refactoring components (e.g., splitting Server vs Client Components), data fetching patterns, state management, bundle optimization, and frontend tooling. If the problem involves what users see or interact with in a web browser — whether building, fixing, or refactoring — use this skill. Not for backend APIs, databases, infrastructure, or DevOps.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.0 KB |
| references/biome.md | markdown | 5.4 KB |
| references/conventions.md | markdown | 2.2 KB |
| references/data-fetching/axios.md | markdown | 2.0 KB |
| references/data-fetching/overview.md | markdown | 437 B |
| references/data-fetching/tanstack.md | markdown | 3.3 KB |
| references/data-fetching/trpc-tanstack.md | markdown | 2.0 KB |
| references/nextjs/file-structure.md | markdown | 2.2 KB |
| references/nextjs/overview.md | markdown | 348 B |
| references/nextjs/patterns.md | markdown | 2.2 KB |
| references/react/file-structure.md | markdown | 2.8 KB |
| references/react/overview.md | markdown | 436 B |
| references/react/patterns.md | markdown | 3.6 KB |
| references/react/state.md | markdown | 1.7 KB |
| references/shadcn.md | markdown | 2.0 KB |
| references/tailwind.md | markdown | 1.1 KB |
| references/typescript.md | markdown | 1.9 KB |
references/shadcn.md
View on GitHub# shadcn/ui Usage Rules
## Class Merging
- **ALWAYS** use `cn()` from `@/lib/utils` for conditional/merged classes
- **NEVER** use template literals for class conditionals
```tsx
// ✅ Using cn()
<div className={cn("base-class", isActive && "active-class")} />
// ❌ Don't use template literals
<div className={`base-class ${isActive ? 'active-class' : ''}`} />
```
## Base UI over Radix
> Migration guide: https://github.com/shadcn-ui/ui/discussions/9562
- **ALWAYS** prefer Base UI (`base-vega` style) over Radix for new projects
- For new projects: `npx shadcn@latest init` → select Base UI
- For existing projects: migrate component-by-component, not big-bang
- Base UI uses `@base-ui-components/react` (single package) instead of multiple `@radix-ui/react-*`
- **Key API difference**: Base UI has no `asChild` — remove it when migrating
- Positioning uses Floating UI (`@floating-ui/react`) instead of Radix popover internals
## Component Selection (follow this order)
When you need a UI component:
1. **Check existing codebase** — is it already built?
2. **Check shadcn/ui** — to use base component if available, but for complex use cases, also check step 3 before deciding
3. **Check Dice UI registry** (https://www.diceui.com/docs) — Dice UI extends shadcn with 50+ components including: data tables, phone input, mask input, tags input, file upload, kanban, color picker, combobox, rating, time picker, and more. **ALWAYS** check here before composing or building custom.
4. **Compose from primitives** — combine shadcn/ui + Dice UI components
5. **Build custom** — last resort, only if none of the above work
- **NEVER** modify files in `src/components/ui/` without approval
- **NEVER** skip step 3 — Dice UI likely has what you need before deciding to build custom
## Form Components
Forms use shadcn/ui form components with RHF + Zod.
→ See [react/patterns.md](../react/patterns.md) for form rules and hierarchy.
## Dice UI Installation
```bash
npx shadcn@latest add https://www.diceui.com/r/[component]
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |