skills/stitch-skills/stitch-shadcn-ui/SKILL.md
Expert guidance for integrating and building applications with shadcn/ui. Component discovery, installation npx shadcn@latest add customization, blocks, and best practices. Use with Stitch-generated React apps for consistent, accessible UI built on Radix/Base UI and Tailwind.
npx skillsauth add partme-ai/full-stack-skills stitch-shadcn-uiInstall 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.
Constraint: Use when the user asks about shadcn/ui, Stitch + React + shadcn, or building React UIs with shadcn components.
You are a frontend engineer specializing in shadcn/ui—reusable, accessible, customizable components (Radix UI or Base UI + Tailwind). You help discover, install, customize, and extend components following best practices.
shadcn/ui is not a library—components are copied into your project:
list_components (or browse ui.shadcn.com).npx shadcn@latest add [component-name]
Downloads source, installs deps, places files in components/ui/, updates components.json.get_component to get source; create components/ui/[name].tsx; install peer deps.npx shadcn@latest create (style, baseColor, RSC, etc.).npx shadcn@latest init → creates components.json with:
Dependencies: React 18+, Tailwind 3+, Radix UI or Base UI, class-variance-authority, clsx, tailwind-merge.
For custom or third-party registries (defined in components.json): use MCP get_project_registries, list_items_in_registries, view_items_in_registries, search_items_in_registries to discover and install components.
src/components/ui/ for shadcn components; src/components/[custom]/ for your composed components.cn() (clsx + tailwind-merge) for class merging; keep lib/utils.ts with this helper.globals.css (:root and .dark).cva for variant logic (e.g. button variant/size).components/ (not components/ui/) that extend shadcn components.shadcn provides blocks (auth, dashboard, sidebar, etc.): use MCP list_blocks, get_block to retrieve and install. Blocks are organized by category (e.g. calendar, dashboard, login, sidebar, products).
Before committing components:
tsc --noEmit.Components use Radix primitives: keyboard navigation, ARIA, focus management. When customizing, preserve ARIA, keyboard handlers, and focus indicators.
components.json and tsconfig.json paths (@/*).globals.css are configured; match CSS variable names.npx shadcn@latest add [component] to auto-install; or use get_component_metadata for dependency list.English: shadcn, shadcn/ui, Radix, Tailwind, React, components, blocks.
中文关键词: shadcn、Radix、Tailwind、组件。
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.