component-design
БесплатноБез исполняемых скриптовНе проверенDesign React/Vue components following atomic design and composition patterns. Use when creating UI components.
Об этом скилле
Component Design Skill
Purpose
Create consistent, reusable UI components.
Atomic Design
Reference: patterns/atomic-design.md
Hierarchy
- Atoms: Basic elements (Button, Input, Label)
- Molecules: Simple groups (FormField, SearchBox)
- Organisms: Complex sections (Header, Form, Card)
- Templates: Page layouts
- Pages: Specific instances
Component Patterns
Reference: patterns/composition.md
Compound Components
<Select>
<Select.Trigger />
<Select.Content>
<Select.Item value="1">Option 1</Select.Item>
</Select.Content>
</Select>
Render Props
<DataFetcher url="/api/users">
{({ data, loading }) => (
loading ? <Spinner /> : <UserList users={data} />
)}
</DataFetcher>
Custom Hooks
function useUser(id: string) {
const [user, setUser] = useState(null);
const [loading, setLoading] = useState(true);
// ...
return { user, loading, error };
}
Props Interface
interface ButtonProps {
/** Visual variant of the button */
variant?: 'primary' | 'secondary' | 'ghost';
/** Size of the button */
size?: 'sm' | 'md' | 'lg';
/** Whether button is disabled */
disabled?: boolean;
/** Click handler */
onClick?: () => void;
/** Button content */
children: React.ReactNode;
}
Component Template
Use: templates/component-template.tsx
State Management
Reference: patterns/state-management.md
Decision Tree
- UI-only state →
useState - Complex local state →
useReducer - Shared between siblings → Lift to parent
- Shared across app → Context or global store
- Server state → React Query/SWR
Установить component-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл component-design?
Design React/Vue components following atomic design and composition patterns. Use when creating UI components.
Как установить скилл component-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл component-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies 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…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic