スキル一覧に戻る
rafazsh

react-component

by rafazsh

0🍴 0📅 2025年12月29日
GitHubで見るManusで実行

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

  1. Determine Component Level (Atomic Design)

    • Atom: Basic building blocks (Button, Input, Label)
    • Molecule: Simple combinations (FormField, SearchBar)
    • Organism: Complex UI sections (Header, Card, Modal)
  2. Create Directory Structure

    src/components/{level}/{component-name}/
    ├── index.tsx          # Component implementation
    ├── index.test.tsx     # Unit tests
    └── index.stories.tsx  # Storybook stories
    
  3. Implement Component following template

  4. Add Tests using Testing Library

  5. Create Storybook Story for documentation

File Location

LevelPath
Atomssrc/components/atoms/{name}/
Moleculessrc/components/molecules/{name}/
Organismssrc/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"

  1. Determine it's an Atom or Molecule based on complexity
  2. Create src/components/atoms/card/ directory
  3. Use the template structure
  4. Add props interface with children, variant, etc.
  5. Implement with TailwindCSS
  6. Write tests
  7. Create Storybook story

スコア

総合スコア

50/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つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です