writing-storybook-stories
Skill by Comfy-Org
Writes or updates Storybook stories for Vue components in the ComfyUI_frontend repository. It is for developers adding, reviewing, or debugging .stories.ts files and component demos.
Install writing-storybook-stories
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Comfy-Org/ComfyUI_frontend /tmp/ComfyUI_frontend && mkdir -p ~/.claude/skills && cp -r /tmp/ComfyUI_frontend/.claude/skills/writing-storybook-stories ~/.claude/skills/writing-storybook-storiesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install writing-storybook-stories in Claude Code
git clone --depth 1 https://github.com/Comfy-Org/ComfyUI_frontend /tmp/ComfyUI_frontend && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ComfyUI_frontend/.claude/skills/writing-storybook-stories ~/.gemini/antigravity-cli/skills/writing-storybook-storiesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install writing-storybook-stories in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through writing Storybook stories for Vue components in ComfyUI_frontend. It starts by reading the component source and nearby stories, then sorts each variation into either a control (a meta.args default or argTypes entry) or a named scenario export. The skill also covers title patterns for different component areas, common story shapes such as v-model inputs, slot content, store mocks, interaction-only states, and grid views, and how to map Figma states to stories.
The guidance is aimed at developers working in the ComfyUI_frontend repo. It asks them to match the closest sibling story's conventions, keep story files co-located with components, and run Storybook, typecheck, and lint before handing off. It includes a checklist and a list of things to avoid, such as guessing props or creating barrel files.
Written from the project's SKILL.md and checked against it.
What it can do
- Controls versus scenariosSorts each component variation into a meta.args control or a named story export.
- Title pattern matchingSuggests Storybook titles based on the component's folder and the closest sibling story.
- v-model story shapeShows a stateful render wrapper using ref, computed, and toRefs for v-model components.
- Slot-driven contentShows how to set slot content through args such as args.default in stories.
- Store and mock scenariosUses beforeEach to set mock store, billing, flag, or locale state for a story.
- Interaction-only statesUses a play function to reach states such as an open menu or a filled form.
- Variant grid storiesBuilds a single story that shows several prop variants side by side for review.
- Figma state mappingTurns named design states from a Figma link into controls or stories.
- Component-specific notesCovers widget mocks, width-constrained wrappers, and design-system import rules.
- Pre-handoff checksLists the pnpm storybook, typecheck, and lint steps to run before handing off.
What you need
- ComfyUI_frontend repository
- Storybook (@storybook/vue3-vite in most repo stories)
- pnpm
- Vue
Try asking
- Write a Storybook story file for this Vue component using the nearest sibling's title.
- Turn the Loading and Invalid states from this Figma link into Storybook stories.
- Review my .stories.ts file and suggest which variations should be controls instead of exports.
Good to know
- Stories under packages/design-system cannot import from @/ and must use package-relative imports.
- Pseudo-state parameters should only be used if the addon is already configured in the repo.
- Do not introduce dark: Tailwind variants in story wrappers; use semantic tokens instead.
- Do not create barrel files.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/writing-storybook-stories/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to writing-storybook-stories
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
writing-storybook-stories: common questions
What does the writing-storybook-stories skill produce?
It guides the assistant to write or update .stories.ts files for Vue components in ComfyUI_frontend. The source says to co-locate each story file with its component.
Does it require a Figma file?
No. The source says that if a Figma link is provided, the assistant should list the states to cover before writing stories.
Which checks does the skill recommend before handing off?
The checklist says to run pnpm storybook, pnpm typecheck, and pnpm lint. Stories under packages/design-system are checked with pnpm -C packages/design-system typecheck.
How do I install writing-storybook-stories?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is writing-storybook-stories free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is writing-storybook-stories safe to use?
It scores 76 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to writing-storybook-stories?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
