/dev-flow:coss-uifrom dev-flow
Installs and extends Coss/UI (Cal.com design system) in Next.js apps via shadcn CLI. Handles init, component add, and token reconciliation with DESIGN.md.
Ships in dev-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill owns the Coss/UI side of a web project: installing and extending Coss components (the Cal.com design system on Base UI + Tailwind v4) through the shadcn CLI @coss/* registry, and keeping Coss's tokens reconciled with the project's DESIGN.md. It composes with design-md-to-app (which owns the generic Next.js scaffold) — it does not re-implement it.
Never invent the Coss commands or registry. The source of truth is the live docs at https://coss.com/ui/docs (get-started + each component page shows its exact pnpm dlx shadcn@latest add @coss/<name> command) and the repo cosscom/coss. Confirm the exact command, the components.json#registries config for the @coss namespace, and the current registry URL before running anything. Coss is young; treat this skill as the workflow + conventions, not a frozen copy of the API. Swept 2026-08-26 against the live registry (coss.com/ui/r/registry.json — 577 items — plus style.json, ui.json and the three font items), so the counts, the namespace requirement and the font slots below are read from the registry rather than the docs page. Anything still marked [VERIFY] must be checked against the live docs first.
Coss/UI rides the same machinery dev-flow already uses: shadcn CLI v4 + components.json + CSS-variable tokens with the same names as shadcn/ui. So the DESIGN.md → tokens pipeline works unchanged; Coss just supplies the default token set (@coss/colors-neutral) plus a curated Base-UI component/particle registry. It is a UI-library choice inside the shadcn / Base-UI family, recorded as stack.ui = "coss" (with ui_base = "base", since Coss is built on Base UI).
Pick Coss when the user wants the Cal.com aesthetic/DX, a Base-UI foundation, and an AI-first copy-paste kit. Two caveats make it a deliberate choice, not a default:
apps/ui, apps/origin), AGPLv3 elsewhere. Fine for OSS/internal; a real decision for closed-source products. See references/deps-and-license.md.stack.framework is "next" (App Router) or "monorepo" (operate in apps/web/). Next.js 16 target, per dev-flow.pnpm dlx shadcn@latest). No components.json is required up front for init @coss/style; for add @coss/* on an existing project, the @coss registry namespace must be resolvable (see references/coss-registry.md).Run python scripts/check_coss_state.py <project-root> (or inspect manually). It reports:
@coss in components.json#registries, @base-ui/react in deps, Coss token block in globals.css) → Add mode.Do one logical operation per invocation, then stop. Both modes are idempotent — re-adding an existing component is detected and skipped.
Goal: a runnable app with Coss/UI installed and its tokens reconciled to DESIGN.md.
node_modules/docs and confirm the current init flow (references/coss-registry.md). Confirm Tailwind v4.design-md-to-app (dev-flow contract), OR, for a Coss-first empty project, run the recommended one-shot:
pnpm dlx shadcn@latest init @coss/style
This installs all UI components, the neutral color system, sidebar variables, base styles and the
fonts. ⚠️ There are three font slots, not two — read off the registry on 2026-08-26:| Item | --variable | Family | npm dependency |
|---|---|---|---|
font-sans | --font-sans | Inter | @fontsource-variable/inter |
font-heading | --font-heading | Inter as well | @fontsource-variable/inter |
font-mono | --font-mono | Geist Mono | geist |
They arrive as npm font packages, not next/font. And headings default to the same family as
body — so a DESIGN.md that gives headings their own face has to override --font-heading explicitly;
inheriting the default silently flattens the type hierarchy to one family.
3. Reconcile with DESIGN.md (if present). Coss tokens are the same CSS variables as shadcn/ui, so DESIGN.md values override Coss's neutral defaults in globals.css — do not fork Coss's token structure, override its values. Follow references/design-md-reconciliation.md; this is the exact registry.json token-install path design-md-to-app already uses, with @coss/colors-neutral as the base being overridden.
4. Wire the dark/light toggle and the rest of the standard scaffold via design-md-to-app's mandatory steps (theme toggle, error/loading boundaries, folder convention) — Coss primitives slot into components/ui/ like any shadcn primitive.
5. Update .workflow/meta.json: stack.ui = "coss", stack.ui_base = "base", stack.css_variables = true, bump phase to scaffolded (only forward), append history ({ "skill": "coss-ui", "action": "init" }).
Goal: add ONE thing — a primitive set, a component, or particles — idempotently.
@coss registry is resolvable in components.json (references/coss-registry.md). If not configured, add it once.pnpm dlx shadcn@latest add @coss/uipnpm dlx shadcn@latest add @coss/<name> (e.g. @coss/button, @coss/combobox)pnpm dlx shadcn@latest add @coss/colors-neutralreferences/design-md-reconciliation.md).references/contracts.md §Golden rules): before writing a component, search components/ui/* for the primitive that covers the pattern and use it; if it is not installed yet, add @coss/<name> — never re-create it. Compose particles for domain pieces, change primitives only through tokens and variants, and record a truly new primitive as an exception (meta.json#stack_config.primitive_exceptions).history ({ "skill": "coss-ui", "action": "add-<name>" }). No phase bump.pnpm --filter web lint typecheck build (or the app's equivalent) exits 0; the app runs; Coss primitives are in components/ui/; globals.css carries the DESIGN.md-reconciled tokens; meta.json#stack.ui = "coss".cd coss-ui/scripts && python3 -m unittest test_check_coss_state.DESIGN.md (use figma-to-design-md / image-to-design-md).design-md-to-app's; this skill composes with them.module-add) or build React Native (RN uses NativeWind, not Coss).references/coss-registry.md — exact @coss/* commands, the namespaced-registry mechanism, components vs particles vs atoms, AI-first claim (no official MCP server documented).references/design-md-reconciliation.md — Coss tokens = shadcn CSS vars; how DESIGN.md overrides them; tie-in to design-md-to-app's registry.json install.references/deps-and-license.md — Tailwind v4, @base-ui/react, the MIT/AGPLv3 split, when Coss is the right/wrong pick.references/contracts.md — the .workflow/ dev-flow contract (vendored copy).references/contracts.md (opens in a new tab)references/coss-registry.md (opens in a new tab)references/deps-and-license.md (opens in a new tab)references/design-md-reconciliation.md (opens in a new tab)scripts/check_coss_state.py (opens in a new tab)scripts/test_check_coss_state.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lukedj78/dev-flow --plugin dev-flow57 skills in this plugin
/animated-iconsAdd a Motion-animated icon to a Next.js app from a shadcn registry instead of hand-animating an SVG. Two registries, picked from the project's icon set: **heroicons-animated** (316 icons, `shadcn add @heroicons-animated/<name>`) and **hugeicons-animated** (165 icons, `shadcn add @hugeicons-animated/<name>`, which also installs a shared `lib/use-icon-animation.ts`). Both MIT, both on the `motion` runtime, both copied into your repo as source. This skill owns the install plus the two things the raw components lack: a `prefers-reduced-motion` guard and timing aligned to the project motion tokens (`lib/motion/`). Use when the user says "animated icon", "animate this icon", "make the bell/heart/menu icon animate on hover", "aggiungi un'icona animata", or wants an icon micro-interaction. Refuses outside Next.js web — for React Native use `rn-animations-gestures`. Not for: static icons, a whole motion system (`transitions`), or installing the runtime itself (`module-add motion`)./app-securityCheck whether an app's own code can be attacked before it ships — vulnerable dependencies, secrets in the code and in git history, Next.js authorization gaps (Server Actions and route handlers without a session check, queries by id with no owner filter — IDOR), data over-exposure, secrets in public env vars, raw SQL — then read the flagged code against an OWASP checklist, with an opt-in dynamic level (Strix) that proves exploits against the app running locally. The fifth pre-deploy gate, beside compliance-audit, vercel-doctor, shadscan and launch-audit; reports and routes, never blocks. Triggers: "security review", "è sicura l'app?", "controllo di sicurezza prima del deploy", "IDOR", "secrets in the repo", "pentest". Not for: GDPR and legal (compliance-audit), UI quality (shadscan), cost (vercel-doctor), launch readiness (launch-audit), a review of one branch diff (Claude Code's /security-review), third-party registry code (registry-intake).