skills/shadcn-tools/SKILL.md
Use when editing shadcn/ui code, components.json, cn() utility, Radix primitives, shadcn add workflows, dialogs, forms, data tables, command palettes, or Tailwind component composition.
npx skillsauth add cofin/flow shadcn-toolsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
For component discovery, CLI mastery, and pattern enforcement, we highly recommend installing the official shadcn/ui agent skills:
Installation:
npx skills add shadcn/ui
The patterns below provide additional context for Flow-specific copy-paste workflows and SPA navigation.
When using shadcn/ui components within a Single Page Application (SPA), ensure navigation does not cause full page reloads. Use asChild to pass the routing Link child directly.
import { Link } from '@tanstack/react-router'
import { Button } from "@/components/ui/button"
<Button asChild>
<Link to="/settings">Go to Settings</Link>
</Button>
</example>
</workflow>
<guardrails>
## Guardrails
asChild for Routing: When integrating with SPA routers (e.g., TanStack Router, React Router), always use the asChild prop on shadcn components to pass the routing Link as a child. This prevents invalid nested links and ensures proper event handling.text-primary, bg-secondary) instead of hardcoded hex codes or arbitrary Tailwind colors. This ensures the application remains themable and supports dark mode out of the box.cn() Utility Usage: Audit component code to ensure the cn() utility is used for all class merging, especially when combining base component styles with variant-specific classes or user-provided props.text-red-500 instead of a variable defined in the theme).
</validation>
testing
Use when syncing Beads state to markdown, checking Flow status, refreshing context docs, validating task markers, or reporting ready/blocked Flow work.
testing
Use when initializing Flow in a repo, configuring .agents, installing or checking Beads bd, setting local-only sync policy, or creating first project context files.
data-ai
Use when drafting PRDs, researching, planning, refining, revising, or creating .agents/specs/<flow_id>/spec.md worksheets for Flow.
testing
Use when implementing Flow tasks from Beads or spec.md, claiming ready work, applying TDD, recording task notes, committing, and syncing after task state changes.