component-design
について
このスキルは、アトミックデザイン原則とコンポジションパターンを用いてReact/Vueコンポーネントを設計します。コンパウンドコンポーネントやレンダープロップなどのパターンを通じて、一貫性のある再利用可能なUIコンポーネント作成のガイダンスを提供します。スケーラブルなフロントエンド開発のためのコンポーネントライブラリを構築・構築する際にご利用ください。
クイックインストール
Claude Code
推奨/plugin add https://github.com/majiayu000/claude-skill-registrygit clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/component-designこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
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
GitHub リポジトリ
関連スキル
content-collections
メタThis skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.
creating-opencode-plugins
メタThis skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.
polymarket
メタThis skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.
cloudflare-turnstile
メタThis skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.
