Index of every page on this site: llms.txt
All skills
usekaneo avatar

/coss

@e46680d
by kaneo.appusekaneo/kaneo9.9k stars
973
Run it yourself

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.

  • 60 files
  • 136.8 KB
  • MIT
  • Updated 8 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/usekaneo/kaneo/coss

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescli.md

≈799 tokens on demand. Your agent reads this file only when SKILL.md points to it.

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

# 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)

shadcn add @coss/<component>

Examples:

npx shadcn@latest add @coss/dialog
npx shadcn@latest add @coss/select
npx shadcn@latest add @coss/toast

add preview mode (recommended)

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)

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 patterns

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at e46680d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 8 months ago
metadata
{
  "author": "cosscom"
}
Other metadata
compatibility
Requires Tailwind CSS v4 and @base-ui/react. Designed for React projects using the coss component registry.

README badge

README badge for usekaneo/kaneo/coss