smithery.ai

frontend-component

新規 React コンポーネントの追加手順。コンポーネント追加時や「Button を追加して」と依頼されたときに使用する。

First seen Mar 19, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,172 B
  • docs SUMMARY.md 181 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 4 installs

SKILL.md

新規コンポーネント追加

手順

  1. 配置: src/components/<Name>.tsx にファイルを作成。関数コンポーネントで、props は型付きで定義する。
  2. スタイル: Tailwind のユーティリティクラスを使用する。
  3. ストーリー: src/components/<Name>.stories.tsx を作成。Jotai を使う場合は ProvidercreateStore() でデコレータをかける。
  4. 単体テスト: src/components/<Name>.test.tsx を作成。within(render(...).container) でクエリをスコープする。Jotai 利用時は Provider でラップする。
  5. export: 必要に応じて src/components/index.ts などから re-export する。

ひな形

  • コンポーネント: 関数、props 型、return で JSX。
  • ストーリー: Meta<typeof Component>, StoryObj, Default ストーリーを 1 つ。
  • テスト: describe, it, render + within(container) で 1 件以上。