跳到正文
cccskills
免费在 GitHub 公开

ls-shadcn-ui-components

Project-aware shadcn/ui guide. Use for shadcn setup, components, CLI/MCP, registry, theming, forms, Radix/Base UI, aliases, updates, and troubleshooting in React UI projects.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(44)

  • SKILL.md5.8 KB
  • components/buttons-actions.md607 B
  • components/data-display-dashboards.md643 B
  • components/feedback-status-loading.md697 B
  • components/forms-inputs.md1.5 KB
  • components/index.md1.4 KB
  • components/layout-navigation.md960 B
  • components/media-typography-utilities.md412 B
  • components/overlays-menus.md970 B
  • components/registry-patterns.md736 B
  • examples/command-dialog.md424 B
  • examples/custom-registry.md389 B
  • examples/dashboard.md475 B
  • examples/data-table.md428 B
  • examples/date-picker-calendar.md461 B
  • examples/destructive-alert-dialog.md453 B
  • examples/login-form.md483 B
  • examples/monorepo-imports.md487 B
  • examples/responsive-navigation.md423 B
  • examples/safe-component-update.md475 B
  • examples/settings-page.md430 B
  • examples/theme-customization.md400 B
  • references/accessibility.md919 B
  • references/cli.md2.6 KB
  • references/components-json.md1.2 KB
  • references/forms.md1007 B
  • references/frameworks.md1.2 KB
  • references/mcp.md1.1 KB
  • references/project-context.md1.7 KB
  • references/registry.md1.1 KB
  • references/source-ledger.md4.6 KB
  • references/theming.md927 B
  • references/troubleshooting.md1.1 KB
  • references/update-procedure.md1.0 KB
  • rules/base-vs-radix.md929 B
  • rules/composition.md502 B
  • rules/forms.md474 B
  • rules/icons.md364 B
  • rules/styling.md505 B
  • rules/updates.md395 B
  • scripts/verify_shadcn_sources.py9.5 KB
  • tests/fixtures/README.md662 B
  • tests/test_verify_shadcn_sources.py3.5 KB
  • tests/validation-checklist.md1.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

shadcn/ui

Use this skill when working with shadcn/ui in React projects: setup, adding components, choosing components, theming, forms, registry items, MCP, monorepos, package imports, Radix vs Base UI, or updating customized local components.

First Inspect The Project

Before recommending commands or editing UI code:

  • Find the project root: package.json, lockfile, app framework, and nearest components.json.
  • Choose the runner from packageManager first, then lockfiles: pnpm dlx, npx, yarn dlx, or bunx.
  • Run the current project probe from the relevant root:
<runner> shadcn@latest info

Interpret the project, config, preset, components, and links from the output. If current shadcn info --help confirms --json, you may rerun with --json for structured parsing. If config is absent or reported as null, treat the repo as not initialized and inspect framework setup before running init.

Use config.aliases, components, resolvedPaths, project.rsc, project.typescript, project.tailwindVersion, config.iconLibrary, config.rtl, config.registries, and the derived base (base, radix, or aria) when planning code changes. Never assume @/components/ui.

Decision Flow

Core Guardrails

  • Do not fetch raw GitHub component source manually. Prefer shadcn docs, shadcn view, registry JSON, or the installed project files.
  • Do not overwrite customized local components without previewing the diff.
  • Do not invent CLI flags. Prefer live shadcn@latest --help and official docs.
  • Use semantic theme tokens over raw colors and variants over custom one-off class strings.
  • Use the configured icon library; do not assume lucide-react.
  • Respect RSC/client boundaries. Interactive components usually need a client boundary in Next.js App Router projects.
  • Radix composition uses asChild; Base UI composition uses render. Use nativeButton={false} only when a Base UI part that defaults to native button behavior is rendered as a non-button element; parts with inverse/default-false behavior may need nativeButton={true} when rendered as a native button.

Reference Map

Component Guides

Scenario Examples

Use examples as starting checklists, not as copy-paste source:

Verifier

python3 ls/skills/ls-shadcn-ui-components/scripts/verify_shadcn_sources.py --help
python3 ls/skills/ls-shadcn-ui-components/scripts/verify_shadcn_sources.py
python3 ls/skills/ls-shadcn-ui-components/scripts/verify_shadcn_sources.py --json
python3 ls/skills/ls-shadcn-ui-components/scripts/verify_shadcn_sources.py --refresh --json

Run these repository validation commands from the LocalSetup repository root. For an installed copy of the skill, run the equivalent scripts/... path from the ls-shadcn-ui-components skill directory. The default verifier path is offline and uses only the Python standard library to check skill structure. --refresh checks official source reachability and npm latest metadata; it does not replace manual review of syntax-sensitive current docs.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

查看 CruxExperts 的全部技能

报告此技能的问题