/saschb2b-skills:storybook-pentestfrom saschb2b-skills
Pentests Storybook components with two passes: stress-testing for breakage under extreme inputs and usability heuristics for fitness-for-purpose. Writes findings with screenshots, severity, and reproducible URLs.
Ships in saschb2b-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A UI/UX pentester for Storybook. Stories showcase components in isolation, but the variants a team writes are the happy paths. This skill runs two passes against them. The attack pass asks does it break: the edge cases that fail in production (long German compounds, empty lists, RTL, forced colors, a keyboard user in a modal) usually have no story. The value pass asks does it do its job: a component can survive every attack and still be the wrong button, with an unguessable control, a generic error, or a promise its name makes and its behavior does not keep. Both write every confirmed failure into a findings bundle with screenshot evidence, severity, and a reproducible URL, so a human or another agent can fix the product. The depth lives in the OKF bundle in references/; this file is the procedure.
Break and serve are different questions, and the skill answers both. Breakage is mostly objective; fitness for purpose is partly judgment, so the value pass is grounded in named evaluation methods (Nielsen's heuristics, the cognitive walkthrough, Jakob's Law, published content rules) and every value finding cites the method it rests on. Two honesty rails hold throughout. Automated scanning has a measured ceiling (axe-core catches at most about 57 percent of WCAG issues by Deque's own figure; the GDS audit found the best tool caught 40 percent of 142 seeded barriers), so the automated axes give cheap breadth and the simulation and value axes are where the skill earns the word pentest. And every finding carries a confidence: confirmed for objective breakage and rule-cited content, needs-review for the genuine judgment calls, which are surfaced as questions for the human, never asserted as defects. Calibration in a11y-scan.md; the confidence rule in finding.md.
Never assume one integration; detect, then use the highest layer available. The detection ladder and per-layer capabilities are in references/surface/:
/mcp endpoint, SB 9.1.16+, Vite): curated docs, changed-story detection, test execution with a11y. No screenshots, no arg mutation, no raw enumeration./index.json, fallback /stories.json): the ground-truth story list with tags. Works on any SB 6.4+ including static builds.iframe.html?id=X&args=...&globals=...): render any story in any state. URL args are restricted to alphanumerics, space, underscore, dash, so hostile payloads enter via play functions or Playwright, not the URL.npx vitest --project=storybook, npx test-storybook --url ... --json): the project's own test suites with JSON output.Invoke as /storybook-pentest <command> [target].
| Command | What it does |
|---|---|
sweep | Pentest the whole Storybook. Enumerate, sample WCAG-EM style (structured sample plus a 10 percent random check plus complete flows), run the planned axes, report. Record what was sampled and what was skipped. |
component <name> | One component, exhaustive. Every story, every applicable axis. |
group <path> | A title-prefix scope, for example Design System/Forms. |
axis <name> [scope] | One axis across a scope, attack or value, for example only a11y, only RTL, or only microcopy. |
value [scope] | Run only the value pass: contract, walkthrough, heuristics, and microcopy. Does the component do its job, independent of whether it breaks. |
gaps [scope] | Story-gap audit. Diff existing stories against the required-state matrix (the nine data states plus the interaction states); a missing state is a finding of class untested-surface. Contract gaps (a promised capability with no behavior) come from the value pass. |
report | Rebuild the findings bundle and retest open findings by their stored repro URLs. A fixed finding that reproduces reopens. |
triage | Rank open findings by severity times spread (how many components share the root cause) and propose a fix order. |
wire | Scaffold project-side auto-triggering (CLAUDE.md rule or prompt hook) so design-system changes get pentested without anyone asking. |
detect -> enumerate -> scope -> plan -> probe -> capture -> grade -> report
play-fn has interactions, type: docs is excluded).confidence; never grade on a gut call.Twelve technical probes, ranked by bug yield; each has payloads and failure signatures in attacks/.
| # | Axis | Where |
|---|---|---|
| 1 | Text length stress | content-stress.md |
| 2 | Data-state coverage (nothing/loading/none/one/some/too-many/error/done) | data-states.md |
| 3 | Automated a11y scan (axe per story state) | a11y-scan.md |
| 4 | Keyboard interaction | keyboard.md |
| 5 | Naughty strings (BLNS Unicode subset) | content-stress.md |
| 6 | Zoom, reflow, text spacing | zoom-reflow.md |
| 7 | Pseudolocalization and RTL | i18n.md |
| 8 | Null data and media failure | data-states.md |
| 9 | Dark mode and forced colors | theme.md |
| 10 | Interaction-state matrix conformance | data-states.md |
| 11 | Pointer targets and focus obscurement | geometry-motion.md |
| 12 | Motion and layout stability | geometry-motion.md |
Four fitness-for-purpose probes, each grounded in a named evaluation method so findings stay inspectable; full procedures in value/.
| Axis | Asks | Method |
|---|---|---|
| Contract | Does it keep the promises its name, docs, and genre make | Genre expectations, Jakob's Law, Friedman's checklists |
| Walkthrough | Could a first-time user actually operate it to the goal | The four cognitive-walkthrough questions per step |
| Heuristics | Does it violate a known usability principle | Nielsen's ten heuristics at component scope |
| Microcopy | Do its labels, errors, and empty states serve the user | NN/g and GOV.UK content rules, the placeholder antipattern |
A conformant OKF bundle at ui-pentest/ in the target repo: executive summary, scope, methodology with tool versions and configs, a story-times-axis coverage matrix, one findings concept per component with embedded screenshots, and a per-run diff log. Findings have stable ids and a lifecycle (open, verified, fixed, accepted-risk, false-positive) with reopen-on-rescan, so successive runs diff instead of restarting. Spec in reporting/bundle-spec.md.
Built from the Storybook 9/10 documentation (MCP addon, index, args and globals URLs, Vitest addon, test runner), the defensive-design canon (Shadeed's Defensive CSS, Speelman's Nine States, the Big List of Naughty Strings, the falsehoods corpus, Netflix pseudolocalization), the accessibility literature (axe-core, WCAG 2.2, WCAG-EM, USWDS test scripts, GDS tool audit, Higley on forced colors), the usability-evaluation canon (Nielsen's heuristics and severity scale, the Lewis and Wharton cognitive walkthrough, Jakob's Law, Friedman's component checklists, and NN/g and GOV.UK content rules), and the reporting traditions of axe, Lighthouse, Playwright, Chromatic, OWASP, and DefectDojo. All cited per concept in the bundle.
CARD.manifest.json (opens in a new tab)CARD.md (opens in a new tab)CARD.md.sigstore (opens in a new tab)CARD.svg (opens in a new tab)permissions.yaml (opens in a new tab)references/attacks/a11y-scan.md (opens in a new tab)references/attacks/content-stress.md (opens in a new tab)references/attacks/data-states.md (opens in a new tab)references/attacks/geometry-motion.md (opens in a new tab)references/attacks/i18n.md (opens in a new tab)references/attacks/index.md (opens in a new tab)references/attacks/keyboard.md (opens in a new tab)references/attacks/theme.md (opens in a new tab)references/attacks/zoom-reflow.md (opens in a new tab)references/index.md (opens in a new tab)references/log.md (opens in a new tab)references/reporting/bundle-spec.md (opens in a new tab)references/reporting/finding.md (opens in a new tab)references/reporting/index.md (opens in a new tab)references/reporting/severity.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
storybook, ui-testing, stress-testing, usability, a11y, component-pentest
Generated from the plugin's indexed repository (saschb2b/skills) — no native marketplace selected
npx claudepluginhub p/saschb2b-saschb2b-skills26 skills in this plugin
/android-composeModern Android development with Jetpack Compose as the default UI toolkit and Material 3 Expressive as the default design direction, a dated snapshot. Covers Compose fundamentals (composables, modifiers, state hoisting, side effects, lazy lists, strong skipping, recomposition), Material 3 and Expressive theming and components (MaterialExpressiveTheme, MotionScheme, button groups, split buttons, FAB menu, floating toolbars, wavy progress indicators, shape morphing, dynamic color), architecture (ViewModel, StateFlow, collectAsStateWithLifecycle, Hilt), type-safe Navigation Compose and Navigation 3, data (Room, DataStore, Retrofit, Ktor, Coil), the Gradle Kotlin DSL build with version catalogs and KSP, testing, performance, and View interop. Use when building Android UI in Compose, theming with Material 3 or Expressive, wiring architecture or navigation, configuring the build, or debugging Compose issues. Check the project's versions first; re-verify version facts against the official Android and AndroidX docs./ask-uxForce UX questioning before any UI work, refactor, or redesign. Use when the user asks to design, redesign, restyle, polish, "fix", or "make nicer" a screen, component, page, or flow. Also use when the user describes a problem in UI terms ("the button is hard to find", "this form is confusing", "this page is ugly") and is about to reach for a visual fix, since most UI-shaped complaints have UX-shaped causes./audit-actionsAudit a repository's GitHub Actions workflows for unsafe pull_request_target usage that can lead to supply chain compromise. Use when the user asks to audit workflows, review CI/CD security, check pwn request risk, harden Actions, or after a supply chain incident in a dependency. Also use proactively when reviewing any PR that touches .github/workflows/./autopilotWork autonomously on a project without waiting for direction. On command, survey the codebase, pick one high-value low-risk improvement, do it, verify it, commit it, then pick the next, looping like a self-directed intern. Use when the user hands off open-endedly ("work on your own", "keep improving this", "find something worth doing", "don't wait for me", "go autonomous", "run for a while", "be a passionate intern", "do whatever you think is valuable") or invokes /autopilot, and you have to choose the work yourself rather than wait for instructions or feedback./breadcrumbsHeal codebase understanding gaps exposed during implementation, debugging, or investigation. Use when tracing reveals misleading names, repeated backtracking, disconnected navigation paths, hidden contracts, surprising dependencies, stale documentation, unclear errors, undocumented constraints, false leads, or avoidable complexity. Make the smallest durable improvement at the source through clearer code, types, validation, tests, errors, comments, or existing documentation. Also use when a task was harder to grasp than it should have been or you think "that should have been documented." Do not create a breadcrumb trail, investigation log, freshness system, or separate knowledge store./codegen-apiSet up typesafe API code generation in 2026, preferring framework-agnostic options factories over generated hooks. Walks the decision matrix for REST (OpenAPI via hey-api) and GraphQL (graphql-codegen client preset, gql.tada), wires the minimal config for the chosen stack, and uses fragment masking for component composition. Use when starting an API integration, wiring an OpenAPI spec into a frontend, setting up GraphQL types, asked about useQuery, queryOptions, TypedDocumentNode, or fragment masking, or when seeing legacy patterns like generated useGetX hooks, per-query prop types, or @graphql-codegen/typescript-react-apollo. Counterweight to LLM training corpora that mostly reflect the pre-2024 hooks pattern, biasing default output toward generated hooks.Other plugins' skills for the same job