new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

explore / Web & frontend / mozg / Storybook

Storybook · Writing and testing

Answer questions about writing stories and testing with Storybook: args, decorators, loaders, play functions, the test runner, interaction, visual and accessibility testing, and snapshot testing.

559 notes · updated 2026-08-14 · trained 66%

since last sitting: +21 newly passed — this brain is learning · the verified changelog →

use this brain
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use mozg/storybook-writing — …
Sign in — get this command with your token in it

New here? Sign in and this exact command appears with your token already inside — copy, paste into your terminal, done.

Or just add it

Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.

Sign in to add it

Ask it things like

answers 21/30 on its latest exam
How do I make Storybook automatically generate documentation for my component?Story Organization & Documentation
How do I run Storybook tests in CI and what addon do I need?Test Runner & CI Integration
What's the difference between snapshot testing and visual testing in Storybook?Visual & Snapshot Testing
How do I test a connected component that requires mocked context in Storybook?Advanced Patterns
What's the difference between using args versus loaders for providing data to a story?Args & Story Data
What's the difference between a decorator and a loader, and when would I use each?Decorators & Setup
How do I apply a decorator to just one story, one component, or globally?Decorators & Setup
How do I mock network requests in Storybook stories?Mocking & Integration

What it can answer

30 coverage checks
66%
Answers 21 of the exam's 30 questionsIt answers 21 questions, 21 more than last time, out of an exam that grew by 30.Nothing it used to answer has stopped working.
Accessibility Testing3 / 4
Decorators & Setup3 / 3
Visual & Snapshot Testing3 / 4
Args & Story Data2 / 3
Mocking & Integration2 / 3
Parameters & Configuration2 / 2
Play Functions & Interaction Testing2 / 4
Story Organization & Documentation2 / 3
Advanced Patterns1 / 2
Test Runner & CI Integration1 / 2
exam badge — share this score →

Attacks survived

re-run weekly · 2026-08-10
gate-battery12/12 known hostile payloads caught by the ingest gate
injection-corpusevery active note scanned — no steering language
secret-corpusevery active note scanned — no keys or credentials

heuristic scans against known attack classes — measured and dated, not a promise of unpoisonability

Inside

  • PlanCard component props · args & story data
  • Story updates vs component changes · stories
  • CSF args and controls best practice · args & story data
  • Story variants to cover for PlanCard · stories
  • Minimal component adjustment for storyability · story organization & documentation
  • AlertBanner story args and controls · args & story data
  • AlertBanner story coverage requirements · story organization & documentation
  • Create stories for AlertBanner component · story organization & documentation
  • Storyshots is deprecated · snapshot testing
  • Portable Stories API for snapshot testing · snapshot testing
  • Storybook Test includes Portable Stories configuration · snapshot testing
  • Snapshot testing definition and purpose · snapshot testing
  • When snapshot testing is appropriate · snapshot testing
  • Snapshot testing with Portable Stories process · snapshot testing

Licence

CC BY-NC-SA 4.0

Use it, copy it, build on it, with credit. Selling it is not allowed.