/claude-kit:component-design [component name and purpose]from Claude Kit SDLC
Guides creating or restructuring UI components with architecture, patterns, accessibility, and design-system rules. Use when adding a new component, splitting a large one, or making one reusable.
Ships in Claude Kit SDLC. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Design and implement the component: $ARGUMENTS.
Read the design system: Read .claude/rules/ui-design-system.md (foundations & index) and .claude/rules/ui-components.md (component standards — cards, badges, buttons, form controls, compound components), both installed as React overlay rules — or a project's docs/references/ui/ui-design-system.md equivalent. Read whichever is present.
Check existing components: Check the project's component directory for available UI primitives and established patterns. Search for similar components to follow the project's conventions.
Determine component type:
| Type | Location | Naming | Export |
|---|---|---|---|
| UI primitive | Project's UI primitives directory | Follow project naming convention | Add to barrel export if applicable |
| Compound component | Project's UI primitives directory | Follow project naming convention | Add to barrel export if applicable |
| Feature component | Project's feature directory | Follow project naming convention | Named export |
| Page sub-component | Same file as page or shared directory | Follow project naming convention | Not exported |
Design the component API:
on<Event>, handle<Event>, etc.)interface MetricCardProps {
title: string;
value: string | number;
trend?: { direction: 'up' | 'down' | 'flat'; percentage: number };
status?: 'green' | 'amber' | 'red';
className?: string;
onClick?: () => void;
}
interface Props {
title: string
value: string | number
trend?: { direction: 'up' | 'down' | 'flat'; percentage: number }
status?: 'green' | 'amber' | 'red'
}
Implement following these rules:
When building a compound component (e.g., Card, DetailPanel):
Example:
<Card>
<CardHeader>Title</CardHeader>
<CardContent>Body</CardContent>
</Card>
nav, main, section, article, button, etc.)Register the component: If it's a UI primitive or compound component, add it to the project's barrel export or component registry.
Verify: Run the project's linter, type checker, and build to confirm all checks pass.
.claude/rules/ui-design-system.md (foundations) + .claude/rules/ui-components.md + .claude/rules/ui-layout-and-motion.md (React overlay) or docs/references/ui/ui-design-system.md (if present).claude/rules/ux-patterns.md + .claude/rules/ux-dashboard-patterns.md (React overlay) or docs/references/ui/ux-patterns.md (if present).claude/rules/frontend-best-practices.md, .claude/rules/responsive-and-accessibility.mdThe following examples use React/TypeScript syntax, but the principles apply to any component-based framework. Adapt patterns to your project's stack (Vue, Svelte, Angular, etc.).
import { cn } from '@/lib/utils';
import { Badge } from '@/components/ui';
interface StatusIndicatorProps {
status: 'green' | 'amber' | 'red';
label: string;
className?: string;
}
export function StatusIndicator({ status, label, className }: StatusIndicatorProps) {
return (
<div className={cn('flex items-center gap-2', className)}>
<span className={cn('w-2 h-2 rounded-full', {
'bg-green-500': status === 'green',
'bg-amber-500': status === 'amber',
'bg-red-500': status === 'red',
})} />
<Badge variant={status === 'red' ? 'destructive' : status === 'amber' ? 'warning' : 'success'}>
{label}
</Badge>
</div>
);
}
import * as Dialog from '@radix-ui/react-dialog';
import { Button } from '@/components/ui';
import { X } from 'lucide-react';
interface ConfirmDialogProps {
title: string;
description: string;
onConfirm: () => void;
trigger: React.ReactNode;
}
export function ConfirmDialog({ title, description, onConfirm, trigger }: ConfirmDialogProps) {
return (
<Dialog.Root>
<Dialog.Trigger asChild>{trigger}</Dialog.Trigger>
<Dialog.Portal>
<Dialog.Overlay className="fixed inset-0 bg-black/40" />
<Dialog.Content className="fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white rounded-lg p-4 w-full max-w-md">
<Dialog.Title className="text-sm font-semibold text-gray-900">{title}</Dialog.Title>
<Dialog.Description className="text-sm text-gray-500 mt-2">{description}</Dialog.Description>
<div className="flex justify-end gap-3 mt-4">
<Dialog.Close asChild>
<Button variant="ghost" size="sm">Cancel</Button>
</Dialog.Close>
<Button size="sm" onClick={onConfirm}>Confirm</Button>
</div>
<Dialog.Close asChild>
<button className="absolute top-3 right-3" aria-label="Close">
<X className="w-4 h-4 text-gray-400" />
</button>
</Dialog.Close>
</Dialog.Content>
</Dialog.Portal>
</Dialog.Root>
);
}
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ajyadav013/claude-kit --plugin claude-kit127 skills in this plugin
/accessibility-reviewUI accessibility (WCAG) review — keyboard operability, focus, ARIA semantics, color contrast, touch targets. Returns prioritized fixes. Distinct from performance/visual review./alembic-migrationsAlembic migration setup and patterns for async SQLAlchemy — async engine + run_sync in env.py, autogenerate, RLS/multi-tenant migrations. Use for alembic init, writing migrations, or debugging migration errors./anthropic-vertex-integrationClaude on Vertex AI via the AnthropicVertex SDK — lazy ADC client init, env-based project/region resolution, async helpers, backoff retry. Use when calling Claude via GCP Vertex AI (not direct Anthropic API)./api-and-interface-designStable API and interface design patterns. Use when designing REST/GraphQL endpoints, module boundaries, type contracts between modules or frontend/backend, or changing public interfaces./api-integrationWire the app to a backend API — data fetching, caching, error handling, loading states. Use when connecting to an endpoint, adding a fetch layer, or fixing API error and loading behaviour. React-query detail lives in tanstack-react-query-patterns./api-pagination-filtering-sortingHTTP query parameter conventions for pagination, filtering, sorting, and search with standardized response metadata. Use when designing list endpoints or building repositories that turn query params into SQL.Other plugins' skills for the same job