agentleFS
podopodo/design-agent-skills/skills/format-storybook/SKILL.md

format-storybook

Skill32 starsChanged 6 months agoMITView on GitHub

Structures and organizes Storybook files for scalability using battle-tested patterns from Cassondra Roberts' "A Storybook format that scales with you". Covers story definitions, template composition, controls/args, visual regression with Chromatic, component documentation, and CSF conventions. Activates on any Storybook question — file structure, controls, args, or component documentation.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

format-storybook

Catalogue stub — full skill: mikemai2awesome/agent-skills

<!-- das:install:start — generated from stub.yaml by `npm run generate`; edit stub.yaml, not this block -->

Decision tree

  1. Is the full skill already installed?
    • Global: f=~/.agents/skills/format-storybook/SKILL.md; [ -f "$f" ] && ! grep -q "^das:" "$f" && echo "installed" || echo "pointer"
    • Project: f=.agents/skills/format-storybook/SKILL.md; [ -f "$f" ] && ! grep -q "^das:" "$f" && echo "installed" || echo "pointer"
    • installed → the skill is installed as format-storybook, invoke it and proceed
    • pointer → go to step 2
  2. Detect scope, then install:

    [ -e ~/.agents/skills/format-storybook ] && echo "global" || echo "project"

    Global:

    npx skills add mikemai2awesome/agent-skills --skill format-storybook -g -y

    Project:

    npx skills add mikemai2awesome/agent-skills --skill format-storybook -y

    Claude Code: send a command as a chat message starting with ! to run it without leaving the conversation.

Heads-up

  • License: MIT
<!-- das:install:end -->

Invoke after install

  • Skill name: format-storybook
  • Trigger phrases: "Storybook", "Storybook story", "Chromatic visual regression", "CSF story format"

What it does

Enforces scalable, maintainable Storybook patterns across a component library:

  • File structure — co-locate stories with components; stories/component.stories.js + stories/template.js + optional component.docs.mdx
  • Template composition — import child component templates instead of duplicating markup; single source of truth per component
  • Controls & args — progressive disclosure: sensible defaults + optional controls for edge cases; arg types and descriptions
  • Visual regression — Chromatic integration patterns; snapshot testing strategy
  • CSF conventions — Component Story Format 3.0; default export metadata; named story exports
  • Documentation — MDX docs pages; component API tables; usage examples; do/don't patterns

When NOT to use

  • React Native Storybook stories specifically → use storybook-rn-skill
  • Design token generation → use design-tokens-skill
  • Component implementation from scratch → use shadcn-ui or baseline-ui

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.