generate-story-qa

Generates QA Storybook stories from Angular component interface contracts and design guidelines.

52|7|Updated Apr 12, 2017
One-click install
npx skills add https://github.com/LuccaSA/lucca-front --skill generate-story-qa-luccasa
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: generate-story-qa
Source: https://github.com/LuccaSA/lucca-front/tree/main/.claude/skills/generate-story-qa
Command: npx skills add https://github.com/LuccaSA/lucca-front --skill generate-story-qa-luccasa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually writing QA stories that cover every input, state, and visual variant of an Angular component is repetitive and error-prone. This Skill automates the creation of standardized QA stories in the Lucca Front design system, ensuring consistent coverage of component options for development and QA teams. ## Core Features & Use Cases - Interface Contract Analysis: Inspects component source code in packages/ng/<composant>/ to identify inputs, outputs, CSS modifier classes, content slots, and states. - Design Guideline Integration: Optionally incorporates Figma links or documentation to enrich test case labels, add usage rules, and cover accessibility edge cases. - Strict Output Format: Generates exactly two files (<composant>.stories.ts and <composant>.stories.html) following the stories/qa/<composant>/ convention with a 3-column QA table (label, HTML, Angular) and the required <span id="ready"></span> marker for ui-diff tooling. - Use Case: After building a new button component with palette and size modifiers, generate a complete QA story covering Default, variants, palettes, sizes, states, and disabled cases in both HTML and Angular implementations. ## Quick Start Generate a QA story for the button component using its interface contract and the attached design guidelines.

Frequently Asked Questions about generate-story-qa

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a QA story for an Angular component?▼

Point the Skill at the component source in packages/ng/<composant>/ and it analyzes inputs, outputs, CSS modifiers, and states to produce a stories.ts and stories.html pair under stories/qa/<composant>/. Providing design guidelines improves coverage of usage rules and edge cases.

What files does a QA story contain in Storybook?▼

Each QA story folder contains exactly two files: <composant>.stories.ts defining the Storybook meta with a QA/<NomPascalCase> title, and <composant>.stories.html containing a 3-column table comparing HTML and Angular implementations per test case.

Do I need design guidelines to generate a QA story?▼

No, guidelines are optional. Without them the story is generated solely from the component interface contract. Providing Figma links or documentation enriches test labels, adds usage-rule cases, and covers accessibility edge cases.

Why is the span id ready element required in QA stories?▼

The <span id="ready"></span> element signals to the ui-diff tool that the page has finished rendering. It must appear at the end of every stories.html file so visual regression screenshots are captured correctly.

What test cases does a generated QA story cover?▼

Cases follow a priority order: Default rendering, visual variants, palettes, sizes, enriched content like icons or badges, states such as loading or error, disabled, and specific cases like deprecated options or notable combinations.