mcpField
B
building-react-web-application

building-react-web-application

github.com/cedmandocdoc開発085 回インストール今日更新
リポジトリ

building-react-web-application について

React Web アプリの構築や変更を行うコーディングエージェント向けのワークフロー Skill です。依頼に応じたガイドを案内し、Node.js 22.12 以上を要件とします。

主な機能

  1. 01依頼に応じた手順とガイドの選択
  2. 02React アプリのスキャフォールド支援
  3. 03ページ、UI、フォームのガイダンス
  4. 04データと非同期 UI のガイダンス
  5. 05認証とスタイルのガイダンス

活用シーン

  1. 01Vite + React アプリの作成
  2. 02ルートや機能ページの追加
  3. 03フォームと非同期状態の実装
  4. 04スタイルや認証の設定

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/cedmandocdoc/awesome-skills --skill building-react-web-application

インストール後、Claude Code で/building-react-web-applicationを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

agents/
openai.yaml
references/
creating-async-component.md
creating-form.md
creating-page.md
creating-ui-component.md
managing-data.md
managing-environment.md
managing-errors.md
managing-linting.md
managing-package-installs.md
managing-project-structure.md
managing-styling.md
scaffolding-application.md
setting-up-auth-guard.md
setting-up-authentication.md
web-app-contract.md
scripts/
detect-pm.cjs
install-packages.cjs
run-package.cjs

詳細

React ウェブアプリケーション

セットアップ

項目種別必須対象完了条件方法
Node.js 22.12+ユーザー必須すべてnode --version で 22.12 以降が表示されるhttps://nodejs.org
常設ルール自動必須新しいアプリのスキャフォールド作成ルートの AGENTS.md に次の行があるルートの AGENTS.md(存在しない場合は作成)と、AGENTS.md をインポートせずに存在するルートの CLAUDE.md に - `<target_path>` follows building-react-web-application; load it before changing code there. を追加します。この行があるファイルはスキップします

ワークフロー

  1. セットアップ — リクエストが対象とする セットアップ の各行を順番に確認します。「完了条件」を満たしていればスキップします。user の場合は、必須なら「方法」を表示して停止し、任意ならそれなしで続行します。ask の場合は、リクエストから回答できる項目を埋め、残りを1つのメッセージでまとめて質問し、それぞれの回答を記録します。auto と static の場合は実行します。
  2. コントラクト — web-app-contract.md を読みます。
  3. レシピ — レシピ の行に照らし合わせ、Read 列に記載されたすべてのドキュメントを開きます。
  • 複数の行にまたがるリクエスト(フォームを含む新しいルートなど)は、それぞれの行に該当します。

レシピ

意図例文参照先
セットアップ"Set up building-react-web-application", "Is building-react-web-application ready?"セットアップ — 各行についてワークフローのステップ 1 を実行し、その後、各行の状態を報告します
スキャフォールディング"Create a Vite + React app in apps/web", "Scaffold here", "Add linting and env handling to the app"scaffolding-application.md, managing-package-installs.md, managing-environment.md, managing-linting.md
構成"Where does this module belong?", "Two features need this hook", "Move this component to the right layer"managing-project-structure.md, managing-linting.md
ページ/機能"Add a settings page", "New orders feature", "Add a sidebar", "Add a /settings route"managing-project-structure.md, creating-page.md
UI プリミティブ"Add a Dialog to src/ui", "Build the select from the spec"managing-project-structure.md, creating-ui-component.md, managing-styling.md
データ"Fetch orders from the API", "Add a mutation for checkout", "Format the order date"managing-data.md, managing-environment.md
非同期 UI の状態"Show the orders list with loading and error states", "Load more orders on scroll"creating-async-component.md, managing-data.md
エラー/フィードバック"Show a toast when saving fails", "Report crashes", "Add a 404 page"managing-errors.md, managing-data.md
フォーム/マルチステップ"Add a profile form", "Make checkout a three-step form"creating-form.md, managing-data.md
スタイリング/テーマ"Apply the design tokens", "Change the brand colors", "Add dark mode", "Use Inter as the body font"managing-styling.md
認証"Add the sign-in flow", "Attach the token to API calls", "Sign out on 401"setting-up-authentication.md, managing-data.md
認証ガード"Protect the dashboard", "Require profile setup after sign-in", "Add an invite link", "Restrict the team pages to members"setting-up-auth-guard.md, setting-up-authentication.md, creating-page.md

コメント