本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)91k · #1328

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/storybookjs/storybook/blob/next/code/lib/claude-plugin/skills/ui-workflow/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“商品カードにローディング状態を追加し、そのストーリーを更新して、確認できるレビューを準備してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

AIは決まった順序に従います。既存のコンポーネントを確認し、ストーリーを書いたり更新したりし、ストーリーテストを実行して、レビューを準備します。ステップによっては、正しいパッケージのフォルダーから動いているStorybookの開発サーバーが必要です。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Prerequisites:

  1. Storybook must be installed in the project. Invoke the /storybook-init skill to set up Storybook, but only if the user explicitly invoked this skill and approves a Storybook installation.
  2. 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-upgrade skill 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:

  1. 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 existing package.json Storybook 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.
  2. 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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル