agentleFS
The-Best-CodesThe-Best-Codes/agent-one/.agents/skills/shadcn/SKILL.md

shadcn

Skill68 starsChanged 5 days agoAGPL-3.0View on GitHub

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. 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", "switch to --preset", and for building a design system or applying a DESIGN.md or brand spec to shadcn/ui.

  • Installs packages

190 other projects use a version of this, 145 of them edited; 135 of 145 edited versions we compared changed its rules.

How people change it

135 of 145 edited versions changed its rules, and some changes recur.

Of the 145 edited versions we compared: 10 keep every rule, 135 made changes of their own.

Rules people drop

  1. 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:dropped by 134 of 135
  2. Read the DESIGN.md frontmatter, Do's and Don'ts, and Known Gaps before editing.dropped by 134 of 135
  3. Verify in a browser: typecheck, no console errors, loads at the top, no horizontal overflow, dark mode.dropped by 134 of 135
  4. 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.dropped by 88 of 135
  5. 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 49 of 135
  6. 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 49 of 135
  7. No local changes → safe to overwrite.dropped by 2 of 135
  8. 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 2 of 135

Rules people add

  1. Toast via sonner. Use toast() from sonner.added by 87 of 135
  2. A rule we can't quote: its licence doesn't allow itadded by 24 of 135
  3. Use when adding new components from shadcn/ui or community registries.added by 5 of 135
  4. Use when styling, composing, or debugging existing shadcn/ui components.added by 5 of 135
  5. Use when initializing a new project or switching design system presets.added by 5 of 135
  6. Use to retrieve component documentation, examples, and API references.added by 5 of 135
  7. Use this skill only when the task clearly matches the scope described above.added by 2 of 135
  8. Do not treat the output as a substitute for environment-specific validation, testing, or expert review.added by 2 of 135

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

23 rules. 1 is common, 2 are distinctive, and 20 are very specific to this project.

  • 1

    Common

    Most of the 167 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 20

    Very specific

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

Licensed with conditions — 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 167 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.