skills/bdd-from-ux/SKILL.md
Write BDD scenarios grounded in existing UI/UX implementation. Researches pages, components, types, and mock data before writing any scenario. Use when generating .feature files for a product that already has a working app or prototype.
npx skillsauth add razbakov/skills bdd-from-uxInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Write BDD scenarios that reflect the actual UI/UX, not imagined flows. Every scenario must be traceable to real components, pages, types, or mock data in the codebase.
When writing BDD scenarios from backlog stories alone, AI invents UI patterns that don't exist: forms instead of swipe decks, browse pages instead of sidebar sections, modal flows in the wrong order. These scenarios are worse than useless — they document a product that doesn't exist and mislead implementers.
Read the backlog and story map to understand which stories need .feature files. Group tightly related stories into one file per epic or feature area.
Before writing a single scenario, spawn one Explore subagent per feature area to gather UX facts from the codebase. Each subagent must answer:
Search locations for each subagent:
app/pages/ — routes and page-level logicapp/components/ — UI components (read the <template> section carefully)app/types/ — TypeScript interfaces and type unionsapp/data/ — mock data revealing realistic contentapp/composables/ — shared state and business logicapp/lib/ — utility functions (display helpers, formatters)Subagent prompt template:
Research the UX for [FEATURE AREA] in [APP PATH].
I need to write BDD scenarios that match the real implementation. For each question below, quote the actual code — component names, template strings, type definitions, mock data values:
1. Which page route and component renders this feature?
2. What is the interaction model? (swipe, form, toggle, sidebar, modal, etc.)
3. What exact UI elements exist? (buttons, labels, badges, icons, states — quote template strings)
4. What TypeScript types/interfaces back this feature? (quote the type definition)
5. What states does the component handle? (empty, loading, partial, full, success, error, disabled)
6. What gates exist? (auth, paywall, onboarding — quote the trigger logic and headlines/messages)
7. What does the mock data look like? (quote 2-3 realistic examples)
Search broadly in pages/, components/, types/, data/, composables/, lib/. DO NOT write code. Just research and quote findings.
Only after all subagents return, write the .feature files. Every scenario must satisfy:
Grounding rules:
# Note: comment explaining what pattern they extendScenario quality rules (from bdd-scenarios skill):
Rule: blocks for acceptance criteriaBackground: for shared setupScenario Outline: with Examples: for data-driven variations@epic-N, @mvp, @r1, @r2, @wipTemplate:
@epic-N @mvp
Feature: Feature name
As a Persona
I want to action
so that benefit.
Background:
Given shared precondition
Rule: Business rule derived from actual UI behavior
Scenario: Happy path matching real UX
Given concrete precondition with real data
When user action matching actual interaction model
Then observable outcome with actual UI text/state
Before writing each .feature file, verify:
When step matches an actual interaction in the componentThen step matches an actual UI state or text string# Note:| Don't | Do |
|-------|-----|
| Invent UI flows from story titles | Read the component template first |
| Assume forms exist for every input | Check if it's a swipe card, toggle, or sidebar section |
| Use generic headlines like "Sign up" | Quote the exact headline from the SignUpModal component |
| Write "I click the Join button" | Match the real interaction: "I swipe right" or "I tap 'Join this dinner'" |
| Assume separate pages per feature | Check if features share a page (e.g., everything on the festival page) |
| Skip features that aren't built yet | Write scenarios with a # Note: explaining the design intent |
.feature files for a product that already has UI componentsdevelopment
Seed a new or empty Instagram account with a 9-post grid (3×3) so the profile looks established the moment a new visitor lands. Designed for festivals, new businesses, product launches, conferences, communities — any time an empty IG profile would hurt conversion from external traffic (QR scans, flyer drops, cross-promo). Generates assets via /image-from-gemini (per content-publishing rules — never HTML), writes captions with hashtag sets, and outputs a posting order + cadence plan. Trigger generously: phrases like '9 posts for instagram', 'fill my IG', 'starter grid', 'launch grid', 'instagram seed', '9-post grid', 'IG account not to look empty', 'first instagram posts', 'feed bootstrap', '3x3 grid', 'instagram launch content'. Even if the user mentions only one piece (just the images, just the captions, just the order), use this skill — the grid only works as an integrated bundle.
testing
Translate one English blog post into multiple target languages via parallel sub-agents, preserving frontmatter conventions, hero image, and brand voice. Use when the user shares a published English post URL or markdown path and says 'translate it', 'add other languages', 'publish in DE/ES/RU/UK', 'translate to 5 languages', or asks for localized versions of a specific post.
development
Build a complete press kit for an event, product launch, or campaign — in multiple languages — and publish it as a shareable Google Drive folder ready to send to journalists, partners, or a delegate. Produces press releases (typically DE/EN/ES, or configurable), uploads press photos and flyers, creates an Overview document for at-a-glance briefing, and creates a Handover document with pending tasks, contacts, risks, and decisions so press distribution can be delegated. Use when the user says 'I need a press release', 'create a press kit', 'press release in X languages', 'set up a Drive folder for press', 'handover doc for someone else to run press', or has an upcoming announcement that needs to be sent to media. Trigger generously: even partial requests (just a press release, just a flyer folder) typically evolve into the full kit.
development
Track ticket sales for a live event (concert, festival, conference, workshop) with daily snapshots, generate a burndown chart comparing actual sales to ideal-linear targets and tier-cumulative milestones, and report whether the event is on pace. Use when the user asks how sales are going, wants to know if their event will sell out, asks for a daily sales report, wants to set up sales tracking for an upcoming event, or asks about ticket pace / velocity / projection. Trigger generously: phrases like 'how is concert sales going', 'burndown for my event', 'are we going to sell out', 'sales velocity', 'daily ticket chart', 'how many tickets do we need to sell', or any case where the user has a ticketed event with a fixed sales window and wants visibility on pacing.