← スキル一覧に戻る

scaffolding-components
by sorfeb
⭐ 0🍴 0📅 2026年1月5日
SKILL.md
name: scaffolding-components description: | Scaffold new React components with proper file structure, CSS modules, audio integration, and Storybook stories. Use when creating new components, scaffolding UI, or when user says "create component", "new component", "scaffold", "generate component", or "add component".
Component Scaffolding
Generate properly structured React components following project conventions.
Workflow
Copy and track progress:
- [ ] Step 1: Create component directory
- [ ] Step 2: Create main component file (.tsx)
- [ ] Step 3: Create CSS module (.module.css)
- [ ] Step 4: Create barrel export (index.ts)
- [ ] Step 5: Create Storybook story (.stories.tsx) - if major component
- [ ] Step 6: Verify audio integration
- [ ] Step 7: Add responsive styles
Directory Structure
src/components/ComponentName/
├── ComponentName.tsx # Main component
├── ComponentName.module.css # Scoped styles
├── ComponentName.stories.tsx # Storybook (optional)
└── index.ts # Barrel export
Component Template
See TEMPLATES.md for ready-to-use templates.
Quick Generation
For a component named FeatureCard:
- Create directory:
src/components/FeatureCard/ - Use template: Copy from TEMPLATES.md, replace
ComponentNamewithFeatureCard - Add audio: Import
useAudioManager, add to all interactions - Add responsive: Include 768px media query
- Create story: If user-facing, create Storybook story
Audio Integration Checklist
Every interactive element needs audio:
| Interaction | Sound Type |
|---|---|
| Button click | click |
| Card hover | hover |
| Navigation | navigation |
| Back action | back |
| Panel open | panel |
| Success | achievement |
File Naming Rules
- Component:
PascalCase.tsx - CSS Module:
PascalCase.module.css - Story:
PascalCase.stories.tsx - Index:
index.ts(lowercase)
スコア
総合スコア
55/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です

