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 componentstools
--- name: handoff description: Get an agent past a browser/UI wall it can't (or must not) cross on its own — a login-gated dashboard, a CAPTCHA, a 2FA prompt, an API that keeps rejecting the write, or an irreversible click that policy says a human must make. This skill is an ESCALATION LADDER, not a first move: it tells you to try the automated browser surfaces FIRST (Chrome-in-Claude, computer-use, an autonomous browser sub-agent) and only fall back to the Handoff app — a wrapper browser that h
documentation
Summarize one or more YouTube videos from their links. Use this whenever the user pastes a youtube.com or youtu.be URL (or several) and wants to know what it's about — phrasings like "summarize to telegram", "tldr these videos", "what do these say", "summary of this talk", or just dropping links with no instruction at all. Fetches each video's real transcript via yt-dlp (not the page text, which never contains the transcript), cleans the captions, and writes a per-video summary. Default delivery is Telegram; honor any other surface the user names ("to my notes", "just here in chat", "email it"). Trigger even when the user only pastes bare links — bare YouTube links almost always mean "tell me what's in these".
data-ai
Daily Digest — Chief-of-Staff role consolidates the six top-managers into one Telegram message to the Commander, instead of six. Implements the protocol from agent-proactivity.md.
development
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.