syahiidkamil/Software-Engineer-AI-Agent-Atlas / .claude/skills/shadcn
shadcn
VerifiedManages 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.
| File | Kind | Size |
|---|---|---|
| LICENSE.md | markdown | 1.0 KB |
| SKILL.md | skill md | 21.1 KB |
| agents/openai.yml | config | 238 B |
| assets/shadcn-small.png | binary | 1.0 KB |
| assets/shadcn.png | binary | 3.8 KB |
| assets/showcase/color-pair.tsx | other | 3.4 KB |
| assets/showcase/preview-states.css | other | 425 B |
| assets/showcase/state-matrix.tsx | other | 1.6 KB |
| cli.md | markdown | 16.9 KB |
| customization.md | markdown | 6.1 KB |
| design-system-page.md | markdown | 15.4 KB |
| design-system.md | markdown | 21.1 KB |
| evals/evals.json | config | 10.4 KB |
| mcp.md | markdown | 3.4 KB |
| registry.md | markdown | 8.6 KB |
| rules/base-vs-radix.md | markdown | 6.8 KB |
| rules/chat.md | markdown | 17.2 KB |
| rules/composition.md | markdown | 4.8 KB |
| rules/forms.md | markdown | 4.7 KB |
| rules/icons.md | markdown | 1.9 KB |
| rules/styling.md | markdown | 4.6 KB |
| scripts/showcase-coverage.mjs | script | 1.4 KB |
assets/showcase/state-matrix.tsx
View on GitHubimport * as React from "react"
import { cn } from "@/lib/utils"
const defaultStates = [
"default",
"hover",
"focus",
"active",
"disabled",
] as const
export function StateMatrix<Row extends string>({
rows,
states = defaultStates,
render,
className,
}: {
rows: readonly Row[]
states?: readonly string[]
render: (row: Row, state: string) => React.ReactNode
className?: string
}) {
return (
<div className={cn("w-full overflow-x-auto", className)}>
<table className="w-full border-separate border-spacing-x-2 border-spacing-y-3">
<thead>
<tr>
<th />
{states.map((state) => (
<th
key={state}
scope="col"
className="text-left font-mono text-xs font-normal text-muted-foreground"
>
{state}
</th>
))}
</tr>
</thead>
<tbody>
{rows.map((row) => (
<tr key={row}>
<th
scope="row"
className="pr-4 text-left font-mono text-xs font-normal text-muted-foreground"
>
{row}
</th>
{states.map((state) => (
<td key={state}>{render(row, state)}</td>
))}
</tr>
))}
</tbody>
</table>
</div>
)
}
// Spread onto a component to pin a state without interaction.
export function previewState(state: string) {
if (state === "disabled") {
return { disabled: true }
}
if (["hover", "focus", "active"].includes(state)) {
return { "data-preview": state }
}
return {}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |