← Back to list

react-component
by rafazsh
⭐ 0🍴 0📅 Dec 29, 2025
SKILL.md
name: react-component description: Create React components following Atomic Design and project patterns. Use when asked to create a new component, build UI, or implement a feature with React.
React Component Creation
When to Use
- Creating new components
- Building UI features
- Implementing designs
- Adding new pages or views
Process
-
Determine Component Level (Atomic Design)
- Atom: Basic building blocks (Button, Input, Label)
- Molecule: Simple combinations (FormField, SearchBar)
- Organism: Complex UI sections (Header, Card, Modal)
-
Create Directory Structure
src/components/{level}/{component-name}/ ├── index.tsx # Component implementation ├── index.test.tsx # Unit tests └── index.stories.tsx # Storybook stories -
Implement Component following template
-
Add Tests using Testing Library
-
Create Storybook Story for documentation
File Location
| Level | Path |
|---|---|
| Atoms | src/components/atoms/{name}/ |
| Molecules | src/components/molecules/{name}/ |
| Organisms | src/components/organisms/{name}/ |
Template
See template.tsx for the base component structure.
Checklist
- TypeScript props interface defined
- JSDoc comments added
- Named export (not default)
- Default values for optional props
- Props sorted alphabetically
- Accessible (semantic HTML, ARIA if needed)
- Unit tests written
- Storybook story created
Example Usage
When asked: "Create a Card component"
- Determine it's an Atom or Molecule based on complexity
- Create
src/components/atoms/card/directory - Use the template structure
- Add props interface with children, variant, etc.
- Implement with TailwindCSS
- Write tests
- Create Storybook story
Score
Total Score
50/100
Based on repository quality metrics
✓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つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon