- Accordion
- Alert
- Alert Dialog
- Autocomplete
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Card
- Checkbox
- Checkbox Group
- Collapsible
- Combobox
- Command
- Date Picker
- Dialog
- DrawerNew
- Empty
- Field
- Fieldset
- Form
- Frame
- Group
- Input
- Input Group
- Input OTPNew
- Kbd
- Label
- Menu
- Meter
- Number Field
- Pagination
- Popover
- Preview Card
- Progress
- Radio Group
- Scroll Area
- Select
- Separator
- Sheet
- Skeleton
- Slider
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Toolbar
- Tooltip
Skills
Give your AI assistant deep knowledge of coss ui components, patterns, and best practices.
Skills provide AI coding assistants with structured knowledge about coss ui — component APIs, composition patterns, styling conventions, migration rules, and common pitfalls. When installed, your assistant knows how to use coss primitives correctly without guessing.
For example, you can ask your assistant to:
- "Add a settings dialog with a form and save/cancel buttons."
- "Add a select with grouped options and a search filter."
- "Migrate this shadcn dropdown menu to coss."
- "Build a toast notification for form submission errors."
Install
pnpm dlx skills add cosscom/coss
This installs the coss skill into your project. Once installed, your AI assistant automatically loads it when working with coss ui components.
Learn more about the skills ecosystem at skills.sh.
What's Included
The skill covers the full coss ui surface:
Component Knowledge
Reference guides for all primitives — imports, minimal patterns, inline code examples, composition rules, and common pitfalls. The assistant knows when to use Dialog vs Sheet vs Drawer, how to compose trigger-based overlays, and how to structure forms with Field.
Styling Conventions
Tailwind v4 token usage, semantic color system, icon sizing rules, data-slot selectors, --alpha() syntax, and the font variable contract (--font-sans, --font-mono, --font-heading).
Migration Patterns
Rules for migrating from shadcn/Radix to coss/Base UI — asChild to render, onSelect to onClick, Select items-first pattern, ToggleGroup type to multiple, and Slider scalar values.
CLI and Registry
Full reference for installing components via the shadcn CLI, discovery fallbacks, and manual install paths.
Particle Examples
The skill references the particle catalog — real-world composition examples for every primitive — so the assistant can produce production-realistic code, not just minimal stubs.
How It Works
- Skill activation — Your AI agent detects the installed skill files in your project.
- Progressive loading — The root
SKILL.mdprovides core rules and a component registry index. Detailed per-component guides and rule references are loaded on demand when the task requires them. - Pattern enforcement — The assistant follows coss composition rules:
renderprop for trigger composition,DialogHeader/DialogPanel/DialogFootersection structure,variant="ghost"for cancel buttons, and correct Base UI APIs. - Example-driven output — Before generating code, the assistant consults particle examples to match real coss patterns.
Supported Agents
Skills work with any agent that supports the Agent Skills specification, including Claude Code, Cursor, Codex, Cline, Windsurf, GitHub Copilot, and many more.