本文へ移動
cccskills
無料GitHub で公開

shadcn

Install, customize, and compose shadcn/ui components with design-system awareness. Covers CLI v4, custom registries, Tailwind v4 OKLCH theming, components.json, presets, and monorepo setup. Pairs with minoan-frontend-design for creative direction. Triggers on shadcn, install component, shadcn theme, OKLCH colors, custom registry.

インストール方法を見る

含まれるファイル(12)

  • SKILL.md4.2 KB
  • README.md262 B
  • references/cli-v4-reference.md3.2 KB
  • references/component-inventory.md3.2 KB
  • references/components-json-schema.md2.6 KB
  • references/customization-patterns.md3.2 KB
  • references/registry-authoring.md2.8 KB
  • references/tailwind-v4-migration.md2.6 KB
  • references/theming-oklch.md2.9 KB
  • scripts/audit-theme.sh3.3 KB
  • scripts/diff-all.sh1.5 KB
  • scripts/project-state.sh1.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Install, customize, and compose shadcn/ui components with design-system awareness. shadcn is a code distribution system — components are source files you own, not packages.

Workflow

Every shadcn interaction follows four steps: Orient, Install, Refine, Verify.

1. Orient

Read project state before any CLI operation. Run npx shadcn@latest info to get framework, installed components, aliases, icon library, and base library. Read components.json directly for theme config. Never guess configuration.

2. Install

Add components via CLI, never by copying from docs manually.

npx shadcn@latest add button card dialog    # Multiple at once
npx shadcn@latest add @namespace/component  # From custom registry
npx shadcn@latest add --dry-run button      # Preview before writing

Before re-adding an existing component, run npx shadcn@latest diff <name> to see upstream changes. Commit local customizations first — add overwrites files.

3. Refine

This is where craft lives. After every add, audit the component against the project's design system:

  • Typography: Does it use the project's font variables and scale? Replace any hardcoded font sizes.
  • Color tokens: Does it reference the project's CSS custom properties? Convert any raw color values to semantic tokens.
  • Spacing rhythm: Does it follow the project's spacing scale? Harmonize padding and margins.
  • Border radius: Does it use --radius from the theme? Shadcn sets this globally.
  • Animation: Does it use tw-animate-css classes, not tailwindcss-animate?
  • Composition: Create wrapper components that compose shadcn primitives. Edit base components only for structural changes.

When minoan-frontend-design is active, translate its creative direction into shadcn theme variables and component customizations.

4. Verify

Build the project to catch type errors. Visually inspect the component in context. Check dark mode. Check mobile.

Tailwind v4 Contract

shadcn v4 uses OKLCH color space with @theme inline — not HSL, not tailwind.config.ts.

:root {
  --primary: oklch(0.205 0.03 264.05);
  --primary-foreground: oklch(0.985 0 0);
}
@theme inline {
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
}

Leave tailwind.config blank in components.json for v4 projects. Use data-slot attributes for targeted styling. Use React.ComponentProps<> — forwardRef is removed.

Theming

Colors follow background + foreground pairs. The background suffix is omitted for the primary role: --primary (background), --primary-foreground (text on that background).

Extend with custom semantic tokens by adding both the CSS variable and the @theme inline mapping:

:root { --warning: oklch(0.84 0.16 84); --warning-foreground: oklch(0.14 0.04 84); }
@theme inline { --color-warning: var(--warning); --color-warning-foreground: var(--warning-foreground); }

Use cn() (clsx + tailwind-merge) for all class name composition.

References

Consult references/ on demand:

  • cli-v4-reference.md — Full command reference, flags, monorepo patterns. Read for any CLI operation.
  • components-json-schema.md — Configuration schema with all fields. Read when initializing or reconfiguring.
  • theming-oklch.md — OKLCH color system, CSS variable conventions, dark mode, custom colors. Read when theming.
  • registry-authoring.md — Custom registry creation, namespacing, auth, item types. Read when building registries.
  • tailwind-v4-migration.md — Breaking changes, upgrade path, tw-animate-css, data-slot. Read when migrating or troubleshooting.
  • component-inventory.md — 59 components by category. Read when choosing what to install.
  • customization-patterns.md — Wrapper composition, data-slot styling, diff tracking. Read when customizing components.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Search academic papers, build literature reviews, and synthesize research findings — combines Exa MCP (research_paper category, arxiv filtering) with arxiv-mcp-server for paper discovery, download, and deep analysis. Triggers on academic paper, literature review, research synthesis, arxiv, find papers, scholarly search.

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

This skill should be used when creating, auditing, or maintaining AGENTS.md files and Codex CLI configuration for any project—including initializing AGENTS.md for cross-agent compatibility (Codex, Cursor, Copilot, Devin, Jules, Amp, Gemini CLI), generating config.toml or .rules files, scaffolding .agents/skills/, converting CLAUDE.md to AGENTS.md, or auditing existing agent configs for bloat and staleness. Complementary to codex-orchestrator (which executes subagents; this skill creates the config files they consume).

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

Academic research skill for Biblical Hebrew, Semitic linguistics, cuneiform studies, and comparative Ancient Near Eastern research. Provides Sefaria API for Hebrew Bible, CDLI/ORACC for cuneiform databases, and web discovery via Omnisearch, Exa, Firecrawl, and Obscura for finding scholarly sources across JSTOR, Perseus, Persée, Google Scholar, and academia.edu. Triggers on Hebrew quotes, cuneiform, Sefaria, ANE research, Minoan, search for scholarship, find papers, literature review, scholarly search, academic search, Genesis/Tehom, Ugaritic, Talmudic sources, extract from PDF, OCR academic.

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

Build comprehensive ARCHITECTURE.md files following matklad's canonical guidelines — bird's-eye views, ASCII/Mermaid diagrams, codemaps, invariants, and layer boundaries. Triggers on document the architecture, create ARCHITECTURE.md, map this codebase, architectural overview.

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

Generate physically-based atmospheric scattering shaders — sky domes, planetary atmospheres, LUT-optimized pipelines, depth-aware post-processing. Four modes — sky-dome, atmosphere-post, planet, lut. Triggers on atmospheric scattering, sky shader, sunset rendering, planet atmosphere, Rayleigh scattering, Mie scattering, volumetric sky, sky dome, atmosphere post-processing, aerial perspective, transmittance LUT, sky rendering, realistic sky, planetary rendering.

日本語の概要は準備中です。原文の説明を表示しています。

tdimino/claude-code-minoan412026年9月28日 更新

tdimino のスキルをすべて見る

このスキルの問題を報告する