phoenix-storybook
БесплатноБез исполняемых скриптовНе проверенConventions for creating, modifying, and reviewing production-faithful Storybook stories in the Phoenix frontend (js/app/stories, js/app/.storybook). Covers…
от Arize-ai★ 12 510 звёзд на GitHubОб этом скилле
Phoenix Storybook
Stories exist to show how production components look and behave. This file holds the rules that apply to every story change and routes to focused references for the rest. Read only the references your task needs; each one is self-contained.
Apply it alongside phoenix-frontend, phoenix-design, and
phoenix-typescript when those are relevant.
Core rules (always apply)
- Render production truth. Render the shipped component with its real types, providers, and behavior. Never write a lookalike inside a story file, and never invent content, states, controls, or behavior production does not support. If the production component cannot be rendered, delete the story rather than fake it. Mock only the narrow external boundary (network, Relay environment) that places the component in a real state.
- Three roots, grouped by subject. Every title starts with
Design System/<Subject>/…,Domains/<Surface>/…, orStorybook/…. Subjects are what a reader is thinking about (Tables, Overlays, Feedback), never abstraction tiers (foundations / core / patterns). The subject and surface lists live injs/app/stories/_meta/taxonomy.ts. Adding a root or subject is a taxonomy decision: raise it, do not invent one. - Titles match paths.
Design System/Overlays/Popoverlives atjs/app/stories/design-system/overlays/Popover.stories.tsx. Leaves are spaced words; no&anywhere in a title. - Tag every story on three axes, as plain string literals: provenance
(
legacy|updated), completeness (complete|incomplete, required onupdated), human review (reviewed|unreviewed). New or rewritten stories areupdated+unreviewed. Only a human reviewer setsreviewed— never an agent, however confident. - One entry per piece of content. A file with one sidebar story tags it
!dev. When all of a file's stories read well together on the Docs page, tag every one!devso the Docs page is the component's only entry. - Open on a compact
Default, then the option grids. A foundational component shows its whole accepted option space, including options that have no styling. - States are their own axis, crossed with other options in small
pairwise
OptionGrids — never appended as one more column beside content or variant options.pnpm lint:storybookrejects the mixed form. - Layers are shown open. A menu, popover, tooltip, or dialog story shows
the opened content, held open and non-dismissible; launch behavior gets
exactly one separate
Interactionstory. - Both themes, no horizontal scroll. Choose
themeLayoutdeliberately; any grid with more than one cell column takesthemeLayout: "column". - No superfluous comments or docblocks. A story docblock renders on the
Docs page; most stories need none, and a grid's labels are its
description. A
//comment must say something the file cannot. - Removal goes through review. Propose each deletion or consolidation in writing and get an explicit ruling first; no bulk pruning.
- Run
pnpm lint:storybook(fromjs/app) after any story change. It enforces titles, paths, tags,!dev,unused, Overview naming, and the state-axis rule. Passing it is necessary, not sufficient.
Route to the references
Read every row that matches the task. Paths are relative to this file.
| Task | Read |
|---|---|
| Authoring or rewriting a design-system component's stories | component-audit, option-grids, entry-shape |
| Component with variable text or a list of items | content-length |
| Menus, popovers, tooltips, dialogs, submenus, or anything held open | overlays |
| Toasts or toast regions | toasts |
Choosing themeLayout, fixing a story in Both mode, portaled-layer theming |
themes |
A story for one product surface (Domains/…), fixtures, mocks, many-state domain components |
domain-stories |
| Choosing where an entry goes, adding a subject or subfolder | taxonomy |
Creating, moving, or renaming a file or title; Overview pages; storySort |
files-and-titles |
Writing or checking tags, !dev, unused, autodocs |
tags |
| Writing a docblock or code comment in a story file | docblocks-and-comments |
| Merging entries, deleting stories, regenerating thumbnails | merging-and-removal |
Editing .storybook/ (manager, sidebar, preview, Docs page) |
storybook-config |
| Reviewing a PR or auditing a set of stories | review, then the rows above for |
Установить phoenix-storybook в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл phoenix-storybook?
Conventions for creating, modifying, and reviewing production-faithful Storybook stories in the Phoenix frontend (js/app/stories, js/app/.storybook). Covers sidebar taxonomy and titles, the tag vocabulary, entry shape, option grids, component audits, overlays, toasts, themes, domain stories, and Storybook configuration. Use whenever touching `.stories.*` or story `.mdx` files, story fixtures, decorators, helpers in `stories/utils`, thumbnails, `.storybook/` configuration, or a frontend change that adds, changes, moves, or removes stories — including small or mechanical story edits and PR reviews that touch stories.
Как установить скилл phoenix-storybook?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл phoenix-storybook запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic