跳到主要内容
知仓学习社ZHICANG

shadcn-management

|

联网无严重或高危命中Microck/ordinary-claude-skills

它会碰到什么

扫了多少2 个文本文件,3 KB
它会碰到什么联网
命中总数1 处
命中统计严重 0 · 高 0 · 中 0 · 低 1

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Shadcn Component Management

Prerequisites

Verify project setup:

shadcn___get_project_registries

If no components.json exists, instruct user: npx shadcn@latest init

Quick Add Workflow

For simple component additions (e.g., "add a date picker"):

  1. Search - Find component in registry:
   shadcn___search_items_in_registries(registries, query)
  1. View - Get implementation details:
   shadcn___view_items_in_registries(items: ["@shadcn/component-name"])
  1. Examples - Get usage demo:
   shadcn___get_item_examples_from_registries(registries, query: "component-demo")
  1. Install - Get add command:
   shadcn___get_add_command_for_items(items: ["@shadcn/component-name"])
  1. Output - Provide installation command and example code

Complex Build Workflow

For multi-component features (e.g., "build a login form"), see [references/workflows.md](references/workflows.md).

When to use Complex Build:

  • Feature requires 3+ components
  • Need component hierarchy planning
  • Building complete sections (forms, dashboards, modals)

Component Naming Patterns

Common search queries:

  • Forms: form, input, select, checkbox, radio-group
  • Layout: card, dialog, sheet, drawer, tabs
  • Feedback: alert, toast, skeleton, progress
  • Navigation: button, dropdown-menu, navigation-menu

Example queries for demos: form-demo, card-with-form, dialog-demo

After Implementation

Always run audit:

shadcn___get_audit_checklist

Custom Styling & Theming

Shadcn provides structural foundation with default styling. For custom aesthetics:

Invoke frontend-design skill when:

  • User wants unique/distinctive visual style beyond default shadcn theme
  • Need custom typography, color schemes, or motion effects
  • Building landing pages or marketing sites requiring creative design
  • User mentions "custom styling", "unique design", "not generic"

Workflow:

  1. Use shadcn-management for component structure and composition
  2. Invoke frontend-design for visual customization:
  • Custom CSS variables in globals.css
  • Tailwind theme extensions in tailwind.config.js
  • Animation and micro-interaction enhancements
  • Typography and color refinements

Customization targets:

  • @/app/globals.css - CSS variables, custom fonts
  • tailwind.config.js - theme colors, fonts, animations
  • Component-level className overrides

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

同名技能的其他版本

有 7 个不同仓库或目录里都有叫 shadcn-management 的技能。它们内容并不相同,别混用: