ui-workflow
できること
このスキルは、Storybookを使うプロジェクトでUIの変更を行うようAIを導きます。コンポーネントの再利用、ストーリーの作成と更新、ストーリーテストの実行、レビューの準備を扱います。Storybookを使うフロントエンドチーム向けです。
使う場面
- ✓Storybookのストーリーで確認しながら、UIの変更を行いたいとき。
- ✓フロントエンドのコンポーネントを作成、変更、削除し、そのストーリーを同期させる必要があるとき。
- ✓UIの変更の見た目のレビューを、チームと共有したいとき。
スキルのリンク
https://github.com/storybookjs/storybook/blob/next/code/lib/claude-plugin/skills/ui-workflow/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“商品カードにローディング状態を追加し、そのストーリーを更新して、確認できるレビューを準備してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは決まった順序に従います。既存のコンポーネントを確認し、ストーリーを書いたり更新したりし、ストーリーテストを実行して、レビューを準備します。ステップによっては、正しいパッケージのフォルダーから動いているStorybookの開発サーバーが必要です。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Prerequisites:
- Storybook must be installed in the project. Invoke the
/storybook-initskill to set up Storybook, but only if the user explicitly invoked this skill and approves a Storybook installation. - Storybook must be 11.0 or later. An 11.0 prerelease (
11.0.0-alpha.x) or a canary build (0.0.0-pr-*) also counts. Treat a request to set up or install Storybook as approval to perform any required Storybook upgrade. For other requests, invoke the/storybook-upgradeskill only after the user explicitly approves an upgrade.
Run the Storybook dev server and every Storybook CLI command from the same working directory: the package where Storybook is installed (in a monorepo often a leaf package such as packages/ui).
If the sandbox blocks network access or ports, request escalated permissions for Storybook CLI commands; otherwise the dev server can fail in confusing ways (for example, it finds no free port to bind to).
Run npx storybook skills ui-workflow and read the output in its entirety to get the mandatory, ordered workflow for working on UI changes, writing stories, and keeping stories in sync with every frontend component you create, modify, or delete. This workflow explains how to write stories, preview stories, and display a curated Storybook review.
Some commands require a running Storybook dev server:
- Reuse a dev server that already serves this project's Storybook (probe the URL, usually
http://localhost:6006) instead of starting a second one. Otherwise start one in the background, using the project's preferred package manager and existingpackage.jsonStorybook script (e.g.npm run storybook) instead of inventing a new command whenever possible. Wait until the URL responds before running commands that need it. - The dev server is part of the deliverable, not a temporary verification tool: leave it running when your work is done so the user can keep browsing stories. Never kill it after verification.
よくある質問
稼働中のStorybookサーバーが必要ですか?
一部のステップでは必要です。スキルは、開発サーバーがStorybookのコマンドと同じフォルダーで動いている必要があると述べています。
サンドボックスがポートを遮断したら?
開発サーバーは紛らわしい形で失敗することがあるため、Storybookのコマンドに対して昇格した権限を求めるよう、スキルは述べています。
Storybookをインストールしますか?
このスキルを明示的に呼び出し、インストールを承認した場合のみです。
詳細
作者による元の説明
Storybook's workflow for UI changes in a project with Storybook - look up the components to reuse, write and update stories, run story tests, and publish a review of the result. Also shows existing components or stories in a review. Use when the project's agent instructions (such as AGENTS.md) or the user ask for it.
repo: storybookjs/storybook
人気
- GitHubのスター
- 91k
- ランキング
- #1328
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
handle-pr-comments
91kエージェントが、GitHubのプルリクエストのレビューコメントを1つずつ処理できるよう支援します。修正案を提示し、あなたの選択を適用して、スレッドを解決済みにします。
principle-encode-lessons-in-structure
91kエージェントが、繰り返される間違いをメモに書き続けるのではなく、リントルールやスクリプトのような自動チェックに変えるよう教えます。
storybook-startup-benchmark
91kエージェントが、Storybookが起動して最初のストーリーを表示するまでの時間を測り、公平な比較のために繰り返し実行できるよう支援します。
storybook-upgrade
91kエージェントが、プロジェクト内のすべてのStorybookパッケージを、選んだバージョンに一度に1つのメジャーバージョンずつ、アップグレードする方法を示します。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。