maintain-storybook
Keeps Storybook stories, fixtures, and catalog indexes aligned with the production UI and feature map, reconciling drift and classifying examples.
Pass rate with the skill minus without, same tasks, same model.
- Content Lift forced arm
- +25pp [0, +63]
- Trigger rate
- 100%
- Trials
- 24 · 8 tasks
- Model
- GLM-5.3-flash
- Measured
- 2026-10-15
Content Lift = the skill's instructions injected into the system prompt, so it measures what the content does once loaded, apart from whether the agent chooses to load it. Method →
Embed this score · live badge for your README
The badge shows the real benchmark number and updates itself when we re-bench — including the honest states (“did not trigger”, “not benched yet”). All badge options →
[](https://skillzbench.com/skills/maintain-storybook)[](https://skillzbench.com/skills/maintain-storybook)<a href="https://skillzbench.com/skills/maintain-storybook"><img src="https://skillzbench.com/api/badge/maintain-storybook.svg" alt="SkillzBench benchmark" height="20"></a>A/B outputs — median trial per arm
Chat harness (v2): the agent's final message without the skill (left) vs with it (right).
maintain-storybook--m1
Yes, the story matches the feature map — no changes needed.
Here's the alignment:
| Feature map element | Story coverage |
|---|---|
| User enters email and password | "enters valid credentials" |
| Clicks Login | Implied by "redirected to the dashboard" (the action happens) |
| Otherwise sees dashboard | "redirected to the dashboard" |
The only nuance: the story covers the happy path (valid credentials → dashboard) but doesn't cover the error case ("sees error if invalid"). That's fine if you have a separate story for invalid credentials, but if not, you may want to add one, e.g.:
"When a user enters invalid credentials, they see an error message and remain on the login page."
So: the existing story is consistent with the feature map, but the feature map's error scenario is currently untested/uncovered.
No, the story doesn't fully match the feature map.
The feature map for User Login covers two behaviors:
- Valid credentials → dashboard
- Invalid credentials → error shown
Your story only covers the happy path (valid credentials → dashboard). The invalid-credentials/error scenario is missing.
What needs to change:
- Keep the existing story as-is for the valid-credentials case (it matches behavior 1).
- Add a second story for the invalid case: user enters email/password, clicks Login, and an error is shown — with a fixture/mock that returns the error response (not a generic success), asserting the error state renders.
- If the story's
parameters.paperclipannotation claims full User Login capability coverage, narrow it to the valid-credentials scenario (or add a related reference once the error story exists), since one story alone doesn't certify the whole capability.
After adding the story, run node scripts/storybook-catalog.mjs --check and the map check tests so the generated feature index reflects the new example.
maintain-storybook--m2
Drift Analysis
Feature map capabilities:
- Add items to cart ✅ covered
- Apply promo code ✅ covered
- Pay with credit card ✅ covered
- Pay with PayPal ❌ missing
- See order summary ❌ missing
Suggested story updates
Add two new stories:
Checkout: User can pay with PayPalCheckout: User can see order summary
Resulting aligned story set:
- Checkout: User can add items to cart
- Checkout: User can apply promo code
- Checkout: User can pay with credit card
- Checkout: User can pay with PayPal
- Checkout: User can see order summary
No stories exist that lack a corresponding feature-map capability, so no removals or rewordings are needed — this is purely additive drift.
Drift identified between stories and the feature map:
The feature map lists four capabilities for Checkout:
- Add items ✅ covered
- Apply promo code ✅ covered
- Pay with credit card ✅ covered
- Pay with PayPal ❌ missing
- See order summary ❌ missing
Suggested story updates:
- Add a new story —
Checkout: User can pay with PayPal— covering the PayPal payment path (button/redirect flow, success and cancellation states if shipped). - Add a new story —
Checkout: User can see order summary— covering the order summary display (line items, totals, promo adjustments if applicable). - Keep existing stories — the three current stories map cleanly to the first three capabilities; preserve their exports and stable IDs.
- Update annotations — in each story's
parameters.paperclip, record the capability reference (primary for its own capability, related references where stories overlap, e.g. the promo code story may relate to order summary since discounts typically appear there). - Update the Checkout feature Overview page — regenerate via
node scripts/storybook-catalog.mjsso the guide lists all five capabilities in recipe order and no longer reports the two as missing examples.
Note: adding the PayPal and order summary stories should be verified against the actual production UI (real components with mocked external boundaries) rather than recreated duplicates, and marked unreviewed until rendering/interaction review confirms parity.
maintain-storybook--m3
A) Prototype — wireframe with placeholder data; exploratory, not matching production UI. B) Prototype — styled with real API integration, but not yet confirmed as matching production UI or stable; still exploratory. C) Prototype — rough mockup with dummy data; clearly exploratory. D) Story — production-ready, already in use, matches production UI; stable.
Classification based on production parity and stability:
A) Profile page wireframe with placeholder data — Prototype Exploratory: it's a wireframe (not the production UI) and uses placeholder data, so it doesn't establish parity with a shipped page.
B) Settings page component with real API integration — Story Production-ready: fully styled and wired to the real API boundary rather than simulated data, so it reflects the shipped implementation and is stable.
C) Search results rough mockup with dummy data — Prototype Exploratory: a rough mockup with dummy data matches neither the production UI nor real data behavior; it's a design exploration.
D) Notification bell component already in use — Story Production-ready: it's explicitly in production use, so it demonstrates the shipped capability and qualifies as stable coverage.
Note: if any of these are later added to the catalog, B and D should record their provenance (real API vs. mocked boundary) in their story parameters, and A and C should be retained as exploratory examples with explicit classification rather than counted as feature coverage.
maintain-storybook--m4
The missing story is Set privacy settings.
Proposed Story
Title: Set privacy settings
Description: As a user, I want to control who can see my profile information so that I can manage my privacy and decide what content is visible to other users.
Acceptance Criteria:
- Given I am on the privacy settings page, when I toggle a privacy option (e.g., profile visibility, contact info visibility), then the setting is saved and reflected immediately.
- Given I set my profile to "private", when another user who is not approved views my profile, then they see only limited information.
- Given I update privacy settings, when I revisit the page, then my saved preferences persist.
Fixtures:
-
User fixtures:
user_with_default_privacy— a user with default (public) privacy settingsuser_with_private_profile— a user with profile visibility set to "private"viewer_user— a second user used to verify visibility from another account's perspective
-
Privacy settings fixtures:
privacy_options— the list of available privacy toggles (e.g., profile visibility: public/friends/private; show email: on/off; show activity: on/off)
-
Test data:
saved_privacy_preferences— a pre-saved privacy configuration to verify persistence across sessions
Missing story: Set privacy settings — the feature map lists it, but no story exists for it (Edit name, Change password, and Upload avatar are covered).
Proposed story
File: ui/storybook/stories/user-profile/user-profile--set-privacy-settings.stories.jsx
Meta ID (stable): user-profile--set-privacy-settings
Title: User Profile/Set privacy settings
Classification: current feature coverage (primary reference: user-profile/privacy-settings; related: user-profile/profile-edit if the settings live on the same profile page)
Story description: Mount the shipped privacy settings UI (the production component/section used in the profile page) and demonstrate its principal states:
- Default — settings panel with current visibility values loaded from the mocked profile API (e.g. profile visibility, contact visibility, search indexing toggles).
- Saving — toggling a setting issues the expected API call with the correct payload shape (method, path, and field names matching the production contract); show the in-flight/pending state.
- Success — API returns success and the state transition is reflected (optimistic or confirmed update, success feedback).
- Error — API rejects the update (e.g. 403 or validation error); the UI shows the error message and retains the user's attempted value rather than silently reverting to a generic success mock.
Fixtures needed (shared modules in ui/storybook/support/):
support/profile-privacy-fixtures.js:privacySettingsDefault— baseline settings payload matching the production API response shape.privacySettingsUpdated— payload returned after a successful save.privacySettingsSaveError— error response (status + body) for the failure state.- Mock handlers for the load and save endpoints, including reset behavior between stories so interactions don't leak state.
Notes/limits to record in parameters.paperclip: the story mocks the external API boundary; it does not certify real persistence, permission enforcement, or provider behavior — those remain production verification obligations. Mark any state not exercised (e.g. session-expiry handling) as a remaining limit.
After adding the story, run node scripts/storybook-catalog.mjs to regenerate the index/feature pages, then node scripts/storybook-catalog.mjs --check and the map test suites.
maintain-storybook--m5
Order History displays a list of past orders, each with order number, order date, status, tracking number, total amount, and a reorder button.
Updated story text:
Order History displays a list of past orders, each with order number, order date, status, tracking number, a reorder button, and the total amount.
Notes:
- The story now matches the feature map's full field list (order number, order date, status, tracking number, reorder button).
- Total amount was retained, since it still fits the feature's scope — if the feature map should formally include it, consider adding "total amount" upstream so the map and story stay in sync.
- Per the storybook maintenance contract, after editing the story file run
node scripts/storybook-catalog.mjsto regenerate the catalog, and mark any fixtures/props for the newly listed fields (date, status, tracking number, reorder action) for review if the story's rendered example doesn't yet show them.
- Results are for the SkillzBench reference agent on GLM-5.3-flash. Switch models above — a skill can help one model and not another.
- Screen tier (1 trial per arm) is directional. Verified needs a full-tier run (≥ 8 tasks, ≥ 3 trials per arm) with the CI excluding zero.
- Task coverage: 8 generated tasks for this skill's category; a skill can shine elsewhere.