agentleFS
CohenDCohenD/cc-stack/.claude/skills/shadcn/SKILL.md

shadcn

Skill0 starsChanged 5 months agoLicence not identifiedView on GitHub

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".

  • Installs packages

189 other projects use a version of this, 160 of them edited; 114 of 158 edited versions we compared changed its rules.

How people change it

114 of 158 edited versions changed its rules, and some changes recur.

Of the 158 edited versions we compared: 32 keep every rule, 12 are an older text, 114 made changes of their own.

Not in older versions

  1. Never decode preset codes or build preset URLs manually. Use npx shadcn@latest preset decode <code>, preset url <code>, or preset open <code>. For project-aware preset detection, use npx shadcn@latest preset resolve.missing from 12 of 12
  2. Apply preset codes directly with the CLI. Use npx shadcn@latest apply <code> for existing projects, or npx shadcn@latest init --preset <code> when initializing.missing from 12 of 12

Rules people drop

  1. Toast via sonner. Use toast() from sonner.dropped by 79 of 114
  2. Never decode preset codes or build preset URLs manually. Use npx shadcn@latest preset decode <code>, preset url <code>, or preset open <code>. For project-aware preset detection, use npx shadcn@latest preset resolve.dropped by 34 of 114
  3. Apply preset codes directly with the CLI. Use npx shadcn@latest apply <code> for existing projects, or npx shadcn@latest init --preset <code> when initializing.dropped by 34 of 114
  4. No local changes → safe to overwrite.dropped by 2 of 114
  5. No manual dark: color overrides. Use semantic tokens (bg-background, text-muted-foreground).dropped by 2 of 114
  6. When the user asks to update a component from upstream while keeping their local changes, use --dry-run and --diff to intelligently merge. NEVER fetch raw files from GitHub manually — always use the CLI.dropped by 1 of 114
  7. Use existing components first. Use npx shadcn@latest search to check registries before writing custom UI. Check community registries too.dropped by 1 of 114
  8. className for layout, not styling. Never override component colors or typography.dropped by 1 of 114

Rules people add

  1. Toast follows the project base. Use toast from the toast component for Base UI projects. Use toast() from sonner for Radix and React Aria projects.added by 77 of 114
  2. When the user asks for a design system from a DESIGN.md (or a brand spec), with or without a preset, follow [design-system.md](./design-system.md) end to end:added by 29 of 114
  3. Read the DESIGN.md frontmatter, Do's and Don'ts, and Known Gaps before editing.added by 29 of 114
  4. Verify in a browser: typecheck, no console errors, loads at the top, no horizontal overflow, dark mode.added by 29 of 114
  5. A rule we can't quote: its licence doesn't allow itadded by 24 of 114
  6. Use when adding new components from shadcn/ui or community registries.added by 3 of 114
  7. Use when styling, composing, or debugging existing shadcn/ui components.added by 3 of 114
  8. Use when initializing a new project or switching design system presets.added by 3 of 114

We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.

Adopted by

Most recently taken up by

Used with

Projects with it also use migrate-radix-to-base, professional and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • shadcn-uiSkill

    migrate-radix-to-base

    Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.

    Also in 14 projects that use this

  • bergsideSkill

    professional

    Polished, business-ready design with modern typography, structured layouts, and a trustworthy visual identity.

    Also in 5 projects that use this

  • pedronauckSkill

    app-renderer-systems

    Create, extend, or debug frontend domain modules organized under systems/. Covers adapters, Query hooks, local state, and public exports; excludes generic components and backend implementation.

    Also in 4 projects that use this

  • bergsideSkill

    bold

    Strong visual presence with heavyweight typography, high-contrast colors, and commanding layouts.

    Also in 4 projects that use this

  • FracteraSkill

    ask-element

    Work skill. The architect wants an element of this node to check or find out something and you to bring the answer («попроси template проверить …», «узнай у auth …»), or wants you to start or close an element's agent yourself. Also when «агент элемента … сообщил, что закончил (надзор …)» wakes you after such a task.

    Also in 3 projects that use this

  • FracteraSkill

    audit-broken-characters

    Scan the whole project for BROKEN / REPLACEMENT characters in localized text — a control byte (e.g. 0x13) or U+FFFD or mojibake left where an accented letter belonged, which renders as a box (e.g. "Documentación" showing "Documentaci□n"). Use when the owner reports a square / wrong glyph in the UI or content, says "broken character", "weird symbol", "mojibake", "validate encoding", or after authoring multilingual content and before closing a content step. It SHIPS SILENTLY (the file still parses), so run the audit to catch it. One project-root script, nothing external needed.

    Also in 3 projects that use this

  • +4 more from bergside
  • +2 more from Fractera

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 1 is common, 0 are distinctive, and 19 are very specific to this project.

  • 1

    Common

    Most of the 182 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 19

    Very specific

    Tied to their project's names, files or tools. Probably skip.

The licence could not be identified — read it at the source. We count its rules but don't quote them. Read them on GitHub.

“Common” is measured: kept by at least 6 in 10 of the 182 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.