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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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:
- 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.
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
Bình luận
- …
Thêm skill từ kho mã này
handle-pr-comments
91kGiúp agent của bạn xử lý từng bình luận review trên pull request GitHub, đề xuất cách sửa, áp dụng lựa chọn của bạn và đóng luồng thảo luận.
principle-encode-lessons-in-structure
91kDạy agent của bạn biến các lỗi lặp lại thành kiểm tra tự động, như quy tắc lint hoặc script, thay vì viết lại cùng một lời nhắc nhở.
storybook-startup-benchmark
91kGiúp agent của bạn đo thời gian Storybook khởi động và hiển thị câu chuyện đầu tiên, với các lần chạy lặp lại để so sánh công bằng.
storybook-upgrade
91kChỉ cho agent của bạn cách nâng cấp mọi package Storybook trong dự án lên phiên bản đã chọn, mỗi lần một phiên bản major.
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.