Skip to content

laguagu/claude-code-nextjs-skills / skills/shadcn

shadcn

Verified

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.

FileKindSize
SKILL.mdskill md22.1 KB
agents/openai.yamlconfig238 B
assets/shadcn-small.pngbinary1.0 KB
assets/shadcn.pngbinary3.8 KB
assets/showcase/color-pair.tsxother3.4 KB
assets/showcase/preview-states.cssother425 B
assets/showcase/state-matrix.tsxother1.6 KB
cli.mdmarkdown21.0 KB
customization.mdmarkdown6.7 KB
design-system-page.mdmarkdown15.4 KB
design-system.mdmarkdown21.5 KB
evals/evals.jsonconfig10.4 KB
mcp.mdmarkdown3.5 KB
registry.mdmarkdown8.8 KB
rules/base-vs-radix.mdmarkdown7.3 KB
rules/chat.mdmarkdown17.2 KB
rules/composition.mdmarkdown4.8 KB
rules/forms.mdmarkdown5.0 KB
rules/icons.mdmarkdown1.9 KB
rules/styling.mdmarkdown4.6 KB
scripts/showcase-coverage.mjsscript1.6 KB

scripts/showcase-coverage.mjs

View on GitHub
#!/usr/bin/env node
// Lists installed UI components that no file in the showcase imports.
// Usage: node showcase-coverage.mjs <ui-dir> <ui-alias> <showcase-dir...>
import { readdirSync, readFileSync, statSync } from "node:fs"
import { basename, extname, join, resolve } from "node:path"

const [uiArg, uiAlias, ...roots] = process.argv.slice(2)

if (!uiArg || !uiAlias || roots.length === 0) {
  console.error("Usage: node showcase-coverage.mjs <ui-dir> <ui-alias> <showcase-dir...>")
  process.exit(1)
}

const uiDir = resolve(uiArg)

const components = readdirSync(uiDir)
  .filter((file) => [".tsx", ".ts"].includes(extname(file)))
  .map((file) => basename(file, extname(file)))

function walk(path) {
  if (statSync(path).isFile()) {
    return [path]
  }

  return readdirSync(path).flatMap((entry) => {
    const child = join(path, entry)
    // Skip the ui directory so components don't count as using each other.
    if (entry === "node_modules" || child === uiDir) {
      return []
    }
    return walk(child)
  })
}

const source = roots
  .map((root) => resolve(root))
  .flatMap(walk)
  .filter((file) => /\.(tsx?|jsx?)$/.test(file))
  .map((file) => readFileSync(file, "utf8"))
  .join("\n")

const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
const importPrefix = escapeRegExp(uiAlias.replace(/\/$/, ""))
const missing = components.filter(
  (name) => !new RegExp(`["']${importPrefix}/${escapeRegExp(name)}["']`).test(source)
)

console.log(
  `${components.length - missing.length}/${components.length} components shown.`
)

if (missing.length > 0) {
  console.log(`Missing: ${missing.join(", ")}`)
  process.exit(1)
}
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall