شعار Storybook Pentest

Storybook Pentest

المجتمع
saschb2b
storybook-pentest

Pentest Storybook components two ways. Whether they break under stress, and whether they actually do their job well. Test one story, a component group, or the whole Storybook, and write every finding into an OKF bundle with screenshots, severity, and a reproducible URL. The break pass probes extreme and hostile text, empty and overloaded data, accessibility, keyboard use, zoom, reflow, RTL, dark mode and forced colors, and broken media. The value pass judges fitness for purpose against usability heuristics, asking whether the control is clear, the label specific, the error message useful, and the promise its name makes kept. Use when asked to pentest, stress-test, audit, break, or find edge cases or UX issues in a Storybook, design system, or component; when a component misbehaves with long text, empty states, dark mode, RTL, zoom, or keyboard use, or is confusing or does the wrong thing; or when stories need an a11y or usability sweep. Complements react-stinky (code quality) and visual-consistency (polish).

نظرة عامة

الناشرsaschb2b
المستودعskills
اسم المهارةstorybook-pentest
النجوم
22
التفريعات
3
الملفات المرفقة
32
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 32

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها saschb2b على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Storybook Pentest في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/saschb2b/skills/tree/main/skills/engineering/storybook-pentest
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/saschb2b/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/engineering/storybook-pentest .claude/skills/storybook-pentest
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Storybook Pentest في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Storybook Pentest تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Storybook Pentest بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Storybook Pentest

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.

Stance: two questions, and honest confidence

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.

The layered driving surface

Never assume one integration; detect, then use the highest layer available. The detection ladder and per-layer capabilities are in references/surface/:

  1. Storybook MCP (/mcp endpoint, SB 9.1.16+, Vite): curated docs, changed-story detection, test execution with a11y. No screenshots, no arg mutation, no raw enumeration.
  2. The story index (/index.json, fallback /stories.json): the ground-truth story list with tags. Works on any SB 6.4+ including static builds.
  3. iframe URLs (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.
  4. Playwright: pixels, keyboard, emulation (reduced motion, forced colors, viewport), screenshots.
  5. CLI runners (npx vitest --project=storybook, npx test-storybook --url ... --json): the project's own test suites with JSON output.

Commands

Invoke as /storybook-pentest <command> [target].

CommandWhat it does
sweepPentest 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.
reportRebuild the findings bundle and retest open findings by their stored repro URLs. A fixed finding that reproduces reopens.
triageRank open findings by severity times spread (how many components share the root cause) and propose a fix order.
wireScaffold project-side auto-triggering (CLAUDE.md rule or prompt hook) so design-system changes get pentested without anyone asking.

The pipeline

detect -> enumerate -> scope -> plan -> probe -> capture -> grade -> report

  1. Detect the target's layers (surface/detection is in story-index.md and mcp.md).
  2. Enumerate stories from the index; segment by tags (play-fn has interactions, type: docs is excluded).
  3. Scope the sample and record the boundary. Sampling rules in reporting/bundle-spec.md.
  4. Plan axes per story. Attack axes: every component gets content stress, data states, and the axe scan; interactive add keyboard; text-bearing add i18n; themed add theme; animated or async add motion (attacks/). Value axes: establish the contract first, then walkthrough for interactive components, heuristics for all, microcopy for anything with text (value/).
  5. Probe each planned cell. Payloads and procedures live per axis in attacks/ and value/.
  6. Capture evidence deterministically (reduced motion, fonts ready, play complete, animations disabled): surface/screenshots.md.
  7. Grade severity as impact times likelihood via the documented matrix in reporting/severity.md, and set confidence; never grade on a gut call.
  8. Report into the OKF findings bundle in the target repo (reporting/bundle-spec.md, record schema in reporting/finding.md, scaffolds in reporting/templates.md).

The attack axes (does it break)

Twelve technical probes, ranked by bug yield; each has payloads and failure signatures in attacks/.

#AxisWhere
1Text length stresscontent-stress.md
2Data-state coverage (nothing/loading/none/one/some/too-many/error/done)data-states.md
3Automated a11y scan (axe per story state)a11y-scan.md
4Keyboard interactionkeyboard.md
5Naughty strings (BLNS Unicode subset)content-stress.md
6Zoom, reflow, text spacingzoom-reflow.md
7Pseudolocalization and RTLi18n.md
8Null data and media failuredata-states.md
9Dark mode and forced colorstheme.md
10Interaction-state matrix conformancedata-states.md
11Pointer targets and focus obscurementgeometry-motion.md
12Motion and layout stabilitygeometry-motion.md

The value axes (does it do its job)

Four fitness-for-purpose probes, each grounded in a named evaluation method so findings stay inspectable; full procedures in value/.

AxisAsksMethod
ContractDoes it keep the promises its name, docs, and genre makeGenre expectations, Jakob's Law, Friedman's checklists
WalkthroughCould a first-time user actually operate it to the goalThe four cognitive-walkthrough questions per step
HeuristicsDoes it violate a known usability principleNielsen's ten heuristics at component scope
MicrocopyDo its labels, errors, and empty states serve the userNN/g and GOV.UK content rules, the placeholder antipattern

The deliverable

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.

Source

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.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Storybook Pentest؟

Pentest Storybook components two ways. Whether they break under stress, and whether they actually do their job well. Test one story, a component group, or the whole Storybook, and write every finding into an OKF bundle with screenshots, severity, and a reproducible URL. The break pass probes extreme and hostile text, empty and overloaded data, accessibility, keyboard use, zoom, reflow, RTL, dark mode and forced colors, and broken media. The value pass judges fitness for purpose against usability heuristics, asking whether the control is clear, the label specific, the error message useful, a...

لماذا تستخدم Storybook Pentest على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Storybook Pentest عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Storybook Pentest في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/saschb2b/skills/tree/main/skills/engineering/storybook-pentest. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Storybook Pentest؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Storybook Pentest؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Storybook Pentest معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Storybook Pentest مجانية؟

نعم. نشرها saschb2b على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇