⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat: add coss primitives documentation and rules
Andrejb313a15ce312
diff --git a/.agents/skills/coss/SKILL.md b/.agents/skills/coss/SKILL.mdnew file mode 100644index 000000000..0e5e76ebe--- /dev/null+++ b/.agents/skills/coss/SKILL.md@@ -0,0 +1,116 @@+---+name: coss+description: Helps implement coss UI components correctly. Use when building UIs with coss primitives (buttons, dialogs, selects, forms, menus, tabs, inputs, toasts, etc.), migrating from shadcn/Radix to coss/Base UI, composing trigger-based overlays, or troubleshooting coss component behavior. Covers imports, accessibility, Tailwind styling, and common pitfalls.+compatibility: Requires Tailwind CSS v4 and @base-ui/react. Designed for React projects using the coss component registry.+license: MIT+metadata:+ author: cosscom+---++# coss ui++coss ui is a component library built on Base UI with a shadcn-like developer experience plus a large particle catalog.++## What this skill is for++Use this skill to:++- pick the right coss primitive(s) for a UI task+- write correct coss usage code (imports, composition, props)+- avoid common migration mistakes from shadcn/Radix assumptions+- reference particle examples to produce practical, production-like patterns++## Source of truth++- coss components docs: `apps/ui/content/docs/components/*.mdx`+ - `https://github.com/cosscom/coss/tree/main/apps/ui/content/docs/components`+- coss particle examples: `apps/ui/registry/default/particles/p-*.tsx`+ - `https://github.com/cosscom/coss/tree/main/apps/ui/registry/default/particles`+- coss particles catalog: `https://coss.com/ui/particles`+- docs map for agents: `https://coss.com/ui/llms.txt`++## Out of scope++- Maintaining coss monorepo internals/build pipelines.+- Editing registry internals unless explicitly requested.++## Principles for agent output++1. Use existing primitives and particles first before inventing custom markup.+2. Prefer composition over custom behavior reimplementation.+3. Follow coss naming and APIs from docs exactly.+4. Keep examples accessible and production-realistic.+5. Prefer concise code that mirrors coss docs/particles conventions.+6. Assume Tailwind CSS v4 conventions in coss examples and setup guidance.++## Critical usage rules++Always apply before returning coss code:++- Do not invent coss APIs. Verify against component docs first.+- For trigger-based primitives (Dialog, Menu, Select, Popover, Tooltip), follow each primitive's documented trigger/content hierarchy and composition API; do not mix patterns across components.+- Preserve accessibility labels and error semantics.+- Consult primitive-specific guides for component invariants and edge cases.+- For manual install guidance, include all required dependencies and local component files referenced by imports.+- Prefer styled coss exports first; use `*Primitive` exports only when custom composition/styling requires it.++Rule references (read on demand when the task touches these areas):++- `./references/rules/styling.md` — Tailwind tokens, icon conventions, data-slot selectors+- `./references/rules/forms.md` — Field composition, validation, input patterns+- `./references/rules/composition.md` — Trigger/popup hierarchies, grouped controls+- `./references/rules/migration.md` — shadcn/Radix to coss/Base UI migration patterns++## Component discovery++All 53 primitives have dedicated reference guides at `./references/primitives/<name>.md`. To find the right one for a task, consult the component registry index:++- `./references/component-registry.md`++## Usage workflow++1. Identify user intent (single primitive, composed flow, form flow, overlay flow, feedback flow).+2. Consult `references/component-registry.md` to identify candidate primitives.+3. Select primitives from coss docs first; avoid custom fallback unless needed.+4. Check at least one particle example for practical composition patterns. Particle files live at `apps/ui/registry/default/particles/p-<name>-<N>.tsx` (e.g. `p-dialog-1.tsx`).+5. Write minimal code using documented imports/props.+6. Self-check accessibility and composition invariants.++## Installation reference++See `./references/cli.md` for full install/discovery workflow.++Quick CLI pattern:++```bash+npx shadcn@latest add @coss/<component>+```++Quick manual pattern:++- install dependencies listed in the component docs page+- copy required component file(s)+- update imports to match the target app alias setup++## Primitive Guidance++Every primitive has a reference guide at `./references/primitives/<name>.md` with imports, minimal patterns, inline code examples, pitfalls, and particle references. Use the component registry to find the right file.++High-risk primitives (read these guides first -- they have the most composition gotchas):++- `./references/primitives/dialog.md` — modal overlays, form-in-dialog, responsive dialog/drawer+- `./references/primitives/menu.md` — dropdown actions, checkbox/radio items, submenus+- `./references/primitives/select.md` — items-first pattern, multiple, object values, groups+- `./references/primitives/form.md` — Field composition, validation, submission+- `./references/primitives/input-group.md` — addons, DOM order invariant, textarea layouts+- `./references/primitives/toast.md` — toastManager (not Sonner), anchored toasts, providers++## Output Checklist++Before returning code:++- imports and props match coss docs+- composition structure is valid for selected primitive(s)+- accessibility and explicit control types (`button`, `input`, etc.) are present+- migration-sensitive flows are verified (type/lint, keyboard/a11y behavior, and SSR-sensitive primitives like Select/Command)+diff --git a/.agents/skills/coss/references/cli.md b/.agents/skills/coss/references/cli.mdnew file mode 100644index 000000000..cc52100ae--- /dev/null+++ b/.agents/skills/coss/references/cli.md@@ -0,0 +1,110 @@+# coss CLI Reference (Focused)++Use this guide when installing, previewing, or discovering coss components via the shadcn CLI.++## CLI Safety Rules++- Always use the project's package runner:+ - `npx shadcn@latest ...`+ - `pnpm dlx shadcn@latest ...`+ - `bunx --bun shadcn@latest ...`+- Do not invent flags. Use only documented CLI flags.++## Core Commands for coss Usage++### Recommended bootstrap paths++```bash+# New projects (recommended — includes Inter + Geist Mono fonts + full theme)+npx shadcn@latest init @coss/style++# Existing projects - all primitives+npx shadcn@latest add @coss/ui++# Existing projects - full theme setup+npx shadcn@latest add @coss/style++# Existing projects - primitives + color tokens+npx shadcn@latest add @coss/ui @coss/colors-neutral+```++`@coss/style` automatically installs `@coss/fonts` (Inter for `--font-sans` and `--font-heading`, Geist Mono for `--font-mono`), which configures all three font variables in `layout.tsx`. No manual font wiring needed.++### `add` (primary)++```bash+shadcn add @coss/<component>+```++Examples:++```bash+npx shadcn@latest add @coss/dialog+npx shadcn@latest add @coss/select+npx shadcn@latest add @coss/toast+```++### `add` preview mode (recommended)++```bash+npx shadcn@latest add @coss/dialog --dry-run+npx shadcn@latest add @coss/dialog --diff+npx shadcn@latest add @coss/dialog --view+```++Use preview mode when:++- user asks what will change+- component might already exist locally+- you need to inspect output before writing files++### Optional discovery helpers (use when available)++```bash+npx shadcn@latest search @coss -q "dialog"+npx shadcn@latest view @coss/dialog+npx shadcn@latest docs dialog+npx shadcn@latest info --json+```++If these are unsupported in the environment, use fallback sources below.++## Discovery Fallback Matrix++### Inside the coss repo (preferred)++- `apps/ui/registry/registry-particles.ts`+ - `https://github.com/cosscom/coss/blob/main/apps/ui/registry/registry-particles.ts`+- `apps/ui/registry.json`+ - `https://github.com/cosscom/coss/blob/main/apps/ui/registry.json`+- `apps/ui/content/docs/components/*.mdx`+ - `https://github.com/cosscom/coss/tree/main/apps/ui/content/docs/components`++### Outside the coss repo++- coss particles catalog: `https://coss.com/ui/particles`+- coss docs catalog: `https://coss.com/ui/`++## Manual Install Path++When users explicitly request manual setup:++1. Read the target component docs.+2. Install exactly the listed dependencies.+3. Copy all required files (including transitive local imports).+4. Adjust imports for target app aliases.+5. Validate the snippet against docs/particles patterns.++Important:++- CLI setup usually wires required theme tokens automatically.+- Manual setup must include required additional tokens (`destructive-foreground`, `info`, `success`, `warning` families) from coss styling docs when relevant.++## Quick Output Checklist++Before returning CLI guidance:++1. runner and command are valid for the user's package manager+2. flags are documented and intentional+3. fallback source is provided if CLI discovery commands are unavailable+4. resulting usage guidance matches coss docs and particles patternsdiff --git a/.agents/skills/coss/references/component-registry.md b/.agents/skills/coss/references/component-registry.mdnew file mode 100644index 000000000..49d280b2e--- /dev/null+++ b/.agents/skills/coss/references/component-registry.md@@ -0,0 +1,72 @@+# coss Component Registry Index++Use this file to quickly identify the right coss primitive for a UI task. Each entry includes the component name, a one-line purpose, and the path to its reference guide (relative to the skill root `apps/ui/skills/coss/`).++## Overlays & Popups+- **Dialog** — Centered modal requiring user focus. `./references/primitives/dialog.md`+- **AlertDialog** — Destructive/critical confirmation modal. `./references/primitives/alert-dialog.md`+- **Sheet** — Side-panel overlay for settings/details. `./references/primitives/sheet.md`+- **Drawer** — Bottom/side drawer, often mobile-responsive. `./references/primitives/drawer.md`+- **Popover** — Anchored non-modal floating content. `./references/primitives/popover.md`+- **Tooltip** — Short hover/focus hint text. `./references/primitives/tooltip.md`+- **PreviewCard** — Hover-triggered rich entity preview. `./references/primitives/preview-card.md`+- **Menu** — Dropdown action list with groups/submenus. `./references/primitives/menu.md`+- **Command** — Searchable command palette (not cmdk). `./references/primitives/command.md`++## Selection & Input+- **Select** — Single-choice from predefined list (no search). `./references/primitives/select.md`+- **Combobox** — Searchable selection with filtering. `./references/primitives/combobox.md`+- **Autocomplete** — Free-text with suggestions. `./references/primitives/autocomplete.md`+- **Input** — Single-line text entry. `./references/primitives/input.md`+- **Textarea** — Multi-line text entry. `./references/primitives/textarea.md`+- **InputGroup** — Input with addons (icons, buttons, badges). `./references/primitives/input-group.md`+- **InputOTP** — One-time passcode segmented slots. `./references/primitives/input-otp.md`+- **NumberField** — Numeric entry with stepper controls. `./references/primitives/number-field.md`+- **Slider** — Continuous/ranged numeric control. `./references/primitives/slider.md`+- **Calendar** — Date picker / calendar views. `./references/primitives/calendar.md`++## Forms & Validation+- **Form** — Form validation/submission with Zod. `./references/primitives/form.md`+- **Field** — Label + description + error wiring. `./references/primitives/field.md`+- **Fieldset** — Grouped form controls with legend. `./references/primitives/fieldset.md`+- **Label** — Accessible label for controls. `./references/primitives/label.md`++## Toggle & Choice+- **Checkbox** — Single boolean toggle. `./references/primitives/checkbox.md`+- **CheckboxGroup** — Multiple-selection set. `./references/primitives/checkbox-group.md`+- **RadioGroup** — Mutually exclusive single choice. `./references/primitives/radio-group.md`+- **Switch** — Binary on/off preference toggle. `./references/primitives/switch.md`+- **Toggle** — Pressable two-state command button. `./references/primitives/toggle.md`+- **ToggleGroup** — Grouped pressed-state controls. `./references/primitives/toggle-group.md`++## Layout & Navigation+- **Tabs** — Mutually exclusive tabbed panels. `./references/primitives/tabs.md`+- **Accordion** — Collapsible content sections. `./references/primitives/accordion.md`+- **Collapsible** — Single expand/collapse region. `./references/primitives/collapsible.md`+- **Sidebar** — Persistent app shell navigation. `./references/primitives/sidebar.md`+- **Breadcrumb** — Hierarchical navigation trail. `./references/primitives/breadcrumb.md`+- **Pagination** — Paged navigation controls. `./references/primitives/pagination.md`+- **Toolbar** — Grouped command/action strip. `./references/primitives/toolbar.md`+- **ScrollArea** — Styled scroll container. `./references/primitives/scroll-area.md`++## Content & Display+- **Card** — Content container with sections. `./references/primitives/card.md`+- **Frame** — Bordered content surface. `./references/primitives/frame.md`+- **Table** — Tabular data presentation. `./references/primitives/table.md`+- **Avatar** — User/entity profile image. `./references/primitives/avatar.md`+- **Badge** — Status indicator / label. `./references/primitives/badge.md`+- **Kbd** — Keyboard shortcut hints. `./references/primitives/kbd.md`+- **Separator** — Visual/semantic divider. `./references/primitives/separator.md`+- **Group** — Connected control cluster. `./references/primitives/group.md`+- **Empty** — Empty-state placeholder. `./references/primitives/empty.md`++## Feedback & Status+- **Alert** — Inline persistent status message. `./references/primitives/alert.md`+- **Toast** — Transient notification (toastManager). `./references/primitives/toast.md`+- **Progress** — Task completion / async progress bar. `./references/primitives/progress.md`+- **Meter** — Bounded scalar measurement. `./references/primitives/meter.md`+- **Spinner** — Indeterminate loading indicator. `./references/primitives/spinner.md`+- **Skeleton** — Loading placeholder. `./references/primitives/skeleton.md`++## Actions+- **Button** — Primary/secondary action trigger. `./references/primitives/button.md`diff --git a/.agents/skills/coss/references/primitives/accordion.md b/.agents/skills/coss/references/primitives/accordion.mdnew file mode 100644index 000000000..82265190b--- /dev/null+++ b/.agents/skills/coss/references/primitives/accordion.md@@ -0,0 +1,92 @@+# coss Accordion++## When to use++- Expandable multi-section content regions.+- FAQs and settings pages with progressive disclosure.++## Install++```bash+npx shadcn@latest add @coss/accordion+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Accordion,+ AccordionItem,+ AccordionPanel,+ AccordionTrigger,+} from "@/components/ui/accordion"+```++## Minimal pattern++```tsx+<Accordion defaultValue={["item-1"]}>+ <AccordionItem value="item-1">+ <AccordionTrigger>What is Base UI?</AccordionTrigger>+ <AccordionPanel>+ Base UI is a library of high-quality unstyled React components.+ </AccordionPanel>+ </AccordionItem>+</Accordion>+```++## Patterns from coss particles++### Key patterns++Multiple panels open simultaneously:++```tsx+<Accordion multiple defaultValue={["item-1", "item-2"]}>+ <AccordionItem value="item-1">+ <AccordionTrigger>Section 1</AccordionTrigger>+ <AccordionPanel>Content 1</AccordionPanel>+ </AccordionItem>+ <AccordionItem value="item-2">+ <AccordionTrigger>Section 2</AccordionTrigger>+ <AccordionPanel>Content 2</AccordionPanel>+ </AccordionItem>+</Accordion>+```++Controlled mode with external state:++```tsx+const [value, setValue] = useState<string[]>(["item-1"])++<Accordion value={value} onValueChange={setValue}>+ ...+</Accordion>+```++Each `AccordionItem` needs a stable `value`; trigger and panel must be children of the same item.++### More examples++See `p-accordion-1` through `p-accordion-4` for mapped items, single-open, multiple-open, and controlled patterns.++## Common pitfalls++- Placing `AccordionTrigger`/`AccordionPanel` outside `AccordionItem`.+- Omitting `value` on `AccordionItem`, which breaks item identity and controlled behavior.+- Applying Radix mental models like `type="single" | "multiple"` instead of coss `multiple` + array values.+- Treating controlled `value` as scalar instead of `string[]`.++## Useful particle references++- baseline mapped-items accordion: `p-accordion-1`+- single-open static sections: `p-accordion-2`+- multiple-open behavior: `p-accordion-3`+- controlled value + external actions: `p-accordion-4`+diff --git a/.agents/skills/coss/references/primitives/alert-dialog.md b/.agents/skills/coss/references/primitives/alert-dialog.mdnew file mode 100644index 000000000..036df8ab1--- /dev/null+++ b/.agents/skills/coss/references/primitives/alert-dialog.md@@ -0,0 +1,85 @@+# coss Alert Dialog++## When to use++- Critical confirmation flows before destructive actions.+- Blocking decisions that require explicit acknowledgement.++## When NOT to use++- If the content is informational (no destructive action) -> use Dialog instead.+- If the message is transient feedback -> use Toast instead.+- If the content is contextual and non-blocking -> use Popover instead.++## Install++```bash+npx shadcn@latest add @coss/alert-dialog+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ AlertDialog,+ AlertDialogClose,+ AlertDialogDescription,+ AlertDialogPanel,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogPopup,+ AlertDialogTitle,+ AlertDialogTrigger,+} from "@/components/ui/alert-dialog"+```++## Minimal pattern++```tsx+<AlertDialog>+ <AlertDialogTrigger render={<Button variant="destructive-outline" />}>+ Delete Account+ </AlertDialogTrigger>+ <AlertDialogPopup>+ <AlertDialogHeader>+ <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>+ <AlertDialogDescription>+ This action cannot be undone.+ </AlertDialogDescription>+ </AlertDialogHeader>+ <AlertDialogFooter>+ <AlertDialogClose render={<Button variant="ghost" />}>Cancel</AlertDialogClose>+ <AlertDialogClose render={<Button variant="destructive" />}>+ Delete Account+ </AlertDialogClose>+ </AlertDialogFooter>+ </AlertDialogPopup>+</AlertDialog>+```++## Patterns from coss particles++- **Section structure invariant**: keep `AlertDialogHeader`, optional `AlertDialogPanel`, and `AlertDialogFooter` as direct sections of `AlertDialogPopup`.+- **Action composition**: use `AlertDialogClose render={<Button ... />}` for cancel/confirm actions to preserve button semantics and styling.+- **Destructive affordance**: pair destructive trigger/confirm variants (`destructive-outline`, `destructive`) for clear risk signaling.+- **Footer variants**: use `AlertDialogFooter variant="bare"` when border/background framing should be removed.+- **Close confirmation chain**: for unsaved changes in broader workflows, pair with dialog flows like `p-dialog-4`.++## Common pitfalls++- Using AlertDialog as a generic content modal instead of high-risk confirmation UI.+- Omitting explicit destructive/cancel action distinction.+- Wrapping dialog sections in extra containers that break built-in layout (use `className="contents"` only when needed).+- Mixing Dialog/Popover composition APIs without validating this primitive's parts.+- Skipping focus-return and escape-key verification on real trigger flows.++## Useful particle references++- core alert-dialog patterns: `p-alert-dialog-1`, `p-alert-dialog-2`+- related close-confirmation flow: `p-dialog-4`diff --git a/.agents/skills/coss/references/primitives/alert.md b/.agents/skills/coss/references/primitives/alert.mdnew file mode 100644index 000000000..31f062aa7--- /dev/null+++ b/.agents/skills/coss/references/primitives/alert.md@@ -0,0 +1,90 @@+# coss Alert++## When to use++- Inline status messaging in content flows.+- Semantic feedback variants (`info`, `success`, `warning`, `error`) with optional icons and actions.++## When NOT to use++- If the message is transient and should auto-dismiss -> use Toast instead.+- If the message requires user action before proceeding -> use AlertDialog instead.+- If it's a brief hover hint -> use Tooltip instead.++## Install++```bash+npx shadcn@latest add @coss/alert+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import { Alert, AlertAction, AlertDescription, AlertTitle } from "@/components/ui/alert"+```++## Minimal pattern++```tsx+<Alert>+ <AlertTitle>Heads up!</AlertTitle>+ <AlertDescription>+ You can add components and dependencies to your app using the cli.+ </AlertDescription>+</Alert>+```++## Patterns from coss particles++### Key patterns++Alert with semantic icon (do NOT use `aria-hidden` — icon conveys status):++```tsx+<Alert variant="info">+ <InfoIcon />+ <AlertTitle>Heads up!</AlertTitle>+ <AlertDescription>You can add components using the CLI.</AlertDescription>+</Alert>+```++Variants: `default`, `info`, `success`, `warning`, `error`.++Alert with action buttons (use `AlertAction`):++```tsx+<Alert>+ <InfoIcon />+ <AlertTitle>Heads up!</AlertTitle>+ <AlertDescription>Describe what can be done about it here.</AlertDescription>+ <AlertAction>+ <Button size="xs" variant="ghost">Dismiss</Button>+ <Button size="xs">Ok</Button>+ </AlertAction>+</Alert>+```++### More examples++See `p-alert-1` through `p-alert-7` for all variants and action patterns.++## Common pitfalls++- Using alert variants for passive decoration instead of meaningful semantic status.+- Missing title/description structure in complex alerts, reducing scannability.+- Hiding semantic alert icons with `aria-hidden` when they convey status meaning.++## Useful particle references++- with icon: `p-alert-2`+- with icon and action buttons: `p-alert-3`+- info alert: `p-alert-4`+- success alert: `p-alert-5`+- warning alert: `p-alert-6`+- error alert: `p-alert-7`diff --git a/.agents/skills/coss/references/primitives/autocomplete.md b/.agents/skills/coss/references/primitives/autocomplete.mdnew file mode 100644index 000000000..2ed4e6352--- /dev/null+++ b/.agents/skills/coss/references/primitives/autocomplete.md@@ -0,0 +1,132 @@+# coss Autocomplete++## When to use++- Search-driven suggestion pickers with free typing.+- Assisted text entry over a known option space with keyboard navigation.++## When NOT to use++- If options are predefined and don't need search -> use Select instead.+- If the user must pick from a strict set (no free text) -> use Combobox instead.+- If you need action commands, not data selection -> use Command instead.++## Install++```bash+npx shadcn@latest add @coss/autocomplete+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Autocomplete,+ AutocompleteCollection,+ AutocompleteEmpty,+ AutocompleteGroup,+ AutocompleteGroupLabel,+ AutocompleteInput,+ AutocompleteItem,+ AutocompleteList,+ AutocompletePopup,+ AutocompleteSeparator,+ AutocompleteStatus,+ useAutocompleteFilter,+} from "@/components/ui/autocomplete"+```++## Minimal pattern++```tsx+const items = [+ { label: "Apple", value: "apple" },+ { label: "Banana", value: "banana" },+]++<Autocomplete items={items}>+ <AutocompleteInput aria-label="Search items" placeholder="Search items…" />+ <AutocompletePopup>+ <AutocompleteEmpty>No items found.</AutocompleteEmpty>+ <AutocompleteList>+ {(item) => (+ <AutocompleteItem key={item.value} value={item}>+ {item.label}+ </AutocompleteItem>+ )}+ </AutocompleteList>+ </AutocompletePopup>+</Autocomplete>+```++For form-bound autocomplete controls, prefer `Field` wrappers so label, required state, and error output remain tied to the same control.++## Patterns from coss particles++### Key patterns++Autocomplete with input affordances:++```tsx+<Autocomplete items={items}>+ <AutocompleteInput+ aria-label="Search frameworks"+ placeholder="Search..."+ showClear+ showTrigger+ startAddon={<SearchIcon aria-hidden="true" />}+ />+ <AutocompletePopup>+ <AutocompleteEmpty>No results found.</AutocompleteEmpty>+ <AutocompleteList>+ {(item) => <AutocompleteItem key={item.value} value={item}>{item.label}</AutocompleteItem>}+ </AutocompleteList>+ </AutocompletePopup>+</Autocomplete>+```++Grouped lists:++```tsx+<AutocompleteList>+ <AutocompleteGroup>+ <AutocompleteGroupLabel>Fruits</AutocompleteGroupLabel>+ <AutocompleteCollection>+ {(item) => <AutocompleteItem key={item.value} value={item}>{item.label}</AutocompleteItem>}+ </AutocompleteCollection>+ </AutocompleteGroup>+</AutocompleteList>+```++Async search: use `filter={null}`, control `value`/`onValueChange`, and provide `itemToStringValue` for object results.++Form integration: place `Autocomplete` inside `Field name="..."` with `FieldLabel`/`FieldError`.++### More examples++See `p-autocomplete-1` through `p-autocomplete-15` for sizes, matching behavior, groups, limited results, async, form integration, and pill input patterns.++## Common pitfalls++- Omitting `AutocompleteEmpty`, leaving blank popups with no user feedback.+- Using object items in async/custom flows without `itemToStringValue`, which breaks stable string mapping.+- Mixing combobox/select assumptions into autocomplete APIs without checking docs.+- Missing explicit labels (`FieldLabel` or `aria-label`) on the input.+- Not handling async race/error states (`loading`, `error`, stale response cancellation).++## Useful particle references++- baseline + size + disabled: `p-autocomplete-1`, `p-autocomplete-2`, `p-autocomplete-3`, `p-autocomplete-4`+- label + input affordances (`showClear`, `showTrigger`, `startAddon`): `p-autocomplete-5`, `p-autocomplete-8`, `p-autocomplete-9`, `p-autocomplete-14`+- matching behavior (`mode="both"`, `autoHighlight`): `p-autocomplete-6`, `p-autocomplete-7`+- grouped options: `p-autocomplete-10`+- limited results with status message: `p-autocomplete-11`+- async search with loading/error status: `p-autocomplete-12`+- form integration: `p-autocomplete-13`+- style variant (pill input): `p-autocomplete-15`diff --git a/.agents/skills/coss/references/primitives/avatar.md b/.agents/skills/coss/references/primitives/avatar.mdnew file mode 100644index 000000000..96b24a676--- /dev/null+++ b/.agents/skills/coss/references/primitives/avatar.md@@ -0,0 +1,78 @@+# coss Avatar++## When to use++- Identity visuals for users/teams in compact spaces.+- Image + fallback initials patterns in cards, lists, and menus.++## Install++```bash+npx shadcn@latest add @coss/avatar+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"+```++## Minimal pattern++```tsx+<Avatar>+ <AvatarImage src="/avatars/01.png" alt="User avatar" />+ <AvatarFallback>JD</AvatarFallback>+</Avatar>+```++## Patterns from coss particles++### Key patterns++Custom size via Tailwind class:++```tsx+<Avatar className="size-16">+ <AvatarImage src="/avatar.png" alt="User avatar" />+ <AvatarFallback>JD</AvatarFallback>+</Avatar>+```++Stacked avatar group:++```tsx+<div className="flex -space-x-3">+ <Avatar className="ring-2 ring-background">+ <AvatarImage src="/user-1.png" alt="User 1" />+ <AvatarFallback>U1</AvatarFallback>+ </Avatar>+ <Avatar className="ring-2 ring-background">+ <AvatarImage src="/user-2.png" alt="User 2" />+ <AvatarFallback>U2</AvatarFallback>+ </Avatar>+</div>+```++### More examples++See `p-avatar-1` through `p-avatar-5` for sizes, radii, fallback-only, and group patterns.++## Common pitfalls++- Omitting `AvatarFallback`, causing broken image states with no identity fallback.+- Using non-descriptive `alt` text on `AvatarImage` in accessible contexts.+- Relying on oversized custom wrappers instead of built-in size variants/classes.++## Useful particle references++- fallback only: `p-avatar-2`+- different sizes: `p-avatar-3`+- different radius: `p-avatar-4`+- group avatars: `p-avatar-5`diff --git a/.agents/skills/coss/references/primitives/badge.md b/.agents/skills/coss/references/primitives/badge.mdnew file mode 100644index 000000000..cb47a1c38--- /dev/null+++ b/.agents/skills/coss/references/primitives/badge.md@@ -0,0 +1,79 @@+# coss Badge++## When to use++- Short status/category labels and counts.+- Inline metadata chips paired with buttons, tables, and cards.++## Install++```bash+npx shadcn@latest add @coss/badge+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Badge } from "@/components/ui/badge"+```++## Minimal pattern++```tsx+<Badge>Badge</Badge>+```++## Patterns from coss particles++### Key patterns++Variants via the `variant` prop:++```tsx+<Badge>Default</Badge>+<Badge variant="outline">Outline</Badge>+<Badge variant="secondary">Secondary</Badge>+<Badge variant="destructive">Destructive</Badge>+<Badge variant="info">Info</Badge>+<Badge variant="success">Success</Badge>+<Badge variant="warning">Warning</Badge>+<Badge variant="error">Error</Badge>+```++Badge with decorative icon:++```tsx+<Badge variant="outline">+ <CheckIcon aria-hidden="true" />+ Verified+</Badge>+```++Badge inside a button (use negative margin for alignment):++```tsx+<Button variant="outline">+ Messages+ <Badge className="-me-1" variant="outline">18</Badge>+</Button>+```++### More examples++See `p-badge-1` through `p-badge-9` for all variant/size combinations.++## Common pitfalls++- Using badge as interactive button without proper button semantics.+- Applying raw palette classes instead of semantic tokens/variants for status.+- Overloading badge content with long text that should be normal body copy.++## Useful particle references++See `p-badge-1` through `p-badge-9` for all variants (outline, secondary, destructive, info, success, warning, error, small).diff --git a/.agents/skills/coss/references/primitives/breadcrumb.md b/.agents/skills/coss/references/primitives/breadcrumb.mdnew file mode 100644index 000000000..5e9225c1b--- /dev/null+++ b/.agents/skills/coss/references/primitives/breadcrumb.md@@ -0,0 +1,91 @@+# coss Breadcrumb++## When to use++- Hierarchy/location indicators for current page context.+- Compact navigation trails for nested routes and detail pages.++## Install++```bash+npx shadcn@latest add @coss/breadcrumb+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import {+ Breadcrumb,+ BreadcrumbEllipsis,+ BreadcrumbItem,+ BreadcrumbLink,+ BreadcrumbList,+ BreadcrumbPage,+ BreadcrumbSeparator,+} from "@/components/ui/breadcrumb"+```++## Minimal pattern++```tsx+<Breadcrumb>+ <BreadcrumbList>+ <BreadcrumbItem>+ <BreadcrumbLink href="/">Home</BreadcrumbLink>+ </BreadcrumbItem>+ <BreadcrumbSeparator />+ <BreadcrumbItem>+ <BreadcrumbEllipsis />+ </BreadcrumbItem>+ <BreadcrumbItem>+ <BreadcrumbLink href="/components">Components</BreadcrumbLink>+ </BreadcrumbItem>+ <BreadcrumbSeparator />+ <BreadcrumbItem>+ <BreadcrumbPage>Breadcrumb</BreadcrumbPage>+ </BreadcrumbItem>+ </BreadcrumbList>+</Breadcrumb>+```++## Patterns from coss particles++### Key patterns++Icon-only home link (requires `aria-label`):++```tsx+<BreadcrumbItem>+ <BreadcrumbLink aria-label="Home" href="/">+ <HomeIcon aria-hidden="true" className="size-4" />+ </BreadcrumbLink>+</BreadcrumbItem>+```++Custom separator:++```tsx+<BreadcrumbSeparator>+ <SlashIcon className="size-3.5" />+</BreadcrumbSeparator>+```++### More examples++See `p-breadcrumb-1` and `p-breadcrumb-2` for default and custom separator patterns.++## Common pitfalls++- Using breadcrumb as primary nav menu instead of contextual trail.+- Omitting `aria-label` on icon-only breadcrumb items.+- Adding deep breadcrumb chains without meaningful hierarchy.++## Useful particle references++- with custom separator: `p-breadcrumb-2`diff --git a/.agents/skills/coss/references/primitives/button.md b/.agents/skills/coss/references/primitives/button.mdnew file mode 100644index 000000000..825fd1e10--- /dev/null+++ b/.agents/skills/coss/references/primitives/button.md@@ -0,0 +1,109 @@+# coss Button++## When to use++- Primary and secondary action triggers.+- Icon, loading, and shortcut-enhanced actions across forms and toolbars.++## Install++```bash+npx shadcn@latest add @coss/button+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Button } from "@/components/ui/button"+```++## Minimal pattern++```tsx+<Button type="button">Button</Button>+```++`Button` defaults to `type="button"` when rendered as the native button part. In form flows, set `type` explicitly (`button` / `submit` / `reset`) to match intent, especially when using `render` composition.++## Patterns from coss particles++### Key patterns++Variants are set via the `variant` prop:++```tsx+<Button>Default</Button>+<Button variant="outline">Outline</Button>+<Button variant="secondary">Secondary</Button>+<Button variant="destructive">Destructive</Button>+<Button variant="ghost">Ghost</Button>+<Button variant="link">Link</Button>+```++Icon-only button (always needs `aria-label`):++```tsx+<Button aria-label="Close" size="icon" variant="ghost">+ <XIcon aria-hidden="true" />+</Button>+```++Button with icon and text (no opacity on the icon):++```tsx+<Button>+ <PlusIcon aria-hidden="true" />+ Add Item+</Button>+```++Sizes: `xs`, `sm`, `default`, `lg`, `icon-xs`, `icon-sm`, `icon`, `icon-lg`.++### Loading state++Built-in `loading` prop (disables and shows spinner automatically):++```tsx+<Button loading={isLoading} onClick={handleClick}>Submit</Button>+```++Composite approach (manual `Spinner` + `disabled`):++```tsx+<Button disabled>+ <Spinner />+ Loading...+</Button>+```++Prefer the `loading` prop for typical async actions. Use the composite approach when you need custom spinner placement or label.++### More examples++- default: `p-button-1`+- outline: `p-button-2`+- secondary: `p-button-3`+- destructive: `p-button-4`+- destructive outline: `p-button-5`+- ghost: `p-button-6`+- link: `p-button-7`+- extra-small size: `p-button-8`++## Common pitfalls++- Omitting explicit `type` inside forms/dialogs and triggering unintended submit behavior.+- Using icon-only buttons without `aria-label` on the button.+- Rebuilding button state styling with ad-hoc classes instead of variants/sizes.+- Using `SelectButton` as if it were a general-purpose `Button`; `SelectButton` is a select-flavored trigger helper and should be treated as a `select`/`combobox` pattern.++## Useful particle references++- variants/sizes: `p-button-1` through `p-button-8`+- composite loading (Spinner + disabled): `p-button-18`+- built-in loading prop: `p-button-41`diff --git a/.agents/skills/coss/references/primitives/calendar.md b/.agents/skills/coss/references/primitives/calendar.mdnew file mode 100644index 000000000..8b86f08a2--- /dev/null+++ b/.agents/skills/coss/references/primitives/calendar.md@@ -0,0 +1,68 @@+# coss Calendar++## When to use++- Date selection interfaces and calendar-based scheduling UIs.+- Single-date, range, and constrained date picking patterns.++## Install++```bash+npx shadcn@latest add @coss/calendar+```++Manual deps from docs:++```bash+npm install react-day-picker+```++## Canonical imports++```tsx+import { Calendar } from "@/components/ui/calendar"+```++## Minimal pattern++```tsx+<Calendar mode="single" />+```++## Patterns from coss particles++### Key patterns++Single date selection with state:++```tsx+const [date, setDate] = useState<Date | undefined>()++<Calendar mode="single" selected={date} onSelect={setDate} />+```++Date range selection:++```tsx+const [range, setRange] = useState<DateRange | undefined>()++<Calendar mode="range" selected={range} onSelect={setRange} />+```++### More examples++See `p-calendar-1` through `p-calendar-6` for single, range, dropdown navigation, and month/year select patterns.++## Common pitfalls++- Using calendar for free-text date input flows better handled by date fields.+- Missing locale/disabled-date constraints for business rules.+- Treating calendar as date-time picker without explicit time UI.++## Useful particle references++- single date selection: `p-calendar-2`+- date range selection: `p-calendar-3`+- dropdown navigation: `p-calendar-4`+- select dropdown for month/year: `p-calendar-5`+- combobox dropdown for month/year: `p-calendar-6`diff --git a/.agents/skills/coss/references/primitives/card.md b/.agents/skills/coss/references/primitives/card.mdnew file mode 100644index 000000000..40d79b614--- /dev/null+++ b/.agents/skills/coss/references/primitives/card.md@@ -0,0 +1,85 @@+# coss Card++## When to use++- Structured surface sections for grouped content.+- Settings, dashboard, and preview layouts with header/panel/footer semantics.++## Install++```bash+npx shadcn@latest add @coss/card+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import {+ Card,+ CardDescription,+ CardFooter,+ CardHeader,+ CardPanel,+ CardTitle,+} from "@/components/ui/card"+```++## Minimal pattern++```tsx+<Card>+ <CardHeader>+ <CardTitle>Title</CardTitle>+ <CardDescription>Description</CardDescription>+ </CardHeader>+ <CardPanel>Content</CardPanel>+ <CardFooter>Footer</CardFooter>+</Card>+```++## Patterns from coss particles++### Key patterns++Card with form content:++```tsx+<Card className="w-full max-w-sm">+ <CardHeader>+ <CardTitle>Create project</CardTitle>+ <CardDescription>Deploy your new project in one click.</CardDescription>+ </CardHeader>+ <CardPanel className="flex flex-col gap-4">+ <Field>+ <FieldLabel>Name</FieldLabel>+ <Input type="text" placeholder="My project" />+ </Field>+ </CardPanel>+ <CardFooter className="flex justify-end gap-2">+ <Button variant="ghost">Cancel</Button>+ <Button>Create</Button>+ </CardFooter>+</Card>+```++Keep `CardHeader`, `CardPanel`, and `CardFooter` as direct children of `Card` to preserve built-in spacing and layout.++### More examples++See `p-card-1` through `p-card-8` for various card compositions.++## Common pitfalls++- Skipping `CardHeader`/`CardPanel`/`CardFooter` structure in composed cards.+- Mixing unrelated layout wrappers that break spacing between card sections.+- Using cards as generic wrappers when `Frame` or plain layout would be clearer.++## Useful particle references++- core patterns: `p-card-1`, `p-card-2`, `p-card-3`, `p-card-4`, `p-card-5`, `p-card-6`, `p-card-7`, `p-card-8`diff --git a/.agents/skills/coss/references/primitives/checkbox-group.md b/.agents/skills/coss/references/primitives/checkbox-group.mdnew file mode 100644index 000000000..873201b31--- /dev/null+++ b/.agents/skills/coss/references/primitives/checkbox-group.md@@ -0,0 +1,95 @@+# coss Checkbox Group++## When to use++- Multi-select option groups with shared label context.+- Collecting multiple values under one field name.++## Install++```bash+npx shadcn@latest add @coss/checkbox-group+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Checkbox } from "@/components/ui/checkbox"+import { CheckboxGroup } from "@/components/ui/checkbox-group"+```++## Minimal pattern++```tsx+<CheckboxGroup>+ <Label>+ <Checkbox defaultChecked />+ Next.js+ </Label>+ <Label>+ <Checkbox />+ Vite+ </Label>+ <Label>+ <Checkbox />+ Astro+ </Label>+</CheckboxGroup>+```++For form-bound option groups, prefer `Field` + `Fieldset` composition so legend, labels, and errors are grouped correctly.++## Patterns from coss particles++### Key patterns++Group with `aria-label` and `defaultValue`:++```tsx+<CheckboxGroup aria-label="Select frameworks" defaultValue={["next"]}>+ <Label>+ <Checkbox value="next" />+ Next.js+ </Label>+ <Label>+ <Checkbox value="vite" />+ Vite+ </Label>+</CheckboxGroup>+```++Controlled group:++```tsx+const [value, setValue] = useState(["next"])++<CheckboxGroup value={value} onValueChange={setValue}>+ ...+</CheckboxGroup>+```++For form-bound groups, use `Field` + `Fieldset` so legend, labels, and errors are grouped correctly.++### More examples++See `p-checkbox-group-1` through `p-checkbox-group-5` for disabled items, parent checkbox, nested, and form patterns.++## Common pitfalls++- Using checkbox group when only one option should be selected.+- Missing group label/legend context for assistive technology.+- Incorrectly handling submitted values as scalar instead of array/list.++## Useful particle references++- with disabled item: `p-checkbox-group-2`+- parent checkbox: `p-checkbox-group-3`+- nested parent checkbox: `p-checkbox-group-4`+- form integration: `p-checkbox-group-5`+- form composition references: `p-form-1`, `p-form-2`, `p-input-group-24`diff --git a/.agents/skills/coss/references/primitives/checkbox.md b/.agents/skills/coss/references/primitives/checkbox.mdnew file mode 100644index 000000000..a00c77879--- /dev/null+++ b/.agents/skills/coss/references/primitives/checkbox.md@@ -0,0 +1,95 @@+# coss Checkbox++## When to use++- Single boolean consent/selection controls.+- Standalone yes/no options with explicit labeling.++## When NOT to use++- If the control is a preference toggle (on/off) in settings -> use Switch instead.+- If selecting from mutually exclusive options -> use RadioGroup instead.+- If multiple checkboxes share grouped state -> use CheckboxGroup instead.++## Install++```bash+npx shadcn@latest add @coss/checkbox+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Checkbox } from "@/components/ui/checkbox"+```++## Minimal pattern++```tsx+<Label>+ <Checkbox value="terms" />+ Accept terms and conditions+</Label>+```++## Patterns from coss particles++### Key patterns++CheckboxGroup with label-wrapped options:++```tsx+<CheckboxGroup aria-label="Select frameworks" defaultValue={["next"]}>+ <Label>+ <Checkbox value="next" />+ Next.js+ </Label>+ <Label>+ <Checkbox value="vite" />+ Vite+ </Label>+ <Label>+ <Checkbox value="astro" />+ Astro+ </Label>+</CheckboxGroup>+```++Checkbox with description text (use `id`/`htmlFor`):++```tsx+const id = useId()++<div className="flex items-start gap-2">+ <Checkbox id={id} />+ <div className="flex flex-col gap-1">+ <Label htmlFor={id}>Accept terms and conditions</Label>+ <p className="text-muted-foreground text-xs">+ By clicking this checkbox, you agree to the terms.+ </p>+ </div>+</div>+```++### More examples++- disabled: `p-checkbox-2`+- with description: `p-checkbox-3`+- card style: `p-checkbox-4`+- form integration: `p-checkbox-5`++## Common pitfalls++- Using checkbox for exclusive single-choice options that should be radios.+- Missing visible label association (`Label` or `FieldLabel`) for each checkbox.+- Treating `onCheckedChange` values as plain boolean without handling indeterminate where relevant.++## Useful particle references++See `p-checkbox-1` through `p-checkbox-5` for label wrapping, disabled, description, card, and form patterns.diff --git a/.agents/skills/coss/references/primitives/collapsible.md b/.agents/skills/coss/references/primitives/collapsible.mdnew file mode 100644index 000000000..bc3cfb0cf--- /dev/null+++ b/.agents/skills/coss/references/primitives/collapsible.md@@ -0,0 +1,70 @@+# coss Collapsible++## When to use++- Progressive disclosure of optional content.+- Expandable help/settings sections without leaving the page.++## Install++```bash+npx shadcn@latest add @coss/collapsible+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Collapsible,+ CollapsiblePanel,+ CollapsibleTrigger,+} from "@/components/ui/collapsible"+```++## Minimal pattern++```tsx+<Collapsible>+ <CollapsibleTrigger>Can I access the file in the cloud?</CollapsibleTrigger>+ <CollapsiblePanel>+ Yes, you can access the file in the cloud.+ </CollapsiblePanel>+</Collapsible>+```++## Patterns from coss particles++### Key patterns++Controlled collapsible:++```tsx+const [open, setOpen] = useState(false)++<Collapsible open={open} onOpenChange={setOpen}>+ <CollapsibleTrigger>+ {open ? "Hide details" : "Show details"}+ </CollapsibleTrigger>+ <CollapsiblePanel>Hidden content here.</CollapsiblePanel>+</Collapsible>+```++### More examples++See `p-collapsible-1` for the core pattern.++## Common pitfalls++- Placing trigger/panel outside the same collapsible root.+- Assuming panel content is always visible/mounted for dependent logic.+- Using modal-like interactions where collapsible disclosure is more appropriate.++## Useful particle references++- core patterns: `p-collapsible-1`diff --git a/.agents/skills/coss/references/primitives/combobox.md b/.agents/skills/coss/references/primitives/combobox.mdnew file mode 100644index 000000000..aa599599e--- /dev/null+++ b/.agents/skills/coss/references/primitives/combobox.md@@ -0,0 +1,112 @@+# coss Combobox++## When to use++- Searchable selection combining text input and list selection.+- Rich option rows with filtering and custom trigger behavior.++## When NOT to use++- If options are few and fixed (no search needed) -> use Select instead.+- If you need free-form text suggestions without strict selection -> use Autocomplete instead.+- If the user picks from a simple short list -> use RadioGroup or Select.++## Install++```bash+npx shadcn@latest add @coss/combobox+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Combobox,+ ComboboxClear,+ ComboboxCollection,+ ComboboxEmpty,+ ComboboxGroup,+ ComboboxGroupLabel,+ ComboboxInput,+ ComboboxItem,+ ComboboxList,+ ComboboxPopup,+ ComboboxSeparator,+ ComboboxValue,+ useComboboxFilter,+} from "@/components/ui/combobox"+```++## Minimal pattern++```tsx+const items = [+ { value: "apple", label: "Apple" },+ { value: "banana", label: "Banana" },+ { value: "orange", label: "Orange" },+ { value: "grape", label: "Grape" },+]++<Combobox items={items}>+ <ComboboxInput placeholder="Select an item..." />+ <ComboboxPopup>+ <ComboboxEmpty>No results found.</ComboboxEmpty>+ <ComboboxList>+ {(item) => <ComboboxItem key={item.value} value={item}>{item.label}</ComboboxItem>}+ </ComboboxList>+ </ComboboxPopup>+</Combobox>+```++For form-bound comboboxes, prefer `Field` composition (`Field` + `FieldLabel` + `FieldError`) instead of standalone controls.++## Patterns from coss particles++### Key patterns++Combobox with label in a Field:++```tsx+<Field>+ <FieldLabel>Framework</FieldLabel>+ <Combobox items={items}>+ <ComboboxInput placeholder="Search..." />+ <ComboboxPopup>+ <ComboboxEmpty>No results found.</ComboboxEmpty>+ <ComboboxList>+ {(item) => <ComboboxItem key={item.value} value={item}>{item.label}</ComboboxItem>}+ </ComboboxList>+ </ComboboxPopup>+ </Combobox>+</Field>+```++Sizes: `sm`, `default`, `lg` on `ComboboxInput`.++### More examples++See `p-combobox-1` through `p-combobox-9` for sizes, label, auto-highlight, clear button, groups, and multiple selection.++## Common pitfalls++- Mixing select and combobox APIs without validating item/value wiring.+- Using object values without stable string serialization where needed.+- Missing empty/loading states for remote or filtered datasets.++## Useful particle references++- disabled: `p-combobox-2`+- small size: `p-combobox-3`+- large size: `p-combobox-4`+- with label: `p-combobox-5`+- auto highlight: `p-combobox-6`+- with clear button: `p-combobox-7`+- with groups: `p-combobox-8`+- with multiple selection: `p-combobox-9`+- related search/selection references: `p-autocomplete-1`, `p-select-1`, `p-input-group-1`diff --git a/.agents/skills/coss/references/primitives/command.md b/.agents/skills/coss/references/primitives/command.mdnew file mode 100644index 000000000..91accbd1c--- /dev/null+++ b/.agents/skills/coss/references/primitives/command.md@@ -0,0 +1,119 @@+# coss Command++## When to use++- Command palette and keyboard-navigable action menus.+- Fast action discovery for power-user and app shortcut workflows.++## When NOT to use++- If the list is a simple set of actions without search -> use Menu instead.+- If the user is selecting from a predefined list -> use Select or Combobox instead.+- If the flow is a data form -> use Form instead.++## Install++```bash+npx shadcn@latest add @coss/command+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Command,+ CommandCollection,+ CommandDialog,+ CommandDialogPopup,+ CommandDialogTrigger,+ CommandEmpty,+ CommandFooter,+ CommandGroup,+ CommandGroupLabel,+ CommandInput,+ CommandItem,+ CommandList,+ CommandPanel,+ CommandSeparator,+ CommandShortcut,+} from "@/components/ui/command"+import { Button } from "@/components/ui/button"+```++## Minimal pattern++```tsx+const items = [+ { value: "linear", label: "Linear" },+ { value: "figma", label: "Figma" },+ { value: "slack", label: "Slack" },+]++<CommandDialog>+ <CommandDialogTrigger render={<Button variant="outline" />}>+ Open Command Palette+ </CommandDialogTrigger>++ <CommandDialogPopup>+ <Command items={items}>+ <CommandInput placeholder="Search..." />+ <CommandEmpty>No results found.</CommandEmpty>+ <CommandList>+ {(item) => (+ <CommandItem key={item.value} value={item.value}>+ {item.label}+ </CommandItem>+ )}+ </CommandList>+ </Command>+ </CommandDialogPopup>+</CommandDialog>+```++## Patterns from coss particles++### Key patterns++Command with grouped sections:++```tsx+<Command items={items}>+ <CommandInput placeholder="Type a command..." />+ <CommandEmpty>No results found.</CommandEmpty>+ <CommandList>+ <CommandGroup>+ <CommandGroupLabel>Suggestions</CommandGroupLabel>+ <CommandCollection>+ {(item) => (+ <CommandItem key={item.value} value={item.value}>+ {item.label}+ </CommandItem>+ )}+ </CommandCollection>+ </CommandGroup>+ </CommandList>+</Command>+```++Use `CommandDialog` + `CommandDialogTrigger` + `CommandDialogPopup` to wrap `Command` in a dialog overlay. Use controlled `open`/`onOpenChange` state for keyboard-shortcut activation.++### More examples++See `p-command-1` and `p-command-2` for dialog palette and grouped action patterns.++## Common pitfalls++- Using command list without clear grouping and action labels.+- Binding critical destructive actions without confirmation pathway.+- Missing keyboard accessibility checks for arrow/select/escape interactions.++## Useful particle references++- core patterns: `p-command-1`, `p-command-2`+- related search/selection references: `p-autocomplete-1`, `p-select-1`, `p-input-group-1`diff --git a/.agents/skills/coss/references/primitives/dialog.md b/.agents/skills/coss/references/primitives/dialog.mdnew file mode 100644index 000000000..ed1862f74--- /dev/null+++ b/.agents/skills/coss/references/primitives/dialog.md@@ -0,0 +1,92 @@+# coss Dialog++## When to use++- Modal overlays that require user focus and explicit action.+- Multi-section popup flows with header/body/footer structure.++## When NOT to use++- If the overlay should slide from the edge -> use Sheet or Drawer instead.+- If the interaction is a destructive confirmation -> use AlertDialog instead.+- If the content is non-blocking contextual info -> use Popover instead.++## Install++```bash+npx shadcn@latest add @coss/dialog+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Dialog,+ DialogClose,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogPanel,+ DialogPopup,+ DialogTitle,+ DialogTrigger,+} from "@/components/ui/dialog"+```++## Minimal pattern++```tsx+<Dialog>+ <DialogTrigger render={<Button variant="outline" />}>Open Dialog</DialogTrigger>+ <DialogPopup>+ <DialogHeader>+ <DialogTitle>Dialog Title</DialogTitle>+ <DialogDescription>Dialog Description</DialogDescription>+ </DialogHeader>+ <DialogPanel>Content</DialogPanel>+ <DialogFooter>+ <DialogClose render={<Button variant="ghost" />}>Close</DialogClose>+ </DialogFooter>+ </DialogPopup>+</Dialog>+```++## Patterns from coss particles++- **Section structure invariant**: keep `DialogHeader`, `DialogPanel`, and `DialogFooter` as direct sections in `DialogPopup` to preserve built-in layout/styling behavior.+- **Form in dialog**: wrap with `<Form className="contents">` so header/panel/footer remain direct dialog sections while still supporting submit behavior.+- **Action buttons**: use `DialogClose` with `render={<Button ... />}` for cancel/close actions and set explicit `type` on submit/action buttons.+- **Scrollable content**: keep long content inside `DialogPanel` to preserve dialog scroll behavior.+- **Footer variants**: use `DialogFooter variant="bare"` when border/background framing should be removed.+- **Controlled open state**: for cross-component flows (for example menu item opens dialog), control with `open` + `onOpenChange`.+- **Detached trigger option (advanced)**: when the opener cannot live in the same subtree, use a detached/external trigger pattern via controlled state (`open` + `onOpenChange`) instead of forcing local `DialogTrigger` composition.+- **Close confirmation flow**: when unsaved changes exist, combine controlled `Dialog` with `AlertDialog` confirmation before closing.+- **Nested dialogs**: supported; use clear trigger hierarchy and consider disabling default close buttons with `showCloseButton={false}` when custom actions are preferred.+- **Responsive dialog/drawer variant**: for form-heavy overlays, use `Dialog` on desktop and switch to `Drawer` on mobile (`useMediaQuery("max-md")`), keeping the same `Form className="contents"` section structure in both.++## Common pitfalls++- Omitting `render={<Button ... />}` composition on trigger/close actions.+- Forgetting title/description structure in real dialogs.+- Wrapping dialog sections with extra containers that break `DialogHeader`/`DialogPanel`/`DialogFooter` layout; use `className="contents"` when a wrapper is required.+- Putting large body content outside `DialogPanel` when scrolling is needed.+- Missing explicit button `type` inside dialog forms/actions.+- Using uncontrolled dialog patterns when the flow requires cross-component state coordination.+- Using non-coss composition APIs without verifying docs.++## Useful particle references++- basic dialog scaffold: `p-dialog-1`+- open dialog from another primitive flow: `p-dialog-2` (menu -> dialog)+- nested dialogs: `p-dialog-3`+- close confirmation / unsaved changes flow: `p-dialog-4`+- long scrollable content in panel: `p-dialog-5`+- bare footer variant usage: `p-dialog-6`+- responsive dialog/drawer variant: `p-drawer-12`+diff --git a/.agents/skills/coss/references/primitives/drawer.md b/.agents/skills/coss/references/primitives/drawer.mdnew file mode 100644index 000000000..8a238736e--- /dev/null+++ b/.agents/skills/coss/references/primitives/drawer.md@@ -0,0 +1,119 @@+# coss Drawer++## When to use++- Mobile-first overlay panels and bottom sheets.+- Form-heavy or multi-step overlays where popover is too constrained.++## When NOT to use++- If the overlay should be a centered modal -> use Dialog instead.+- If the overlay should be a persistent side panel on desktop -> use Sheet instead.+- If you need a simple confirmation -> use AlertDialog instead.++## Install++```bash+npx shadcn@latest add @coss/drawer+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Drawer,+ DrawerCreateHandle,+ DrawerClose,+ DrawerContent,+ DrawerDescription,+ DrawerFooter,+ DrawerHeader,+ DrawerMenu,+ DrawerMenuCheckboxItem,+ DrawerMenuGroup,+ DrawerMenuGroupLabel,+ DrawerMenuItem,+ DrawerMenuRadioGroup,+ DrawerMenuRadioItem,+ DrawerMenuSeparator,+ DrawerPanel,+ DrawerPopup,+ DrawerMenuTrigger,+ DrawerTitle,+ DrawerTrigger,+} from "@/components/ui/drawer"+```++## Minimal pattern++```tsx+<Drawer>+ <DrawerTrigger>Open</DrawerTrigger>+ <DrawerPopup>+ <DrawerHeader>+ <DrawerTitle>Drawer Title</DrawerTitle>+ <DrawerDescription>Drawer Description</DrawerDescription>+ </DrawerHeader>+ <DrawerPanel>Content</DrawerPanel>+ <DrawerFooter>+ <DrawerClose>Close</DrawerClose>+ </DrawerFooter>+ </DrawerPopup>+</Drawer>+```++## Patterns from coss particles++### Key patterns++Drawer with handle:++```tsx+<Drawer>+ <DrawerTrigger render={<Button variant="outline" />}>Open Drawer</DrawerTrigger>+ <DrawerPopup>+ <DrawerCreateHandle />+ <DrawerHeader>+ <DrawerTitle>Edit Profile</DrawerTitle>+ <DrawerDescription>Make changes to your profile here.</DrawerDescription>+ </DrawerHeader>+ <DrawerPanel>+ {/* Form content */}+ </DrawerPanel>+ <DrawerFooter>+ <Button>Save</Button>+ <DrawerClose render={<Button variant="ghost" />}>Cancel</DrawerClose>+ </DrawerFooter>+ </DrawerPopup>+</Drawer>+```++Responsive drawer + dialog (drawer on mobile, dialog on desktop): see `p-drawer-12`.++### More examples++See `p-drawer-1` through `p-drawer-13` for inset, straight, scrollable, nested, snap points, mobile menu, and responsive patterns.++## Common pitfalls++- Using drawer for desktop modal flows where dialog/sheet is clearer.+- Forgetting responsive switch logic when drawer is mobile-only variant.+- Breaking section layout by wrapping header/panel/footer without `contents` where required.++## Useful particle references++- inset variant: `p-drawer-4`+- straight variant: `p-drawer-5`+- scrollable content: `p-drawer-6`+- nested drawers: `p-drawer-7`+- snap points: `p-drawer-9`+- mobile menu: `p-drawer-11`+- responsive dialog: `p-drawer-12`+- responsive menu: `p-drawer-13`+- cross-overlay references: `p-dialog-1`, `p-popover-1`, `p-menu-2`diff --git a/.agents/skills/coss/references/primitives/empty.md b/.agents/skills/coss/references/primitives/empty.mdnew file mode 100644index 000000000..9401dc245--- /dev/null+++ b/.agents/skills/coss/references/primitives/empty.md@@ -0,0 +1,88 @@+# coss Empty++## When to use++- No-data/no-results states with guidance.+- Action-oriented recovery UIs when content lists are empty.++## Install++```bash+npx shadcn@latest add @coss/empty+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import {+ Empty,+ EmptyContent,+ EmptyDescription,+ EmptyHeader,+ EmptyMedia,+ EmptyTitle,+} from "@/components/ui/empty"+```++## Minimal pattern++```tsx+<Empty>+ <EmptyHeader>+ <EmptyMedia variant="icon">+ <Icon />+ </EmptyMedia>+ <EmptyTitle>No data</EmptyTitle>+ <EmptyDescription>No data found</EmptyDescription>+ </EmptyHeader>+ <EmptyContent>+ <Button>Add data</Button>+ </EmptyContent>+</Empty>+```++## Patterns from coss particles++### Key patterns++Empty state with icon and action:++```tsx+<Empty>+ <EmptyHeader>+ <EmptyMedia variant="icon">+ <FolderIcon aria-hidden="true" />+ </EmptyMedia>+ <EmptyTitle>No projects yet</EmptyTitle>+ <EmptyDescription>Get started by creating your first project.</EmptyDescription>+ </EmptyHeader>+ <EmptyContent>+ <Button>+ <PlusIcon aria-hidden="true" />+ New Project+ </Button>+ </EmptyContent>+</Empty>+```++Always include an actionable next step (button, link) in `EmptyContent`.++### More examples++See `p-empty-1` for the core pattern.++## Common pitfalls++- Presenting empty states without actionable next step.+- Using empty state component for loading/error states instead of dedicated primitives.+- Copy-only empty states with no context-specific guidance for recovery.++## Useful particle references++- core patterns: `p-empty-1`diff --git a/.agents/skills/coss/references/primitives/field.md b/.agents/skills/coss/references/primitives/field.mdnew file mode 100644index 000000000..9c18e7f9d--- /dev/null+++ b/.agents/skills/coss/references/primitives/field.md@@ -0,0 +1,101 @@+# coss Field++## When to use++- Accessible field wrappers with labels, descriptions, and errors.+- Form control state wiring (`invalid`, `required`, touched/error messaging).++## Install++```bash+npx shadcn@latest add @coss/field+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Field,+ FieldDescription,+ FieldError,+ FieldLabel,+ FieldValidity,+} from "@/components/ui/field"+import { Input } from "@/components/ui/input"+```++## Minimal pattern++```tsx+<Field>+ <FieldLabel>Name</FieldLabel>+ <Input type="text" placeholder="Enter your name" />+ <FieldDescription>Visible on your profile</FieldDescription>+ <FieldError>Please enter a valid name</FieldError>+ <FieldValidity>+ {(validity) => (+ {validity.error && <p>{validity.error}</p>}+ )}+ </FieldValidity>+</Field>+```++## Patterns from coss particles++### Key patterns++Required field with error:++```tsx+<Field name="email">+ <FieldLabel>Email *</FieldLabel>+ <Input type="email" required placeholder="[email protected]" />+ <FieldDescription>We'll never share your email.</FieldDescription>+ <FieldError>Please enter a valid email.</FieldError>+</Field>+```++Field wrapping an autocomplete:++```tsx+<Field name="framework">+ <FieldLabel>Framework</FieldLabel>+ <Autocomplete items={items}>+ <AutocompleteInput placeholder="Search..." />+ <AutocompletePopup>+ <AutocompleteList>+ {(item) => <AutocompleteItem key={item.value} value={item}>{item.label}</AutocompleteItem>}+ </AutocompleteList>+ </AutocompletePopup>+ </Autocomplete>+ <FieldError />+</Field>+```++### More examples++See `p-field-1` through `p-field-9` for required, disabled, error, validity, input-group, autocomplete, and combobox field patterns.++## Common pitfalls++- Rendering errors detached from the related control, breaking context.+- Missing `name` in form flows, causing silent submit omissions.+- Using field wrapper without corresponding label/description/error semantics.++## Useful particle references++- required field: `p-field-2`+- disabled field: `p-field-3`+- with error: `p-field-4`+- with validity: `p-field-5`+- input group: `p-field-6`+- autocomplete field: `p-field-7`+- combobox field: `p-field-8`+- combobox multiple field: `p-field-9`+- form composition references: `p-form-1`, `p-form-2`, `p-input-group-24`diff --git a/.agents/skills/coss/references/primitives/fieldset.md b/.agents/skills/coss/references/primitives/fieldset.mdnew file mode 100644index 000000000..45a42eaf6--- /dev/null+++ b/.agents/skills/coss/references/primitives/fieldset.md@@ -0,0 +1,69 @@+# coss Fieldset++## When to use++- Grouped related controls under one legend/description.+- Complex forms requiring semantic grouping for radios/checkboxes.++## Install++```bash+npx shadcn@latest add @coss/fieldset+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Fieldset, FieldsetLegend } from "@/components/ui/fieldset"+```++## Minimal pattern++```tsx+<Fieldset>+ <FieldsetLegend>Fieldset legend</FieldsetLegend>+</Fieldset>+```++## Patterns from coss particles++### Key patterns++Fieldset grouping related fields:++```tsx+<Fieldset>+ <FieldsetLegend>Personal Information</FieldsetLegend>+ <Field name="firstName">+ <FieldLabel>First name</FieldLabel>+ <Input type="text" />+ </Field>+ <Field name="lastName">+ <FieldLabel>Last name</FieldLabel>+ <Input type="text" />+ </Field>+</Fieldset>+```++Always include `FieldsetLegend` as the accessible group heading.++### More examples++See `p-fieldset-1` for the core pattern.++## Common pitfalls++- Using ad-hoc div wrappers instead of semantic fieldset for grouped controls.+- Omitting `FieldsetLegend`, reducing accessibility context.+- Placing unrelated controls inside one fieldset, hurting form clarity.++## Useful particle references++- core patterns: `p-fieldset-1`+- form composition references: `p-form-1`, `p-form-2`, `p-input-group-24`diff --git a/.agents/skills/coss/references/primitives/form.md b/.agents/skills/coss/references/primitives/form.mdnew file mode 100644index 000000000..7f6d8b71e--- /dev/null+++ b/.agents/skills/coss/references/primitives/form.md@@ -0,0 +1,78 @@+# coss Form++## When to use++- Structured form validation and submission flows.+- Forms with field-level labels, descriptions, and errors.+- Integrations with external form libraries (for example React Hook Form / TanStack Form).++## Install++```bash+npx shadcn@latest add @coss/form+```++Manual deps:++```bash+npm install @base-ui/react zod+```++## Canonical imports++```tsx+import {+ Field,+ FieldDescription,+ FieldError,+ FieldLabel,+} from "@/components/ui/field"+import { Form } from "@/components/ui/form"+import { Input } from "@/components/ui/input"+```++## Minimal pattern++```tsx+<Form onSubmit={(e) => {/* handle submit */}}>+ <Field>+ <FieldLabel>Email</FieldLabel>+ <Input name="email" type="email" required />+ <FieldDescription>Used for account updates</FieldDescription>+ <FieldError>Please enter a valid email.</FieldError>+ </Field>+</Form>+```++## Patterns from coss particles++- `Form` usage in particles is intentionally lightweight; use the Base UI forms handbook patterns below for deeper validation/library integrations.++## Patterns from coss/Base UI forms++- **Submission mode**: use `onSubmit` for native `FormData` handling; use `onFormSubmit` when you want parsed form values object from Base UI Form.+- **Field naming**: set `name` on each field/control flow so values are included in submission.+- **Accessible names**: prefer visible labels (`FieldLabel`, `SelectLabel`, etc.); use `aria-label` only when no visible label exists.+- **Grouped controls**: for radio/checkbox groups or multi-control sections, use fieldset-style grouping (`Fieldset` + `Field.Item`) instead of ad-hoc wrappers.+- **Validation rendering**: pair constraints/custom validation with `FieldError`; keep error output semantically tied to the same field.+- **Textarea integration**: use coss `Textarea` directly inside `Field`; it already integrates with Base UI field control semantics, so `FieldControl render={...}` is not required for standard textarea usage.+- **External library integration**: when using RHF/TanStack, forward refs/input refs to the underlying control and map invalid/touched/dirty state into `Field`.++## Common pitfalls++- Using `Form` without field-level structure (`Field`, label, error).+- Missing control `name` (field not present in form submission payload).+- Missing input `type` and button `type`.+- Showing validation messages without matching invalid semantics.+- Using grouped checkboxes/radios without proper group legend/structure.+- Not forwarding refs in RHF/TanStack integration, which breaks focus-on-error behavior.++## Useful particle references++- `p-form-1` (basic integration)+- `p-form-2` (zod usage)++## Further reading++- Base UI Forms handbook: `https://base-ui.com/react/handbook/forms.md`+diff --git a/.agents/skills/coss/references/primitives/frame.md b/.agents/skills/coss/references/primitives/frame.mdnew file mode 100644index 000000000..2e057093c--- /dev/null+++ b/.agents/skills/coss/references/primitives/frame.md@@ -0,0 +1,82 @@+# coss Frame++## When to use++- Bordered app surfaces around content blocks.+- Container wrapper for data components like table, cards, and panes.++## Install++```bash+npx shadcn@latest add @coss/frame+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import {+ Frame,+ FrameDescription,+ FrameFooter,+ FrameHeader,+ FramePanel,+ FrameTitle,+} from "@/components/ui/frame"+```++## Minimal pattern++```tsx+<Frame>+ <FrameHeader>+ <FrameTitle>Title</FrameTitle>+ <FrameDescription>Description</FrameDescription>+ </FrameHeader>+ <FramePanel>Content</FramePanel>+ <FrameFooter>Footer</FrameFooter>+</Frame>+```++## Patterns from coss particles++### Key patterns++Frame with header actions:++```tsx+<Frame>+ <FrameHeader className="flex items-center justify-between">+ <div>+ <FrameTitle>Users</FrameTitle>+ <FrameDescription>Manage team members.</FrameDescription>+ </div>+ <Button size="sm">Add User</Button>+ </FrameHeader>+ <FramePanel>{/* Table or list content */}</FramePanel>+ <FrameFooter>+ <p className="text-muted-foreground text-sm">Showing 1-10 of 100</p>+ </FrameFooter>+</Frame>+```++Use `Frame` to normalize border/radius around heterogeneous inner content (tables, lists, cards).++### More examples++See `p-frame-1` through `p-frame-3` for basic and separated panel patterns.++## Common pitfalls++- Using nested frames excessively, causing dense double borders.+- Applying frame as layout grid replacement instead of content surface wrapper.+- Forgetting to align inner component width expectations (table/list full width).++## Useful particle references++- separated panels: `p-frame-3`diff --git a/.agents/skills/coss/references/primitives/group.md b/.agents/skills/coss/references/primitives/group.mdnew file mode 100644index 000000000..323faf74e--- /dev/null+++ b/.agents/skills/coss/references/primitives/group.md@@ -0,0 +1,84 @@+# coss Group++## When to use++- Connected controls with shared visual boundary.+- Composed action clusters using buttons, toggles, and menu triggers.++## Install++```bash+npx shadcn@latest add @coss/group+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Button } from "@/components/ui/button"+import { Group, GroupSeparator } from "@/components/ui/group"+```++## Minimal pattern++```tsx+<Group>+ <Button>Button</Button>+ <GroupSeparator />+ <Button>Button</Button>+</Group>+```++## Patterns from coss particles++### Key patterns++Button group with separator:++```tsx+<Group>+ <Button variant="outline">Copy</Button>+ <GroupSeparator />+ <Button variant="outline">Paste</Button>+ <GroupSeparator />+ <Button variant="outline">Cut</Button>+</Group>+```++Group with input and button:++```tsx+<Group>+ <Input type="text" placeholder="Enter URL..." />+ <GroupSeparator />+ <Button>Go</Button>+</Group>+```++Sizes: `sm`, `default`, `lg`. Orientation: vertical via `orientation="vertical"`.++### More examples++See `p-group-1` through `p-group-9` for input, sizes, disabled, vertical, and labeled text patterns.++## Common pitfalls++- Forgetting `GroupSeparator` between controls in connected groups.+- Mixing control sizes/variants that break shared group silhouette.+- Using standalone controls where a grouped action model is expected.++## Useful particle references++- with input: `p-group-2`+- small size: `p-group-3`+- large size: `p-group-4`+- with disabled button: `p-group-5`+- with default buttons: `p-group-6`+- with start labeled text: `p-group-7`+- with end text: `p-group-8`+- vertical: `p-group-9`diff --git a/.agents/skills/coss/references/primitives/input-group.md b/.agents/skills/coss/references/primitives/input-group.mdnew file mode 100644index 000000000..860b8cbdb--- /dev/null+++ b/.agents/skills/coss/references/primitives/input-group.md@@ -0,0 +1,104 @@+# coss Input Group++## When to use++- Inputs/textareas that need inline or block addons.+- Input composition with icons, buttons, labels, badges, and shortcuts.++## Install++```bash+npx shadcn@latest add @coss/input-group+```++Manual deps:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ InputGroup,+ InputGroupAddon,+ InputGroupInput,+ InputGroupText,+} from "@/components/ui/input-group"+```++## Minimal pattern++```tsx+<InputGroup>+ <InputGroupInput type="email" placeholder="Email" />+ <InputGroupAddon>+ <MailIcon />+ </InputGroupAddon>+</InputGroup>+```++## Critical invariant++`InputGroupAddon` must be after `InputGroupInput`/`InputGroupTextarea` in DOM order for proper focus behavior.++## Patterns from coss particles++### Key patterns++Search input with icon:++```tsx+<InputGroup>+ <InputGroupInput aria-label="Search" placeholder="Search..." type="search" />+ <InputGroupAddon>+ <SearchIcon aria-hidden="true" />+ </InputGroupAddon>+</InputGroup>+```++URL prefix with text addon:++```tsx+<InputGroup>+ <InputGroupAddon>+ <InputGroupText>https://</InputGroupText>+ </InputGroupAddon>+ <InputGroupInput placeholder="example.com" />+</InputGroup>+```++Input with interactive button addon:++```tsx+<InputGroup>+ <InputGroupInput placeholder="Enter value..." />+ <InputGroupAddon>+ <Button size="icon" variant="ghost" aria-label="Clear">+ <XIcon aria-hidden="true" />+ </Button>+ </InputGroupAddon>+</InputGroup>+```++`InputGroupAddon` must be after `InputGroupInput`/`InputGroupTextarea` in DOM order for proper focus behavior.++### More examples++See `p-input-group-1` through `p-input-group-29` for icons, text prefixes, interactive addons, textarea layouts, and stateful patterns.++## Common pitfalls++- Using `Input`/`Textarea` directly instead of `InputGroupInput`/`InputGroupTextarea`.+- Wrong addon DOM order.+- Missing explicit input types.++## Useful particle references++- icon addon + search baseline: `p-input-group-1`, `p-input-group-2`, `p-input-group-13`, `p-input-group-14`, `p-input-group-20`+- prefix/suffix text addons (url/domain/currency): `p-input-group-3`, `p-input-group-4`, `p-input-group-5`, `p-input-group-6`+- interactive addons (buttons/badge/kbd/menu/clear/voice): `p-input-group-7`, `p-input-group-8`, `p-input-group-9`, `p-input-group-10`, `p-input-group-11`, `p-input-group-12`, `p-input-group-18`, `p-input-group-21`, `p-input-group-22`, `p-input-group-23`+- textarea/editor-style layouts with block-end/start addons: `p-input-group-17`, `p-input-group-19`, `p-input-group-27`, `p-input-group-28`, `p-input-group-29`+- stateful/validation patterns (disabled/loading/password strength): `p-input-group-15`, `p-input-group-16`, `p-input-group-24`, `p-input-group-26`+diff --git a/.agents/skills/coss/references/primitives/input-otp.md b/.agents/skills/coss/references/primitives/input-otp.mdnew file mode 100644index 000000000..6addd2cd9--- /dev/null+++ b/.agents/skills/coss/references/primitives/input-otp.md@@ -0,0 +1,97 @@+# coss Input Otp++## When to use++- One-time passcode entry with segmented slots.+- Verification code flows with strict length formatting.++## Install++```bash+npx shadcn@latest add @coss/input-otp+```++Manual deps from docs:++```bash+npm install @base-ui/react input-otp lucide-react+```++## Canonical imports++```tsx+import {+ InputOTP,+ InputOTPGroup,+ InputOTPSeparator,+ InputOTPSlot,+} from "@/components/ui/input-otp"+```++## Minimal pattern++```tsx+<InputOTP aria-label="Verification code" maxLength={6}>+ <InputOTPGroup>+ <InputOTPSlot index={0} />+ <InputOTPSlot index={1} />+ <InputOTPSlot index={2} />+ </InputOTPGroup>+ <InputOTPSeparator />+ <InputOTPGroup>+ <InputOTPSlot index={3} />+ <InputOTPSlot index={4} />+ <InputOTPSlot index={5} />+ </InputOTPGroup>+</InputOTP>+```++## Patterns from coss particles++### Key patterns++OTP with label and controlled value:++```tsx+const [value, setValue] = useState("")++<div className="flex flex-col gap-2">+ <Label>Verification code</Label>+ <InputOTP maxLength={6} value={value} onChange={setValue}>+ <InputOTPGroup>+ <InputOTPSlot index={0} />+ <InputOTPSlot index={1} />+ <InputOTPSlot index={2} />+ </InputOTPGroup>+ <InputOTPSeparator />+ <InputOTPGroup>+ <InputOTPSlot index={3} />+ <InputOTPSlot index={4} />+ <InputOTPSlot index={5} />+ </InputOTPGroup>+ </InputOTP>+</div>+```++Digits only: add `inputMode="numeric" pattern={REGEXP_ONLY_DIGITS}`.++Ensure slot count matches `maxLength`.++### More examples++See `p-input-otp-1` through `p-input-otp-7` for sizes, separators, label, digits-only, invalid, and auto-validation patterns.++## Common pitfalls++- Slot count mismatch with `maxLength`, causing broken OTP UX.+- Missing `aria-label` when no visible label is present.+- Using OTP slots for arbitrary text input instead of fixed verification codes.++## Useful particle references++- large: `p-input-otp-2`+- with separator: `p-input-otp-3`+- with label: `p-input-otp-4`+- digits only: `p-input-otp-5`+- invalid: `p-input-otp-6`+- auto validation: `p-input-otp-7`diff --git a/.agents/skills/coss/references/primitives/input.md b/.agents/skills/coss/references/primitives/input.mdnew file mode 100644index 000000000..02b079432--- /dev/null+++ b/.agents/skills/coss/references/primitives/input.md@@ -0,0 +1,80 @@+# coss Input++## When to use++- Single-line text entry with variants and addons.+- Email/password/search/file and other typed input flows.++## Install++```bash+npx shadcn@latest add @coss/input+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Input } from "@/components/ui/input"+```++## Minimal pattern++```tsx+<Input aria-label="Email" type="email" placeholder="[email protected]" />+```++Always set `type` explicitly on `Input` (`text`, `email`, `password`, `search`, `file`, etc.). Do not rely on browser defaults.+For form fields, prefer wrapping `Input` with `Field` + `FieldLabel` + `FieldError` instead of standalone usage.++## Patterns from coss particles++### Key patterns++Field-wrapped input (preferred for forms):++```tsx+<Field>+ <FieldLabel>Email</FieldLabel>+ <Input type="email" placeholder="[email protected]" />+ <FieldError>Please enter a valid email.</FieldError>+</Field>+```++Input with addon (InputGroup):++```tsx+<InputGroup>+ <InputGroupInput aria-label="Search" placeholder="Search" type="search" />+ <InputGroupAddon>+ <SearchIcon aria-hidden="true" />+ </InputGroupAddon>+</InputGroup>+```++Sizes: `sm`, `default`, `lg`. Always specify `type` explicitly.++### More examples++- small size: `p-input-2`+- large size: `p-input-3`+- disabled: `p-input-4`+- file: `p-input-5`+- with label: `p-input-6`+- with button: `p-input-7`+- form integration: `p-form-1`++## Common pitfalls++- Omitting explicit `type` and relying on browser defaults.+- Using icon-only affordances without label/aria context.+- Applying heavy class overrides before using built-in size/variant props.++## Useful particle references++See `p-input-1` through `p-input-7` for size/variant combinations, `p-form-1` for form integration.diff --git a/.agents/skills/coss/references/primitives/kbd.md b/.agents/skills/coss/references/primitives/kbd.mdnew file mode 100644index 000000000..48cf003a8--- /dev/null+++ b/.agents/skills/coss/references/primitives/kbd.md@@ -0,0 +1,78 @@+# coss Kbd++## When to use++- Keyboard shortcut keycaps near commands.+- Single or grouped key hint display in action UIs.++## Install++```bash+npx shadcn@latest add @coss/kbd+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import { Kbd, KbdGroup } from "@/components/ui/kbd"+```++## Minimal pattern++```tsx+<Kbd>K</Kbd>+```++## Patterns from coss particles++### Key patterns++Multi-key shortcut with `KbdGroup` (each key gets its own `Kbd`):++```tsx+<KbdGroup>+ <Kbd>⌘</Kbd>+ <Kbd>K</Kbd>+</KbdGroup>+```++Button with keyboard shortcut:++```tsx+<Button variant="outline">+ <KbdGroup className="-me-1">+ <Kbd>⌘</Kbd>+ <Kbd>P</Kbd>+ </KbdGroup>+</Button>+```++Single key shortcut in a button:++```tsx+<Button variant="outline">+ Save+ <Kbd className="-me-1">⌘S</Kbd>+</Button>+```++### More examples++- input group integration: `p-input-group-11`++## Common pitfalls++- Placing multi-key sequences in a single `Kbd` when `KbdGroup` is clearer.+- Using decorative keycaps without tying them to nearby actionable controls.+- Overusing kbd hints in simple UIs, adding noise instead of clarity.++## Useful particle references++- input group: `p-input-group-11`diff --git a/.agents/skills/coss/references/primitives/label.md b/.agents/skills/coss/references/primitives/label.mdnew file mode 100644index 000000000..9c75cc57c--- /dev/null+++ b/.agents/skills/coss/references/primitives/label.md@@ -0,0 +1,71 @@+# coss Label++## When to use++- Visible accessible labels for inputs and controls.+- Simple `htmlFor`/`id` associations in forms and settings UIs.++## Install++```bash+npx shadcn@latest add @coss/label+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import { Label } from "@/components/ui/label"+```++## Minimal pattern++```tsx+<Label htmlFor="email">Email</Label>+```++## Patterns from coss particles++### Key patterns++Label paired with input:++```tsx+const id = useId()++<div className="flex flex-col gap-2">+ <Label htmlFor={id}>Email</Label>+ <Input id={id} type="email" placeholder="[email protected]" />+</div>+```++Label wrapping a checkbox:++```tsx+<Label>+ <Checkbox />+ Accept terms and conditions+</Label>+```++Prefer `FieldLabel` within `Field` for validation-aware forms.++### More examples++See `p-field-1`, `p-input-1`, `p-checkbox-1` for label-in-form patterns.++## Common pitfalls++- Using `aria-label` when visible `Label` text exists and can be associated.+- Mismatching `htmlFor`/`id` between label and control.+- Using label component as generic typography instead of form labeling.++## Useful particle references++- with checkbox: `checkbox-demo`+- label-specific particles: no dedicated `p-label-*` family; use form references `p-field-1`, `p-input-1`, `p-checkbox-1`.diff --git a/.agents/skills/coss/references/primitives/menu.md b/.agents/skills/coss/references/primitives/menu.mdnew file mode 100644index 000000000..00b9281c4--- /dev/null+++ b/.agents/skills/coss/references/primitives/menu.md@@ -0,0 +1,96 @@+# coss Menu++## When to use++- Contextual action lists and dropdown commands.+- Mixed item types (regular, checkbox, radio, nested submenu).++## When NOT to use++- If the user needs to search/filter actions -> use Command instead.+- If the content is rich informational (not actions) -> use Popover instead.+- If the overlay is a full modal flow -> use Dialog instead.++## Install++```bash+npx shadcn@latest add @coss/menu+```++Manual deps and theme var from docs:++```bash+npm install @base-ui/react+```++Also include the destructive foreground CSS variable snippet from the coss menu docs when doing manual setup.++## Canonical imports++```tsx+import {+ Menu,+ MenuCheckboxItem,+ MenuGroup,+ MenuGroupLabel,+ MenuItem,+ MenuPopup,+ MenuRadioGroup,+ MenuRadioItem,+ MenuSeparator,+ MenuShortcut,+ MenuSub,+ MenuSubPopup,+ MenuSubTrigger,+ MenuTrigger,+} from "@/components/ui/menu"+```++## Minimal pattern++```tsx+<Menu>+ <MenuTrigger>Open</MenuTrigger>+ <MenuPopup>+ <MenuItem>Profile</MenuItem>+ <MenuSeparator />+ <MenuCheckboxItem>Shuffle</MenuCheckboxItem>+ </MenuPopup>+</Menu>+```++Use popup positioning props like `align` / `sideOffset` only when a layout needs explicit tuning.++## Patterns from coss particles++- Use `MenuTrigger render={<Button ... />}` as the default trigger composition.+- Use `openOnHover` on `MenuTrigger` only for explicit hover-driven UX.+- Use `MenuItem render={<Link ... />}` for navigational entries.+- Use `MenuItem closeOnClick` for action menus where selection should always dismiss the popup.+- Use `MenuCheckboxItem variant="switch"` for toggle-style preferences.+- Use `MenuRadioGroup` + `MenuRadioItem` with a `defaultValue` when enforcing single-choice selection.+- Use `MenuShortcut` to display keyboard hints in dense command menus.+- Use `variant="destructive"` on dangerous actions.+- For responsive action menus, keep desktop on `Menu` and switch mobile to `DrawerMenu` / `DrawerMenuTrigger` / `DrawerMenuItem` patterns.+- In `DrawerMenu` flows, wrap actionable rows with `DrawerClose render={<DrawerMenuItem />}` when selection should dismiss the drawer.++## Common pitfalls++- Forgetting `MenuGroup` around grouped structures.+- Missing submenu pair (`MenuSubTrigger` + `MenuSubPopup`) for nested actions.+- Mixing navigation and action items without clear close behavior (`closeOnClick`) and semantics.++## Useful particle references++- full-featured menu (groups, checkbox/radio, submenus, destructive): `p-menu-1`+- hover-activated trigger pattern: `p-menu-2`+- checkbox item pattern: `p-menu-3`+- radio group pattern: `p-menu-4`+- link/navigation items via `render`: `p-menu-5`+- grouped sections with labels + separators: `p-menu-6`+- nested submenu pattern: `p-menu-7`+- force close on click actions: `p-menu-8`+- switch-style checkbox items: `p-menu-9`+- cross-component example: `p-dialog-2` (menu opening dialog)+- responsive menu/drawer variant: `p-drawer-13`+diff --git a/.agents/skills/coss/references/primitives/meter.md b/.agents/skills/coss/references/primitives/meter.mdnew file mode 100644index 000000000..625de0308--- /dev/null+++ b/.agents/skills/coss/references/primitives/meter.md@@ -0,0 +1,75 @@+# coss Meter++## When to use++- Bounded scalar measurement display (not task progress).+- Quality/capacity indicators with min/max semantics.++## When NOT to use++- If displaying task completion or async progress -> use Progress instead.+- If the indicator is indeterminate -> use Spinner or Progress instead.++## Install++```bash+npx shadcn@latest add @coss/meter+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Meter, MeterLabel, MeterValue } from "@/components/ui/meter"+```++## Minimal pattern++```tsx+<Meter value={40}>+ <MeterLabel>Progress</MeterLabel>+ <MeterValue />+</Meter>+```++## Patterns from coss particles++### Key patterns++Meter with formatted value and range:++```tsx+<Meter value={75} min={0} max={100}>+ <div className="flex justify-between text-sm">+ <MeterLabel>Storage</MeterLabel>+ <MeterValue>{({ formattedValue }) => `${formattedValue} used`}</MeterValue>+ </div>+</Meter>+```++Minimal meter without label:++```tsx+<Meter value={40} aria-label="Progress" />+```++### More examples++See `p-meter-1` through `p-meter-4` for label, formatted value, and range patterns.++## Common pitfalls++- Using meter to represent completion tasks better suited for `Progress`.+- Missing min/max context when values are not obvious to the user.+- Treating meter as interactive control rather than read-only indicator.++## Useful particle references++- without label and value: `p-meter-2`+- with formatted value: `p-meter-3`+- with range: `p-meter-4`diff --git a/.agents/skills/coss/references/primitives/number-field.md b/.agents/skills/coss/references/primitives/number-field.mdnew file mode 100644index 000000000..d83adb9fb--- /dev/null+++ b/.agents/skills/coss/references/primitives/number-field.md@@ -0,0 +1,102 @@+# coss Number Field++## When to use++- Numeric entry with increment/decrement controls.+- Bounded stepper-style quantity/amount inputs.++## Install++```bash+npx shadcn@latest add @coss/number-field+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ NumberField,+ NumberFieldDecrement,+ NumberFieldGroup,+ NumberFieldIncrement,+ NumberFieldInput,+ NumberFieldScrubArea,+} from "@/components/ui/number-field"+```++## Minimal pattern++```tsx+<NumberField defaultValue={0}>+ <NumberFieldScrubArea label="Quantity" />+ <NumberFieldGroup>+ <NumberFieldDecrement />+ <NumberFieldInput />+ <NumberFieldIncrement />+ </NumberFieldGroup>+</NumberField>+```++For form-bound numeric inputs, prefer wrapping `NumberField` with `Field` + `FieldLabel` + `FieldError` instead of standalone usage.++## Patterns from coss particles++### Key patterns++Number field with external label and bounds:++```tsx+<Field name="quantity">+ <FieldLabel>Quantity</FieldLabel>+ <NumberField defaultValue={1} min={0} max={99}>+ <NumberFieldGroup>+ <NumberFieldDecrement />+ <NumberFieldInput />+ <NumberFieldIncrement />+ </NumberFieldGroup>+ </NumberField>+ <FieldError />+</Field>+```++Number field with scrub area (drag to adjust):++```tsx+<NumberField defaultValue={50}>+ <NumberFieldScrubArea label="Brightness" />+ <NumberFieldGroup>+ <NumberFieldDecrement />+ <NumberFieldInput />+ <NumberFieldIncrement />+ </NumberFieldGroup>+</NumberField>+```++Sizes: `sm`, `default`, `lg` on `NumberFieldGroup`.++### More examples++See `p-number-field-1` through `p-number-field-9` for sizes, disabled, scrub, range, formatted value, and step patterns.++## Common pitfalls++- Treating number field value as free-form text without numeric bounds/steps.+- Missing increment/decrement controls in stepper-style UIs where expected.+- Not validating min/max constraints and resulting clamped behavior.++## Useful particle references++- small size: `p-number-field-2`+- large size: `p-number-field-3`+- disabled: `p-number-field-4`+- with external label: `p-number-field-5`+- with scrub: `p-number-field-6`+- with range: `p-number-field-7`+- with formatted value: `p-number-field-8`+- with step: `p-number-field-9`diff --git a/.agents/skills/coss/references/primitives/pagination.md b/.agents/skills/coss/references/primitives/pagination.mdnew file mode 100644index 000000000..4a7df2a8f--- /dev/null+++ b/.agents/skills/coss/references/primitives/pagination.md@@ -0,0 +1,98 @@+# coss Pagination++## When to use++- Paged navigation over long result sets.+- Prev/next and index controls paired with data tables/lists.++## Install++```bash+npx shadcn@latest add @coss/pagination+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import {+ Pagination,+ PaginationContent,+ PaginationEllipsis,+ PaginationItem,+ PaginationLink,+ PaginationNext,+ PaginationPrevious,+} from "@/components/ui/pagination"+```++## Minimal pattern++```tsx+<Pagination>+ <PaginationContent>+ <PaginationItem>+ <PaginationPrevious href="#" />+ </PaginationItem>+ <PaginationItem>+ <PaginationLink href="#">1</PaginationLink>+ </PaginationItem>+ <PaginationItem>+ <PaginationEllipsis />+ </PaginationItem>+ <PaginationItem>+ <PaginationNext href="#" />+ </PaginationItem>+ </PaginationContent>+</Pagination>+```++## Patterns from coss particles++### Key patterns++Full pagination with active page:++```tsx+<Pagination>+ <PaginationContent>+ <PaginationItem>+ <PaginationPrevious href="#" />+ </PaginationItem>+ <PaginationItem>+ <PaginationLink href="#">1</PaginationLink>+ </PaginationItem>+ <PaginationItem>+ <PaginationLink href="#" isActive>2</PaginationLink>+ </PaginationItem>+ <PaginationItem>+ <PaginationLink href="#">3</PaginationLink>+ </PaginationItem>+ <PaginationItem>+ <PaginationEllipsis />+ </PaginationItem>+ <PaginationItem>+ <PaginationNext href="#" />+ </PaginationItem>+ </PaginationContent>+</Pagination>+```++### More examples++See `p-pagination-1` through `p-pagination-3` for various pagination layouts.++## Common pitfalls++- Using pagination controls without synchronizing data/page state.+- Mixing pagination with infinite-scroll UX in the same surface.+- Missing disabled-state handling on prev/next boundaries.++## Useful particle references++- core patterns: `p-pagination-1`, `p-pagination-2`, `p-pagination-3`diff --git a/.agents/skills/coss/references/primitives/popover.md b/.agents/skills/coss/references/primitives/popover.mdnew file mode 100644index 000000000..1a24082d2--- /dev/null+++ b/.agents/skills/coss/references/primitives/popover.md@@ -0,0 +1,74 @@+# coss Popover++## When to use++- Contextual floating content near a trigger.+- Inline editing/help panels without full modal lock.++## When NOT to use++- If the content requires user focus/action before dismissal -> use Dialog instead.+- If the content is just a short text hint -> use Tooltip instead.+- If it's a list of actions -> use Menu instead.++## Install++```bash+npx shadcn@latest add @coss/popover+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Popover,+ PopoverClose,+ PopoverCreateHandle,+ PopoverDescription,+ PopoverPopup,+ PopoverTitle,+ PopoverTrigger,+} from "@/components/ui/popover"+```++## Minimal pattern++```tsx+<Popover>+ <PopoverTrigger render={<Button variant="outline" />}>Open Popover</PopoverTrigger>+ <PopoverPopup>+ <PopoverTitle>Popover Title</PopoverTitle>+ <PopoverDescription>Popover Description</PopoverDescription>+ <PopoverClose render={<Button variant="outline" />}>Close</PopoverClose>+ </PopoverPopup>+</Popover>+```++## Patterns from coss particles++- **Form-in-popover**: use `PopoverPopup` as a lightweight form container (for example feedback forms with `Form` + `Field` + `Textarea`).+- **Dismiss controls**: use `PopoverClose` both for footer actions and icon close buttons (`aria-label` + `render={<Button size="icon" .../>}`).+- **Tooltip-like popovers**: use `tooltipStyle` for info-icon helper content where tooltip density is preferred.+- **Detached triggers**: use `PopoverCreateHandle` + shared `handle`/`payload` on multiple `PopoverTrigger`s to animate one popup across triggers.+- **Position tuning**: only add `side`, `align`, `sideOffset`, `alignOffset` when default anchoring is not sufficient.++## Common pitfalls++- Treating Popover as a modal replacement when the flow needs full modal behavior (use Dialog/AlertDialog instead).+- Forgetting `render` composition on trigger/close when using coss buttons.+- Missing accessible names on icon-only triggers or close controls.+- Using detached trigger handles without stable payload/content mapping.+- Copying Tooltip patterns directly without checking `tooltipStyle` and popover semantics.++## Useful particle references++- baseline popover with form content: `p-popover-1`+- close controls (icon + action button): `p-popover-2`+- detached trigger handle pattern: `p-popover-3`+- tooltip-style popover usage example: `p-input-group-7`diff --git a/.agents/skills/coss/references/primitives/preview-card.md b/.agents/skills/coss/references/primitives/preview-card.mdnew file mode 100644index 000000000..735932668--- /dev/null+++ b/.agents/skills/coss/references/primitives/preview-card.md@@ -0,0 +1,78 @@+# coss Preview Card++## When to use++- Hover/focus-triggered rich preview content.+- Contextual details for users/entities without full navigation.++## Install++```bash+npx shadcn@latest add @coss/preview-card+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Button } from "@/components/ui/button"+import {+ PreviewCard,+ PreviewCardPopup,+ PreviewCardTrigger,+} from "@/components/ui/preview-card"+```++## Minimal pattern++```tsx+<PreviewCard>+ <PreviewCardTrigger>Open Preview Card</PreviewCardTrigger>+ <PreviewCardPopup>Preview Card Content</PreviewCardPopup>+</PreviewCard>+```++## Patterns from coss particles++### Key patterns++Preview card with rich content:++```tsx+<PreviewCard>+ <PreviewCardTrigger render={<a href="/user/johndoe" />}>+ @johndoe+ </PreviewCardTrigger>+ <PreviewCardPopup className="w-80">+ <div className="flex items-center gap-3">+ <Avatar>+ <AvatarImage src="/avatar.png" alt="John Doe" />+ <AvatarFallback>JD</AvatarFallback>+ </Avatar>+ <div>+ <p className="text-sm font-semibold">John Doe</p>+ <p className="text-muted-foreground text-xs">Software Engineer</p>+ </div>+ </div>+ </PreviewCardPopup>+</PreviewCard>+```++### More examples++See `p-preview-card-1` for the core pattern.++## Common pitfalls++- Using preview card for critical workflows requiring explicit modal interaction.+- Missing accessible trigger labels when using icon-only triggers.+- Rendering heavy async content on every hover without throttling/caching strategy.++## Useful particle references++- core patterns: `p-preview-card-1`diff --git a/.agents/skills/coss/references/primitives/progress.md b/.agents/skills/coss/references/primitives/progress.mdnew file mode 100644index 000000000..2be60052f--- /dev/null+++ b/.agents/skills/coss/references/primitives/progress.md@@ -0,0 +1,72 @@+# coss Progress++## When to use++- Task completion and async operation progress bars.+- Indeterminate or determinate status during loading pipelines.++## When NOT to use++- If displaying a bounded measurement (not task completion) -> use Meter instead.+- If the loading state is indeterminate with no percentage -> consider Spinner.++## Install++```bash+npx shadcn@latest add @coss/progress+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Progress,+ ProgressLabel,+ ProgressValue,+} from "@/components/ui/progress"+```++## Minimal pattern++```tsx+<Progress value={40} />+```++## Patterns from coss particles++### Key patterns++Progress with label and value display:++```tsx+<Progress value={60}>+ <div className="flex justify-between text-sm">+ <ProgressLabel>Uploading...</ProgressLabel>+ <ProgressValue />+ </div>+</Progress>+```++Determinate progress: bind a numeric `value` (0-100) for known completion states.+Indeterminate loading: omit `value` or pass `null` when progress cannot be measured.++### More examples++- with label and value: `p-progress-2`+- with formatted value: `p-progress-3`++## Common pitfalls++- Using progress without text/context for what operation is progressing.+- Using determinate values when state is actually unknown/indeterminate.+- Using progress for static score displays that should use `Meter`.++## Useful particle references++See `p-progress-1` through `p-progress-3` for animated, labeled, and formatted value patterns.diff --git a/.agents/skills/coss/references/primitives/radio-group.md b/.agents/skills/coss/references/primitives/radio-group.mdnew file mode 100644index 000000000..d7ff91391--- /dev/null+++ b/.agents/skills/coss/references/primitives/radio-group.md@@ -0,0 +1,102 @@+# coss Radio Group++## When to use++- Mutually exclusive option selection.+- Single-choice settings with clear option labels.++## When NOT to use++- If multiple options can be selected -> use CheckboxGroup instead.+- If options are many and need search/filtering -> use Select or Combobox instead.+- If the choices are binary (on/off) -> use Switch or Checkbox instead.++## Install++```bash+npx shadcn@latest add @coss/radio-group+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Label } from "@/components/ui/label"+import { Radio, RadioGroup } from "@/components/ui/radio-group"+```++## Minimal pattern++```tsx+<RadioGroup defaultValue="next">+ <Label>+ <Radio value="next" /> Next.js+ </Label>+ <Label>+ <Radio value="vite" /> Vite+ </Label>+ <Label>+ <Radio value="astro" /> Astro+ </Label>+</RadioGroup>+```++For form-bound single-choice groups, prefer `Field` + `Fieldset` composition to keep legend and validation semantics consistent.++## Patterns from coss particles++### Key patterns++Radio group with descriptions:++```tsx+<RadioGroup defaultValue="comfortable" aria-label="Spacing preference">+ <Label className="flex items-start gap-3">+ <Radio value="default" />+ <div>+ <span className="font-medium">Default</span>+ <p className="text-muted-foreground text-xs">Standard spacing for most layouts.</p>+ </div>+ </Label>+ <Label className="flex items-start gap-3">+ <Radio value="comfortable" />+ <div>+ <span className="font-medium">Comfortable</span>+ <p className="text-muted-foreground text-xs">Extra padding for readability.</p>+ </div>+ </Label>+</RadioGroup>+```++Controlled radio group:++```tsx+const [value, setValue] = useState("default")++<RadioGroup value={value} onValueChange={setValue}>+ ...+</RadioGroup>+```++### More examples++See `p-radio-group-1` through `p-radio-group-5` for disabled, description, card-style, and form integration patterns.++## Common pitfalls++- Using radios for multi-select behavior that requires checkbox group.+- Missing label association for each radio option.+- Handling selected value as array when radio group returns single value.++## Useful particle references++- disabled: `p-radio-group-2`+- with description: `p-radio-group-3`+- card style: `p-radio-group-4`+- form integration: `p-radio-group-5`+- form composition references: `p-form-1`, `p-form-2`, `p-input-group-24`diff --git a/.agents/skills/coss/references/primitives/scroll-area.md b/.agents/skills/coss/references/primitives/scroll-area.mdnew file mode 100644index 000000000..2f61dbc79--- /dev/null+++ b/.agents/skills/coss/references/primitives/scroll-area.md@@ -0,0 +1,84 @@+# coss Scroll Area++## When to use++- Constrained-height scroll containers with styled viewport.+- Scrollable lists/logs/panels embedded in fixed layouts.++## Install++```bash+npx shadcn@latest add @coss/scroll-area+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { ScrollArea } from "@/components/ui/scroll-area"+```++## Minimal pattern++```tsx+<ScrollArea className="h-64 rounded-md border">+ <div className="p-4">+ Just as suddenly as it had begun, the sensation stopped, leaving Alice+ feeling slightly disoriented. She looked around and realized that the room+ hadn't changed at all - it was she who had grown smaller, shrinking down to+ a fraction of her previous size. Alice felt herself growing larger and+ larger, filling up the entire room until she feared she might burst. The+ sensation was both thrilling and terrifying, as if she were expanding beyond+ the confines of her own body. She wondered if this was what it felt like to+ be a balloon, swelling with air until it could hold no more.+ </div>+</ScrollArea>+```++## Patterns from coss particles++### Key patterns++Horizontal scrolling (use wide inner content, not an `orientation` prop):++```tsx+<ScrollArea className="max-w-96 rounded-lg border">+ <div className="flex w-max gap-4 p-4">+ {items.map((item) => (+ <div key={item} className="w-32 shrink-0">{item}</div>+ ))}+ </div>+</ScrollArea>+```++Scroll fade edges:++```tsx+<ScrollArea className="h-64" scrollFade>+ <div className="p-4">{/* Long content */}</div>+</ScrollArea>+```++`ScrollArea` always renders both scrollbars internally -- horizontal scroll is driven by inner content width exceeding the container, not by a prop. Also supports `scrollbarGutter` for reserving scrollbar space.++### More examples++See `p-scroll-area-1` through `p-scroll-area-5` for vertical, horizontal, both axes, fade, and gutter patterns.++## Common pitfalls++- Forgetting explicit height/constraint, resulting in non-scrollable container.+- Nesting multiple scroll areas that compete for wheel/touch events.+- Using scroll area where native page scrolling is simpler and clearer.++## Useful particle references++- scroll fade: `p-scroll-area-4`+- horizontal scroll: `p-scroll-area-2`+- scrollbar gutter: `p-scroll-area-5`+- both scrollbars: `p-scroll-area-3`diff --git a/.agents/skills/coss/references/primitives/select.md b/.agents/skills/coss/references/primitives/select.mdnew file mode 100644index 000000000..64f36c147--- /dev/null+++ b/.agents/skills/coss/references/primitives/select.md@@ -0,0 +1,97 @@+# coss Select++## When to use++- Single-choice selection from a predefined list.+- Select-style triggers with popup options.++## When NOT to use++- If the user needs to type/filter options -> use Combobox instead.+- If the list is very short (2-3 items) with visible options -> consider RadioGroup.+- If the selection drives complex search/autocomplete -> use Autocomplete instead.++## Install++```bash+npx shadcn@latest add @coss/select+```++Manual deps:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Select,+ SelectGroup,+ SelectGroupLabel,+ SelectItem,+ SelectLabel,+ SelectPopup,+ SelectSeparator,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select"+```++## Minimal pattern++```tsx+const items = [+ { label: "Next.js", value: "next" },+ { label: "Vite", value: "vite" },+]++<Select items={items}>+ <SelectTrigger>+ <SelectValue placeholder="Select framework" />+ </SelectTrigger>+ <SelectPopup>+ <SelectLabel>Frameworks</SelectLabel>+ {items.map((item) => (+ <SelectItem key={item.value} value={item}>+ {item.label}+ </SelectItem>+ ))}+ </SelectPopup>+</Select>+```++Prefer this `items`-first pattern for migration work to keep options known before hydration and avoid SSR mismatch edge cases.++For form-bound selects, prefer wrapping with `Field` + `FieldLabel` + `FieldError` so value, label, and validation stay semantically linked.++## Patterns from coss particles++- **Field composition**: in forms, place `Select` inside `Field` wrappers (see `p-select-23`, `p-form-1`, `p-form-2`).+- **Trigger composition**: keep `SelectTrigger` as the interaction entry point and avoid Radix `asChild` assumptions from other primitives; where composition is needed, prefer documented coss/Base UI `render` patterns for supported parts.+- **Multiple selection**: use `multiple` with array values (for example `defaultValue={["javascript", "typescript"]}`) and a custom `SelectValue` render function for compact summaries.+- **Object values**: use full objects in `SelectItem value={item}` with `itemToStringValue` for stable form value serialization.+- **Grouped options**: use `SelectGroup` + `SelectGroupLabel`; combine with `SelectSeparator` between groups when needed.+- **Disabled options**: pass `disabled` on individual `SelectItem` rows (for unavailable choices).+- **Rich row/trigger rendering**: render custom content (icons, avatars, secondary text) in both `SelectValue` and `SelectItem`; adjust row density via `className` where needed.+- **Alignment tuning**: use `alignItemWithTrigger={false}` only when the default selected-item alignment causes layout issues.++## Common pitfalls++- Keeping children-only Radix select patterns without adding `items`.+- Forgetting to render `SelectValue` inside `SelectTrigger`.+- Placing placeholder on the wrong part; use `placeholder` on `SelectValue` when needed.+- Using object item values without `itemToStringValue` when stable string value serialization is required.+- Treating `multiple` select values as scalars instead of arrays.+- Mixing select and combobox APIs without validating docs.++## Useful particle references++- basic select + sizing: `p-select-1`, `p-select-2`, `p-select-3`+- grouped/labeled/select field patterns: `p-select-6`, `p-select-11`, `p-select-23`+- multiple selection summary rendering: `p-select-7`+- object values + rich option content: `p-select-10`, `p-select-17`, `p-select-20`+- disabled options: `p-select-12`+- related pattern: `p-combobox-18` (`SelectButton` with combobox trigger)+diff --git a/.agents/skills/coss/references/primitives/separator.md b/.agents/skills/coss/references/primitives/separator.mdnew file mode 100644index 000000000..f148461a8--- /dev/null+++ b/.agents/skills/coss/references/primitives/separator.md@@ -0,0 +1,69 @@+# coss Separator++## When to use++- Visual/semantic separation between related blocks.+- Section dividers in menus, cards, and grouped controls.++## Install++```bash+npx shadcn@latest add @coss/separator+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Separator } from "@/components/ui/separator"+```++## Minimal pattern++```tsx+<div className="flex flex-col gap-2">+ <span className="text-sm">Section A</span>+ <Separator />+ <span className="text-sm">Section B</span>+</div>+```++## Patterns from coss particles++### Key patterns++Horizontal separator (default):++```tsx+<Separator />+```++Vertical separator inline:++```tsx+<div className="flex items-center gap-4">+ <span>Home</span>+ <Separator orientation="vertical" className="h-4" />+ <span>Settings</span>+</div>+```++### More examples++See `p-separator-1` for the core pattern. Also used within `p-menu-1`, `p-group-1`, and `p-input-group-7`.++## Common pitfalls++- Adding separators between every small element, creating visual clutter.+- Using separators where spacing alone communicates grouping better.+- Forgetting orientation/context in dense vertical command layouts.++## Useful particle references++- core patterns: `p-separator-1`+- cross-primitive dividers: `p-menu-1`, `p-group-1`, `p-input-group-7`diff --git a/.agents/skills/coss/references/primitives/sheet.md b/.agents/skills/coss/references/primitives/sheet.mdnew file mode 100644index 000000000..27899b2b9--- /dev/null+++ b/.agents/skills/coss/references/primitives/sheet.md@@ -0,0 +1,107 @@+# coss Sheet++## When to use++- Side-panel overlays for settings/details/workflows.+- Persistent context panels opened from main content area.++## When NOT to use++- If the overlay should be centered and focused -> use Dialog instead.+- If the overlay is a mobile-only bottom panel -> use Drawer instead.+- If the flow is a destructive confirmation -> use AlertDialog instead.++## Install++```bash+npx shadcn@latest add @coss/sheet+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Sheet,+ SheetContent,+ SheetDescription,+ SheetFooter,+ SheetHeader,+ SheetPanel,+ SheetPopup,+ SheetTitle,+ SheetTrigger,+} from "@/components/ui/sheet"+```++## Minimal pattern++```tsx+<Sheet>+ <SheetTrigger>Open</SheetTrigger>+ <SheetPopup>+ <SheetHeader>+ <SheetTitle>Are you absolutely sure?</SheetTitle>+ <SheetDescription>+ This action cannot be undone. This will permanently delete your account+ and remove your data from our servers.+ </SheetDescription>+ </SheetHeader>+ <SheetPanel>Content</SheetPanel>+ <SheetFooter>+ <SheetClose>Close</SheetClose>+ </SheetFooter>+ </SheetPopup>+</Sheet>+```++## Patterns from coss particles++### Key patterns++Sheet from the right side with form:++```tsx+<Sheet>+ <SheetTrigger render={<Button variant="outline" />}>Edit Profile</SheetTrigger>+ <SheetPopup side="right">+ <SheetHeader>+ <SheetTitle>Edit Profile</SheetTitle>+ <SheetDescription>Make changes to your profile here.</SheetDescription>+ </SheetHeader>+ <SheetPanel className="flex flex-col gap-4">+ <Field name="name">+ <FieldLabel>Name</FieldLabel>+ <Input type="text" />+ </Field>+ </SheetPanel>+ <SheetFooter>+ <SheetClose render={<Button variant="ghost" />}>Cancel</SheetClose>+ <Button>Save</Button>+ </SheetFooter>+ </SheetPopup>+</Sheet>+```++Side options: `top`, `right`, `bottom`, `left`.++### More examples++See `p-sheet-1` through `p-sheet-3` for inset and side sheet patterns.++## Common pitfalls++- Using sheet for simple tooltip/popover hints that do not need panel behavior.+- Missing close actions and focus-return verification on open/close cycle.+- Overloading sheet with multi-step form logic better handled by dedicated route/modal flow.++## Useful particle references++- sheet with inset: `p-sheet-2`+- side sheets: `p-sheet-3`+- cross-overlay references: `p-dialog-1`, `p-popover-1`, `p-menu-2`diff --git a/.agents/skills/coss/references/primitives/sidebar.md b/.agents/skills/coss/references/primitives/sidebar.mdnew file mode 100644index 000000000..1ddbe1701--- /dev/null+++ b/.agents/skills/coss/references/primitives/sidebar.md@@ -0,0 +1,134 @@+# coss Sidebar++## When to use++- Persistent app shell navigation and grouped links.+- Collapsible/structured side navigation for dashboard layouts.++## Install++```bash+npx shadcn@latest add @coss/sidebar+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarGroup,+ SidebarGroupAction,+ SidebarGroupContent,+ SidebarGroupLabel,+ SidebarHeader,+ SidebarInset,+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarProvider,+ SidebarRail,+ SidebarSeparator,+ SidebarTrigger,+ useSidebar,+} from "@/components/ui/sidebar"+```++## Minimal pattern++```tsx+<SidebarProvider>+ <Sidebar>+ <SidebarHeader>Workspace</SidebarHeader>+ <SidebarContent>+ <SidebarGroup>+ <SidebarGroupLabel>Navigation</SidebarGroupLabel>+ <SidebarGroupContent>+ <SidebarMenu>+ <SidebarMenuItem>+ <SidebarMenuButton>Dashboard</SidebarMenuButton>+ </SidebarMenuItem>+ </SidebarMenu>+ </SidebarGroupContent>+ </SidebarGroup>+ </SidebarContent>+ </Sidebar>+ <SidebarInset>{/* Main page content */}</SidebarInset>+</SidebarProvider>+```++## Patterns from coss particles++### Key patterns++Sidebar with grouped navigation and footer:++```tsx+<SidebarProvider>+ <Sidebar>+ <SidebarHeader>+ <h2 className="text-lg font-semibold">App Name</h2>+ </SidebarHeader>+ <SidebarContent>+ <SidebarGroup>+ <SidebarGroupLabel>Main</SidebarGroupLabel>+ <SidebarGroupContent>+ <SidebarMenu>+ <SidebarMenuItem>+ <SidebarMenuButton render={<a href="/dashboard" />}>+ Dashboard+ </SidebarMenuButton>+ </SidebarMenuItem>+ <SidebarMenuItem>+ <SidebarMenuButton render={<a href="/projects" />}>+ Projects+ </SidebarMenuButton>+ </SidebarMenuItem>+ </SidebarMenu>+ </SidebarGroupContent>+ </SidebarGroup>+ </SidebarContent>+ <SidebarFooter>+ <SidebarMenu>+ <SidebarMenuItem>+ <SidebarMenuButton>Settings</SidebarMenuButton>+ </SidebarMenuItem>+ </SidebarMenu>+ </SidebarFooter>+ <SidebarRail />+ </Sidebar>+ <SidebarInset>{/* Page content */}</SidebarInset>+</SidebarProvider>+```++Key composition rules:+- Wrap app with `SidebarProvider` at the layout level.+- Use `SidebarContent` (not "SidebarPanel") as the scrollable body between header/footer.+- Navigation items use `SidebarMenu` > `SidebarMenuItem` > `SidebarMenuButton`.+- For link items, use `render` composition: `<SidebarMenuButton render={<a href="..." />}>`. Do not use `asChild` -- sidebar follows the same `render` pattern as all other coss primitives.+- Use `SidebarTrigger` for the collapse/expand toggle.+- Use `SidebarInset` for the main content area next to the sidebar.+- `SidebarRail` adds a slim hover-to-expand rail in collapsed state.++### More examples++See `p-toolbar-1`, `p-breadcrumb-1`, `p-tabs-1`, `p-menu-1` for related app-shell patterns.++## Common pitfalls++- Using non-existent parts like "SidebarPanel" or "SidebarItem" -- the correct names are `SidebarContent` and `SidebarMenuItem`.+- Forgetting `SidebarProvider` wrapper, which manages collapse state and mobile responsiveness.+- Skipping the `SidebarMenu` > `SidebarMenuItem` > `SidebarMenuButton` hierarchy for nav items.+- Missing responsive collapse strategy for narrow/mobile layouts.++## Useful particle references++- sidebar-specific particles: no dedicated `p-sidebar-*` family currently.+- app-shell references: `p-toolbar-1`, `p-breadcrumb-1`, `p-tabs-1`, `p-menu-1`diff --git a/.agents/skills/coss/references/primitives/skeleton.md b/.agents/skills/coss/references/primitives/skeleton.mdnew file mode 100644index 000000000..b60331cc0--- /dev/null+++ b/.agents/skills/coss/references/primitives/skeleton.md@@ -0,0 +1,65 @@+# coss Skeleton++## When to use++- Loading placeholders matching final layout density.+- Perceived-performance improvement during fetch/render latency.++## Install++```bash+npx shadcn@latest add @coss/skeleton+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import { Skeleton } from "@/components/ui/skeleton"+```++## Minimal pattern++```tsx+<Skeleton className="size-10 rounded-full" />+```++## Patterns from coss particles++### Key patterns++Card skeleton composition (match the final layout geometry):++```tsx+<div className="flex items-center gap-4">+ <Skeleton className="size-10 rounded-full" />+ <div className="flex flex-1 flex-col">+ <Skeleton className="my-0.5 h-4 max-w-54" />+ <Skeleton className="my-0.5 h-4 w-1/2" />+ </div>+ <Skeleton className="h-7 w-19" />+</div>+```++Shape matching: mirror final text/image/button geometry to reduce content shift.+State handoff: remove skeleton immediately when data is ready to avoid double-render.++### More examples++- skeleton-only layout: `p-skeleton-2`+- full loading-to-loaded flow: `p-skeleton-1`++## Common pitfalls++- Mismatch between skeleton layout and final content layout causing jarring swap.+- Leaving skeleton visible after load completion due missing state transition.+- Using skeleton for very short operations where spinner/text is clearer.++## Useful particle references++See `p-skeleton-1` (full loading flow) and `p-skeleton-2` (skeleton-only layout).diff --git a/.agents/skills/coss/references/primitives/slider.md b/.agents/skills/coss/references/primitives/slider.mdnew file mode 100644index 000000000..65d2da00a--- /dev/null+++ b/.agents/skills/coss/references/primitives/slider.md@@ -0,0 +1,69 @@+# coss Slider++## When to use++- Continuous or ranged numeric tuning interactions.+- Volume/brightness/threshold controls with immediate feedback.++## Install++```bash+npx shadcn@latest add @coss/slider+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Slider, SliderValue } from "@/components/ui/slider"+```++## Minimal pattern++```tsx+<Slider aria-label="Volume" defaultValue={40} max={100} min={0} />+```++## Patterns from coss particles++### Key patterns++Slider with label and live value display:++```tsx+<div className="flex flex-col gap-2">+ <div className="flex justify-between text-sm">+ <Label>Volume</Label>+ <SliderValue />+ </div>+ <Slider aria-label="Volume" defaultValue={50} min={0} max={100} />+</div>+```++Range slider (two thumbs):++```tsx+<Slider aria-label="Price range" defaultValue={[20, 80]} min={0} max={100} />+```++### More examples++See `p-slider-1` through `p-slider-5` for label, range, vertical, and form integration patterns.++## Common pitfalls++- Using slider for discrete option labels where select/radio is clearer.+- Not exposing current value context in nearby UI text when needed.+- Confusing single-value vs range value shapes in controlled mode.++## Useful particle references++- with label and value: `p-slider-2`+- range slider: `p-slider-3`+- vertical: `p-slider-4`+- form integration: `p-slider-5`diff --git a/.agents/skills/coss/references/primitives/spinner.md b/.agents/skills/coss/references/primitives/spinner.mdnew file mode 100644index 000000000..1566c1513--- /dev/null+++ b/.agents/skills/coss/references/primitives/spinner.md@@ -0,0 +1,73 @@+# coss Spinner++## When to use++- Indeterminate loading indicator for ongoing work.+- Inline pending state in buttons, forms, and async panels.++## Install++```bash+npx shadcn@latest add @coss/spinner+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import { Spinner } from "@/components/ui/spinner"+```++## Minimal pattern++```tsx+<div className="flex items-center gap-2">+ <Spinner aria-label="Loading" />+ <span className="text-sm text-muted-foreground">Loading data…</span>+</div>+```++## Patterns from coss particles++### Key patterns++Spinner inside a button:++```tsx+<Button disabled>+ <Spinner aria-hidden="true" />+ Loading...+</Button>+```++Standalone spinner with label:++```tsx+<div className="flex items-center gap-2">+ <Spinner aria-label="Loading" />+ <span className="text-muted-foreground text-sm">Fetching data...</span>+</div>+```++Prefer button built-in loading UI where available over ad-hoc spinner wrappers.++### More examples++See `p-button-18` and `p-input-12` for spinner-in-button and spinner-in-input-group patterns.++## Common pitfalls++- Using spinner without accessible label/context for screen readers.+- Showing spinner with no cancel/retry pathway in long-running operations.+- Using spinner when determinate progress value is available.++## Useful particle references++- input group: `p-input-12`+- button: `p-button-18`+- cross-primitive pending states: `p-button-25`, `p-autocomplete-12`, `p-toast-3`diff --git a/.agents/skills/coss/references/primitives/switch.md b/.agents/skills/coss/references/primitives/switch.mdnew file mode 100644index 000000000..55db1b4fd--- /dev/null+++ b/.agents/skills/coss/references/primitives/switch.md@@ -0,0 +1,86 @@+# coss Switch++## When to use++- Binary preference toggles in settings flows.+- Immediate on/off state controls with explicit labels.++## When NOT to use++- If the control is a pressable command (not a preference) -> use Toggle instead.+- If you need grouped toggle selection -> use ToggleGroup instead.+- If it's a form agreement (terms/conditions) -> use Checkbox instead.++## Install++```bash+npx shadcn@latest add @coss/switch+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Switch } from "@/components/ui/switch"+```++## Minimal pattern++```tsx+<Label>+ <Switch />+ Enable notifications+</Label>+```++## Patterns from coss particles++### Key patterns++Switch with description text (use `id`/`htmlFor` when additional content exists):++```tsx+const id = useId()++<div className="flex items-center justify-between gap-4">+ <div className="flex flex-col gap-1">+ <Label htmlFor={id}>Marketing emails</Label>+ <p className="text-muted-foreground text-xs">+ Receive updates about new products and features.+ </p>+ </div>+ <Switch id={id} />+</div>+```++Disabled switch:++```tsx+<Label>+ <Switch disabled />+ Marketing emails+</Label>+```++### More examples++- disabled: `p-switch-2`+- with description: `p-switch-3`+- customizing size: `p-switch-6`+- card style: `p-switch-4`+- form integration: `p-switch-5`++## Common pitfalls++- Using switch for multi-option selection that should use radio/toggle-group.+- Omitting visible label or explicit `aria-label` for icon-only switch controls.+- Treating switch as form value without verifying checked-state wiring.++## Useful particle references++See `p-switch-1` through `p-switch-6` for label, disabled, description, card, form, and size patterns.diff --git a/.agents/skills/coss/references/primitives/table.md b/.agents/skills/coss/references/primitives/table.mdnew file mode 100644index 000000000..215baf151--- /dev/null+++ b/.agents/skills/coss/references/primitives/table.md@@ -0,0 +1,77 @@+# coss Table++## When to use++- Structured tabular datasets.+- Sortable/filterable row and column displays.++## Install++```bash+npx shadcn@latest add @coss/table+```++Manual deps from docs:++```bash+# No extra runtime dependency required for basic table usage.+# For interactive data tables, add TanStack Table:+npm install @tanstack/react-table+```++## Canonical imports++```tsx+import {+ Table,+ TableBody,+ TableCaption,+ TableCell,+ TableFooter,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table"+```++## Minimal pattern++```tsx+<Table>+ <TableHeader>+ <TableRow>+ <TableHead>Name</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ <TableRow>+ <TableCell>Ada Lovelace</TableCell>+ </TableRow>+ </TableBody>+</Table>+```++## Patterns from coss particles++- **Semantic baseline**: start with `TableHeader`/`TableBody`/`TableRow`/`TableHead`/`TableCell`, then add `TableCaption` and `TableFooter` as needed.+- **Framed surfaces**: wrap table in `Frame` for bordered app-surface presentation (`p-table-2` and advanced variants).+- **Status-rich rows**: combine `Badge` and decorative dots/icons for state columns while keeping text primary.+- **Interactive data grids**: pair coss table parts with TanStack Table (`flexRender`, row models, selection state) for sorting/pagination/selection.+- **No-results state**: always render an explicit empty-state row with `colSpan` matching visible columns.+- **Fixed layout control**: use `className="table-fixed"` and column width styles when predictable column sizing is required.++## Common pitfalls++- Assuming `Table` itself provides sorting/filter/pagination state; these come from your data layer (for example TanStack Table).+- Mixing header/body cell semantics (`TableHead` in body rows or `TableCell` in headers).+- Forgetting to align `colSpan` with actual visible columns in footer/empty rows.+- Using table patterns where card/list layouts are more suitable on small screens without responsive handling.+- Omitting `aria-label` for row-selection checkboxes in interactive tables.++## Useful particle references++- basic semantic table with caption/footer: `p-table-1`+- framed table layout: `p-table-2`+- TanStack integration with row selection: `p-table-3`+- TanStack sorting + pagination + footer controls: `p-table-4`+diff --git a/.agents/skills/coss/references/primitives/tabs.md b/.agents/skills/coss/references/primitives/tabs.mdnew file mode 100644index 000000000..769e700e1--- /dev/null+++ b/.agents/skills/coss/references/primitives/tabs.md@@ -0,0 +1,86 @@+# coss Tabs++## When to use++- Mutually exclusive content panels in one region.+- Settings/detail screens split into scoped views.++## Install++```bash+npx shadcn@latest add @coss/tabs+```++Manual deps from docs:++```bash+# No extra runtime dependency required for this primitive.+```++## Canonical imports++```tsx+import { Tabs, TabsList, TabsPanel, TabsTab } from "@/components/ui/tabs"+```++## Minimal pattern++```tsx+<Tabs defaultValue="tab-1">+ <TabsList>+ <TabsTab value="tab-1">Tab 1</TabsTab>+ <TabsTab value="tab-2">Tab 2</TabsTab>+ <TabsTab value="tab-3">Tab 3</TabsTab>+ </TabsList>+ <TabsPanel value="tab-1">Tab 1 content</TabsPanel>+ <TabsPanel value="tab-2">Tab 2 content</TabsPanel>+ <TabsPanel value="tab-3">Tab 3 content</TabsPanel>+</Tabs>+```++## Patterns from coss particles++### Key patterns++Controlled tabs with external state:++```tsx+const [value, setValue] = useState("tab-1")++<Tabs value={value} onValueChange={setValue}>+ <TabsList>+ <TabsTab value="tab-1">Tab 1</TabsTab>+ <TabsTab value="tab-2">Tab 2</TabsTab>+ </TabsList>+ <TabsPanel value="tab-1">Content 1</TabsPanel>+ <TabsPanel value="tab-2">Content 2</TabsPanel>+</Tabs>+```++Underline variant:++```tsx+<Tabs defaultValue="tab-1" variant="underline">+ <TabsList>+ <TabsTab value="tab-1">Tab 1</TabsTab>+ <TabsTab value="tab-2">Tab 2</TabsTab>+ </TabsList>+ ...+</Tabs>+```++### More examples++- underline variant: `p-tabs-2`+- vertical orientation: `p-tabs-3`+- underline with vertical orientation: `p-tabs-4`++## Common pitfalls++- Mismatching `TabsTab value` and `TabsPanel value` pairs.+- Using tabs for workflows that require route-level navigation instead.+- Mounting expensive panel content without considering visibility/performance.++## Useful particle references++See `p-tabs-1` through `p-tabs-4` for variants and orientations. Related: `p-toolbar-1`, `p-card-1`.diff --git a/.agents/skills/coss/references/primitives/textarea.md b/.agents/skills/coss/references/primitives/textarea.mdnew file mode 100644index 000000000..b614dc25b--- /dev/null+++ b/.agents/skills/coss/references/primitives/textarea.md@@ -0,0 +1,71 @@+# coss Textarea++## When to use++- Multi-line text entry (notes, feedback, descriptions).+- Comment/message inputs where text length is variable.++## Install++```bash+npx shadcn@latest add @coss/textarea+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Textarea } from "@/components/ui/textarea"+```++## Minimal pattern++```tsx+<Textarea aria-label="Message" placeholder="Write your message" />+```++For form fields, prefer wrapping `Textarea` with `Field` + `FieldLabel` + `FieldError` so labels, validation, and errors stay semantically linked.+`Textarea` already wraps Base UI `Field.Control` internally, so it works as a form control directly inside `Field` (no need to manually use `FieldControl` + `render` just to mount a textarea).++## Patterns from coss particles++### Key patterns++Textarea in a field with label:++```tsx+<Field name="bio">+ <FieldLabel>Bio</FieldLabel>+ <Textarea placeholder="Tell us about yourself..." />+ <FieldDescription>Max 500 characters.</FieldDescription>+ <FieldError />+</Field>+```++Sizes: `sm`, `default`, `lg` on `Textarea`.++`Textarea` wraps Base UI `Field.Control` internally, so it works as a form control directly inside `Field`.++### More examples++See `p-textarea-1` through `p-textarea-6` for sizes, disabled, label, and form integration patterns.++## Common pitfalls++- Using textarea when a constrained single-line input is expected.+- Missing labels/descriptions for required long-form fields.+- Forgetting explicit submit button type handling in textarea forms.+- Using `FieldControl render={<textarea .../>}` for basic textarea fields when `Textarea` already provides the correct control integration.++## Useful particle references++- small size: `p-textarea-2`+- large size: `p-textarea-3`+- disabled: `p-textarea-4`+- with label: `p-textarea-5`+- form integration: `p-textarea-6`diff --git a/.agents/skills/coss/references/primitives/toast.md b/.agents/skills/coss/references/primitives/toast.mdnew file mode 100644index 000000000..a0abfb309--- /dev/null+++ b/.agents/skills/coss/references/primitives/toast.md@@ -0,0 +1,114 @@+# coss Toast++## Architecture note++- coss toast is built on Base UI toast primitives, not shadcn Sonner internals.+- Do not assume Sonner-style APIs/options map 1:1.+- This is not Sonner's `toast()` + `<Toaster />` API model; use `toastManager` / `anchoredToastManager` with coss providers.++## When to use++- Temporary in-app feedback notifications.+- Anchored contextual toasts tied to a target element.++## When NOT to use++- If the message requires user acknowledgment before proceeding -> use AlertDialog instead.+- If the feedback is inline and persistent -> use Alert instead.+- If the notification is anchored to a specific element without toastManager -> use Tooltip or Popover instead.++## Install++```bash+npx shadcn@latest add @coss/toast+```++Manual deps:++```bash+npm install @base-ui/react+```++## Required app setup++Add providers in app layout:++```tsx+import { AnchoredToastProvider, ToastProvider } from "@/components/ui/toast"+```++Wrap app content with both:++```tsx+<ToastProvider>+ <AnchoredToastProvider>{children}</AnchoredToastProvider>+</ToastProvider>+```++## Canonical imports++```tsx+import {+ AnchoredToastProvider,+ ToastProvider,+ anchoredToastManager,+ toastManager,+} from "@/components/ui/toast"+```++## Minimal pattern++```tsx+toastManager.add({+ title: "Saved",+ description: "Your changes have been updated.",+})+```++## Patterns from coss particles++- **Stacked notifications**: use `toastManager.add(...)` for global app feedback with typed variants and optional actions.+- **Anchored notifications**: use `anchoredToastManager.add(...)` with `positionerProps.anchor` for contextual, element-tied toasts.+- **Lifecycle-driven flows**: use loading/promise patterns and explicit close/update handling for async operations.++## Stacked usage++```tsx+import { toastManager } from "@/components/ui/toast"++toastManager.add({+ title: "Event has been created",+ description: "Monday, January 3rd at 6:00pm",+})+```++## Anchored usage++```tsx+import { anchoredToastManager } from "@/components/ui/toast"++anchoredToastManager.add({+ title: "Copied!",+ positionerProps: { anchor: buttonRef.current },+})+```++## Common pitfalls++- Forgetting provider setup before calling managers.+- Using anchored toasts without a valid `anchor`.+- Assuming tooltip-style anchored toasts show full content (only title is shown with `tooltipStyle`).+- Copy/pasting Sonner examples (`toast(...)` options shape) without adapting to `toastManager` / `anchoredToastManager`.++## Useful particle references++- basic toast add flow: `p-toast-1`+- typed feedback variants (`success`/`error`/`info`/`warning`): `p-toast-2`+- loading toast: `p-toast-3`+- action/undo flow with `actionProps`: `p-toast-4`+- promise-driven lifecycle toasts: `p-toast-5`, `p-toast-9`+- custom content payload pattern: `p-toast-6`+- anchored tooltip-style confirmation: `p-toast-7`+- anchored error toast with manual lifecycle handling: `p-toast-8`+- anchored toast pattern in a non-toast primitive: `p-toggle-8`+diff --git a/.agents/skills/coss/references/primitives/toggle-group.md b/.agents/skills/coss/references/primitives/toggle-group.mdnew file mode 100644index 000000000..45d6ff556--- /dev/null+++ b/.agents/skills/coss/references/primitives/toggle-group.md@@ -0,0 +1,88 @@+# coss Toggle Group++## When to use++- Grouped pressed-state controls (single or multiple).+- Formatting/action sets needing button-like toggles with shared state.++## Install++```bash+npx shadcn@latest add @coss/toggle-group+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group"+```++## Minimal pattern++```tsx+<ToggleGroup>+ <ToggleGroupItem>Bold</ToggleGroupItem>+ <ToggleGroupItem>Italic</ToggleGroupItem>+ <ToggleGroupItem>Underline</ToggleGroupItem>+</ToggleGroup>+```++## Patterns from coss particles++### Key patterns++Toggle group with icon buttons:++```tsx+<ToggleGroup defaultValue={["bold"]}>+ <ToggleGroupItem aria-label="Toggle bold" value="bold">+ <BoldIcon aria-hidden="true" />+ </ToggleGroupItem>+ <ToggleGroupItem aria-label="Toggle italic" value="italic">+ <ItalicIcon aria-hidden="true" />+ </ToggleGroupItem>+ <ToggleGroupItem aria-label="Toggle underline" value="underline">+ <UnderlineIcon aria-hidden="true" />+ </ToggleGroupItem>+</ToggleGroup>+```++Multiple selection (default). For single selection use `type="single"`.++Controlled toggle group:++```tsx+const [value, setValue] = useState(["bold"])++<ToggleGroup value={value} onValueChange={setValue}>+ <ToggleGroupItem value="bold">Bold</ToggleGroupItem>+ ...+</ToggleGroup>+```++### More examples++See `p-toggle-group-1` through `p-toggle-group-9` for sizes, outline, vertical, disabled, multiple, and tooltip patterns.++## Common pitfalls++- Using toggle-group when plain buttons (no pressed state) are more appropriate.+- Wrong value shape for mode (`multiple` array vs single selection).+- Missing accessible labels on icon-only toggle items.++## Useful particle references++- small toggles: `p-toggle-group-2`+- large toggles: `p-toggle-group-3`+- with outline toggles: `p-toggle-group-4`+- vertical: `p-toggle-group-5`+- disabled: `p-toggle-group-6`+- with disabled toggle: `p-toggle-group-7`+- multiple selection: `p-toggle-group-8`+- with tooltips: `p-toggle-group-9`diff --git a/.agents/skills/coss/references/primitives/toggle.md b/.agents/skills/coss/references/primitives/toggle.mdnew file mode 100644index 000000000..f89aee15e--- /dev/null+++ b/.agents/skills/coss/references/primitives/toggle.md@@ -0,0 +1,83 @@+# coss Toggle++## When to use++- Pressable two-state commands (formatting/tool modes).+- Single-command active/inactive interactions without group state.++## When NOT to use++- If the control is a binary preference setting -> use Switch instead.+- If multiple toggles share state -> use ToggleGroup instead.++## Install++```bash+npx shadcn@latest add @coss/toggle+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Toggle } from "@/components/ui/toggle"+```++## Minimal pattern++```tsx+<Toggle>Toggle</Toggle>+```++## Patterns from coss particles++### Key patterns++Icon toggle with `aria-label` (always required for icon-only):++```tsx+<Toggle aria-label="Toggle bold" value="bold">+ <BoldIcon />+</Toggle>+```++ToggleGroup with icon toggles:++```tsx+<ToggleGroup defaultValue={["bold"]}>+ <Toggle aria-label="Toggle bold" value="bold">+ <BoldIcon />+ </Toggle>+ <Toggle aria-label="Toggle italic" value="italic">+ <ItalicIcon />+ </Toggle>+ <Toggle aria-label="Toggle underline" value="underline">+ <UnderlineIcon />+ </Toggle>+</ToggleGroup>+```++Variants: `default`, `outline`. Sizes: `sm`, `default`, `lg`.++### More examples++- outline: `p-toggle-2`+- with icon: `p-toggle-3`+- small / large size: `p-toggle-4`, `p-toggle-5`+- disabled: `p-toggle-6`+- icon group: `p-toggle-7`++## Common pitfalls++- Using toggle for destructive/submit actions better represented by `Button`.+- Missing pressed-state semantics in controlled toggle flows.+- Using standalone toggles when mutually exclusive behavior needs `ToggleGroup`.++## Useful particle references++See `p-toggle-1` through `p-toggle-7` for variants, sizes, and icon group patterns.diff --git a/.agents/skills/coss/references/primitives/toolbar.md b/.agents/skills/coss/references/primitives/toolbar.mdnew file mode 100644index 000000000..208035e62--- /dev/null+++ b/.agents/skills/coss/references/primitives/toolbar.md@@ -0,0 +1,73 @@+# coss Toolbar++## When to use++- Grouped command/action strips.+- Editor-like tool controls and mode toggles.++## Install++```bash+npx shadcn@latest add @coss/toolbar+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import { Button } from "@/components/ui/button"+import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group"+import {+ Toolbar,+ ToolbarButton,+ ToolbarGroup,+ ToolbarSeparator,+} from "@/components/ui/toolbar"+```++## Minimal pattern++```tsx+<Toolbar>+ <ToggleGroup className="border-none p-0" defaultValue={["left"]}>+ <ToolbarButton aria-label="Align left" render={<ToggleGroupItem value="left" />}>+ <AlignLeftIcon />+ </ToolbarButton>+ <ToolbarButton aria-label="Align center" render={<ToggleGroupItem value="center" />}>+ <AlignCenterIcon />+ </ToolbarButton>+ </ToggleGroup>+ <ToolbarSeparator />+ <ToolbarGroup>+ <ToolbarButton render={<Button type="button" variant="outline" />}>+ Save+ </ToolbarButton>+ </ToolbarGroup>+</Toolbar>+```++## Patterns from coss particles++- **Part composition via `render`**: use `ToolbarButton render={<ToggleGroupItem ... />}` or `render={<Button ... />}` instead of re-implementing button behavior.+- **Grouped layout**: use `ToolbarGroup` boundaries with `ToolbarSeparator` between logical command clusters.+- **Icon-only controls**: pair icon buttons with explicit `aria-label`; combine with `Tooltip` for discoverability.+- **Embedded selects**: wrap `SelectTrigger` with `ToolbarButton render={...}` to keep visual consistency in mixed control bars.+- **Formatting rows**: combine `ToggleGroup` + `ToolbarButton` for alignment/formatting command sets.++## Common pitfalls++- Dropping `ToolbarSeparator`, causing unrelated command clusters to collapse visually.+- Missing `aria-label` on icon-only toolbar actions.+- Rendering raw `Button`/`ToggleGroupItem` next to toolbar controls without `ToolbarButton`, creating inconsistent density/spacing.+- Treating Toolbar as a state manager; control selection/toggle state through composed primitives (`ToggleGroup`, `Select`, etc.).++## Useful particle references++- core toolbar patterns: `p-toolbar-1`+- related composition references: `p-toggle-group-1`, `p-group-1`, `p-select-1`+diff --git a/.agents/skills/coss/references/primitives/tooltip.md b/.agents/skills/coss/references/primitives/tooltip.mdnew file mode 100644index 000000000..8e26a2bbd--- /dev/null+++ b/.agents/skills/coss/references/primitives/tooltip.md@@ -0,0 +1,93 @@+# coss Tooltip++## When to use++- Short helper text on hover/focus for controls and icons.+- Non-blocking contextual hints without modal behavior.++## When NOT to use++- If the content is interactive (links, buttons) -> use Popover instead.+- If the content is rich (images, forms) -> use PreviewCard or Popover instead.+- If the hint should persist until dismissed -> use Popover instead.++## Install++```bash+npx shadcn@latest add @coss/tooltip+```++Manual deps from docs:++```bash+npm install @base-ui/react+```++## Canonical imports++```tsx+import {+ Tooltip,+ TooltipCreateHandle,+ TooltipPopup,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip"+```++## Minimal pattern++```tsx+<Tooltip>+ <TooltipTrigger render={<Button variant="outline" />}>+ Hover me+ </TooltipTrigger>+ <TooltipPopup>Helpful hint</TooltipPopup>+</Tooltip>+```++## Patterns from coss particles++### Key patterns++Tooltip on an icon-only button:++```tsx+<Tooltip>+ <TooltipTrigger render={<Button size="icon" variant="ghost" aria-label="Settings" />}>+ <SettingsIcon aria-hidden="true" />+ </TooltipTrigger>+ <TooltipPopup>Settings</TooltipPopup>+</Tooltip>+```++Grouped tooltips (shared delay/provider):++```tsx+<TooltipProvider>+ <Tooltip>+ <TooltipTrigger>Item 1</TooltipTrigger>+ <TooltipPopup>Hint 1</TooltipPopup>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger>Item 2</TooltipTrigger>+ <TooltipPopup>Hint 2</TooltipPopup>+ </Tooltip>+</TooltipProvider>+```++### More examples++See `p-tooltip-1` through `p-tooltip-3` for basic, grouped, and animated tooltip patterns.++## Common pitfalls++- Placing interactive controls inside tooltip content (tooltip should stay informational).+- Relying on tooltip as sole label for icon-only controls (still provide accessible name).+- Using tooltip for long-form content that should be popover/dialog.++## Useful particle references++- grouped tooltips: `p-tooltip-2`+- animated tooltips: `p-tooltip-3`+- cross-overlay references: `p-dialog-1`, `p-popover-1`, `p-menu-2`diff --git a/.agents/skills/coss/references/rules/composition.md b/.agents/skills/coss/references/rules/composition.mdnew file mode 100644index 000000000..9981877ae--- /dev/null+++ b/.agents/skills/coss/references/rules/composition.md@@ -0,0 +1,42 @@+# Composition Rules (coss)++Use this when composing complex UI from coss primitives and particles.++## Core Rules++- Prefer composing existing primitives over custom wrappers with duplicated behavior.+- For trigger-based primitives (Dialog, Menu, Select, Popover, Tooltip), follow each primitive's documented trigger/content hierarchy and composition API; do not mix patterns across components.+- Use coss/Base UI trigger APIs consistently (typically `render`-based composition).+- Use complete sub-structures where required (for example title/description regions in dialogs where relevant).++## Patterns++### Trigger + Popup++```tsx+<Dialog>+ <DialogTrigger render={<Button variant="outline" />}>Open</DialogTrigger>+ <DialogPopup>+ <DialogHeader>+ <DialogTitle>Title</DialogTitle>+ </DialogHeader>+ <DialogPanel>Body</DialogPanel>+ </DialogPopup>+</Dialog>+```++### Grouped Controls++```tsx+<Group>+ <Button variant="outline">A</Button>+ <GroupSeparator />+ <Button variant="outline">B</Button>+</Group>+```++## Anti-patterns++- Building bespoke dropdown/dialog behavior instead of using primitives.+- Mixing APIs from other ecosystems (`asChild`-only mental model) without checking coss equivalents.+- Omitting key subcomponents that preserve accessibility and layout conventions.diff --git a/.agents/skills/coss/references/rules/forms.md b/.agents/skills/coss/references/rules/forms.mdnew file mode 100644index 000000000..fea56d655--- /dev/null+++ b/.agents/skills/coss/references/rules/forms.md@@ -0,0 +1,52 @@+# Forms and Inputs Rules (coss)++Use this when implementing fields, input groups, validation states, and form examples.++## Core Rules++- For form-bound controls, default to `Field` composition (`Field`, `FieldLabel`, `FieldDescription`, `FieldError`) instead of standalone inputs.+- Always specify `type` on input-like controls where relevant (`type="text"`, `type="email"`, etc.).+- Always specify `type` on buttons (`button`, `submit`, or `reset`) instead of relying on browser defaults.+- Preserve accessible labelling:+ - visible label association (`Label`, `htmlFor`, `id`)+ - `aria-label` when there is no visible label.+- Keep validation signaling aligned between container and control (`aria-invalid`, related field semantics).++## Input Group Rule++- In `InputGroup`, place `InputGroupAddon` after `InputGroupInput` or `InputGroupTextarea` in DOM order to preserve focus behavior.++## Input OTP Rule++- Keep `maxLength` synchronized with rendered `InputOTPSlot` count.++## Textarea Rule++- coss `Textarea` already uses Base UI field control semantics internally; in normal form flows, use `Textarea` directly inside `Field` and avoid manual `FieldControl` render wiring unless a custom control implementation is truly needed.++## Do / Don't++```tsx+// Do+<Field>+ <FieldLabel>Email</FieldLabel>+ <Input type="email" />+</Field>++<InputGroup>+ <InputGroupInput type="text" />+ <InputGroupAddon>{/* ... */}</InputGroupAddon>+</InputGroup>++// Don't+<Input placeholder="Email" />++<InputGroup>+ <InputGroupAddon>{/* ... */}</InputGroupAddon>+ <InputGroupInput type="text" />+</InputGroup>+```++## Further reading++- Base UI Forms handbook: `https://base-ui.com/react/handbook/forms.md`diff --git a/.agents/skills/coss/references/rules/migration.md b/.agents/skills/coss/references/rules/migration.mdnew file mode 100644index 000000000..c5410775d--- /dev/null+++ b/.agents/skills/coss/references/rules/migration.md@@ -0,0 +1,147 @@+# coss vs shadcn/Radix assumptions++Use this guide when adapting snippets that were originally written with shadcn/Radix mental models.++## Core idea++coss is close to shadcn ergonomically, but its primitives and composition model are aligned to Base UI patterns.++## High-impact differences++- Do not assume every shadcn pattern translates 1:1.+- Verify trigger and popup composition from coss docs before coding.+- Apply `asChild` -> `render` only on coss parts that explicitly support `render`.+- Prefer coss component names and exports as documented (`DialogPopup`, `MenuPopup`, `SelectPopup`, etc.).+- Some legacy aliases may exist, but primary coss names should be preferred in new examples.+- Prefer styled coss exports by default (for example `Slider`, `SliderValue`) and use `*Primitive` only for advanced/custom composition.+- When only Base UI helpers are needed (`useRender`, `mergeProps`, `CSPProvider`, `DirectionProvider`), prefer `@coss/ui/base-ui/*` re-exports over direct `@base-ui/react` dependency.+- For Select migration, replace children-only option derivation with an `items`-first pattern where possible, then map options consistently in `SelectPopup`.++## Practical migration examples++Use these snippets as fast conversion templates when migrating shadcn/Radix code.++### Composition: `asChild` -> `render`++```tsx+// shadcn/Radix+<DialogTrigger asChild>+ <Button variant="outline">Open</Button>+</DialogTrigger>+```++```tsx+// coss/Base UI+<DialogTrigger render={<Button variant="outline" />}>Open</DialogTrigger>+```++### Menu actions: `onSelect` -> `onClick`++```tsx+// shadcn/Radix+<DropdownMenuItem onSelect={handleOpen}>Open</DropdownMenuItem>+```++```tsx+// coss/Base UI+<MenuItem onClick={handleOpen}>Open</MenuItem>+```++### Select: `items`-first + placeholder on `SelectValue`++```tsx+// shadcn/Radix+<Select>+ <SelectTrigger>+ <SelectValue placeholder="Select a framework" />+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="next">Next.js</SelectItem>+ <SelectItem value="vite">Vite</SelectItem>+ </SelectContent>+</Select>+```++```tsx+// coss/Base UI+const items = [+ { label: "Next.js", value: "next" },+ { label: "Vite", value: "vite" },+];++<Select items={items}>+ <SelectTrigger>+ <SelectValue placeholder="Select a framework" />+ </SelectTrigger>+ <SelectPopup alignItemWithTrigger={false}>+ {items.map((item) => (+ <SelectItem key={item.value} value={item.value}>+ {item.label}+ </SelectItem>+ ))}+ </SelectPopup>+</Select>+```++### Toggle Group: `type` -> `multiple`++```tsx+// shadcn/Radix+<ToggleGroup type="single" defaultValue="daily">+ <ToggleGroupItem value="daily">Daily</ToggleGroupItem>+ <ToggleGroupItem value="weekly">Weekly</ToggleGroupItem>+</ToggleGroup>+```++```tsx+// coss/Base UI+<ToggleGroup defaultValue={["daily"]}>+ <ToggleGroupItem value="daily">Daily</ToggleGroupItem>+ <ToggleGroupItem value="weekly">Weekly</ToggleGroupItem>+</ToggleGroup>+```++### Slider: scalar single-value usage in coss++```tsx+// shadcn/Radix+<Slider defaultValue={[50]} max={100} step={1} />+```++```tsx+// coss/Base UI+<Slider defaultValue={50} max={100} step={1} />+```++### Accordion: `type/collapsible` -> coss defaults++```tsx+// shadcn/Radix+<Accordion type="single" collapsible defaultValue="item-1">+ <AccordionItem value="item-1">...</AccordionItem>+</Accordion>+```++```tsx+// coss/Base UI+<Accordion defaultValue={["item-1"]}>+ <AccordionItem value="item-1">...</AccordionItem>+</Accordion>+```++## Migration checklist++1. Confirm the exact coss imports from docs.+2. Confirm child structure requirements (trigger/header/panel/footer/items/groups).+3. Confirm prop names and semantics from the coss docs page.+4. Validate with at least one coss particle example.++## Per-component migration notes++For the full component registry, see `../component-registry.md`.++## Anti-patterns++- Copy/paste shadcn examples and only change import path.+- Using undocumented props because they exist in other ecosystems.+- Omitting required subcomponents in overlays/forms because the source snippet did.diff --git a/.agents/skills/coss/references/rules/styling.md b/.agents/skills/coss/references/rules/styling.mdnew file mode 100644index 000000000..e65d8f4c1--- /dev/null+++ b/.agents/skills/coss/references/rules/styling.md@@ -0,0 +1,98 @@+# Styling Rules (coss)++Use this guide when writing or updating coss primitives, particles, and docs examples.++## Core Rules++- Use semantic tokens (`text-muted-foreground`, `bg-destructive`) over raw palette classes.+- Prefer component variants/size props before custom class overrides.+- Use `flex flex-col gap-*` layouts instead of `space-x-*`/`space-y-*`.+- Use `size-*` for square sizing.+- Use `cn()` for conditional class composition.+- Avoid redundant classes that defaults already cover (for example `border-border` when border color is already inherited).+- Before adding layout classes, check whether the target part already provides that layout.+- Use Tailwind v4 syntax and conventions in coss examples and snippets.+- **Do not replace `--alpha()` with `color-mix()` or `rgba()`.** `--alpha()` is a valid Tailwind v4 theme function used throughout coss token definitions (e.g. `--alpha(var(--color-black) / 8%)`). It is processed by Tailwind at build time — it is not invalid CSS.++## coss-specific Expectations++- Do not use numeric icon `size` props; prefer inherited sizing or `size-*` utility classes.+- For icons, default to `aria-hidden="true"` when icon is decorative/redundant; do not hide icons that carry unique semantic meaning.+- Many primitives already define inner SVG sizing. Check existing component styles before adding icon `size-*` classes.+- Many primitives already define inner SVG opacity (commonly around `opacity-80`). Check existing component styles before adding manual icon opacity classes.+- Prefer data-slot-aware selectors and `in-*` patterns over `group` where available.+- Cancel/close buttons in Dialog, AlertDialog, Sheet, and Drawer footers use `variant="ghost"`. Reserve `variant="outline"` for triggers that open overlays, not for dismissing them.++## Global Styling Setup (when relevant)++Apply this section only when the task touches global theme/layout setup (not normal component usage edits).++- Preserve coss token architecture. Do not replace coss semantic variables with ad-hoc color classes/tokens.+- When providing manual theme setup, include complete token blocks and variable mappings; avoid partial copy/paste snippets that break variable chains.+- For Base UI portal layering, keep an isolated application root wrapper (for example `isolate` on the root container).+- For iOS Safari compatibility, ensure `body` has `position: relative` when configuring global layout for portaled backdrops.++### Font variable contract++coss components use three CSS custom properties for typography:++| Variable | Used by | Default fallback |+|---|---|---|+| `--font-sans` | Body text, buttons, labels, most UI | `ui-sans-serif, system-ui, sans-serif` |+| `--font-mono` | `<code>`, `<kbd>`, `<pre>`, code blocks | `ui-monospace, monospace` |+| `--font-heading` | Dialog/AlertDialog titles, headings | Defaults to Inter (same as `--font-sans`) |++**CLI setup (recommended):** `npx shadcn@latest init @coss/style` automatically installs `@coss/fonts` — Inter for `--font-sans` and `--font-heading`, Geist Mono for `--font-mono` — via `registry:font` items and configures them in `layout.tsx`.++**Manual / custom font setup:** When using `next/font`, the `variable` option must match coss expectations exactly:++```tsx+const inter = Inter({ variable: "--font-sans", subsets: ["latin"] });+const interHeading = Inter({ variable: "--font-heading", subsets: ["latin"] });+const geistMono = Geist_Mono({ variable: "--font-mono", subsets: ["latin"] });+```++**Common pitfall:** Next.js starters default to `--font-geist-sans` and `--font-geist-mono`, which do not match coss's `--font-sans` / `--font-mono`. Fonts will silently fall back to system UI. Always rename the variables or remap them.++## Do / Don't++```tsx+// Do+<Button variant="outline" size="sm" />+<div className="flex flex-col gap-3" />+<Badge className="text-muted-foreground" />+<Button>+ <PlusIcon aria-hidden="true" />+ Add item+</Button>+<Button>+ Save+ <ArrowRightIcon+ aria-hidden="true"+ className="transition-transform in-[[data-slot=button]:hover]:translate-x-0.5"+ />+</Button>++// Don't+<Button className="bg-blue-500 text-white" />+<div className="space-y-3" />+<Icon size={16} />+<Button className="group">+ Save+ <ArrowRightIcon className="transition-transform group-hover:translate-x-0.5" />+</Button>++// Do — --alpha() is valid Tailwind v4 syntax, leave it as-is+border: "--alpha(var(--color-black) / 8%)"++// Don't — do not "fix" --alpha() into color-mix or rgba+border: "color-mix(in srgb, var(--color-black) 8%, transparent)"+```++## Check Before Finalizing++1. Any raw color classes that should be semantic?+2. Any duplicate layout/style logic already handled by a primitive?+3. Any icon sizing/opacities violating coss conventions?+4. Any decorative interactive icons missing `aria-hidden="true"`?+5. Any use of `group` that should be replaced with `in-*` + `data-slot`?diff --git a/.claude/skills/coss b/.claude/skills/cossnew file mode 120000index 000000000..272a59888--- /dev/null+++ b/.claude/skills/coss@@ -0,0 +1 @@+../../.agents/skills/coss\ No newline at end of filediff --git a/skills-lock.json b/skills-lock.jsonnew file mode 100644index 000000000..267439a9d--- /dev/null+++ b/skills-lock.json@@ -0,0 +1,10 @@+{+ "version": 1,+ "skills": {+ "coss": {+ "source": "cosscom/coss",+ "sourceType": "github",+ "computedHash": "7fc8b04e73c445d9463ce27d0719832ed5ca3cbe70c3ac20fe15848aae24180e"+ }+ }+}diff --git a/skills/coss b/skills/cossnew file mode 120000index 000000000..b1c817d18--- /dev/null+++ b/skills/coss@@ -0,0 +1 @@+../.agents/skills/coss\ No newline at end of file