Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)91k · #1328

ui-workflow

Skill này làm gì

Skill này hướng dẫn AI thực hiện thay đổi giao diện trong một dự án dùng Storybook. Nó bao gồm tái sử dụng component, viết và cập nhật story, chạy test story và chuẩn bị review. Skill dành cho các đội front-end làm việc với Storybook.

Khi nào nên dùng

  • ✓Khi bạn muốn một thay đổi giao diện được thực hiện và kiểm tra qua các story Storybook.
  • ✓Khi bạn tạo, thay đổi hoặc xóa một component frontend và cần giữ story của nó đồng bộ.
  • ✓Khi bạn muốn đội review trực quan một thay đổi giao diện.

Liên kết skill

https://github.com/storybookjs/storybook/blob/next/code/lib/claude-plugin/skills/ui-workflow/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/storybookjs/storybook/blob/next/code/lib/claude-plugin/skills/ui-workflow/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thêm trạng thái đang tải vào thẻ sản phẩm của chúng tôi, cập nhật story của nó, và chuẩn bị một bản review để tôi xem.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI theo một thứ tự cố định: tra cứu component có sẵn, viết hoặc cập nhật story, chạy test story, rồi chuẩn bị review. Một số bước cần máy chủ phát triển Storybook chạy từ đúng thư mục package.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

Nó có cần máy chủ Storybook đang chạy không?

Một số bước cần. Skill nói máy chủ phát triển phải chạy từ cùng thư mục với các lệnh Storybook.

Nếu sandbox chặn cổng thì sao?

Skill nói nên xin quyền nâng cao cho các lệnh Storybook, vì máy chủ phát triển có thể lỗi theo cách khó hiểu.

Nó có cài Storybook không?

Chỉ khi bạn đã gọi rõ skill này và chấp thuận việc cài đặt.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
91k
Vị trí xếp hạng
#1328
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự