Design To Code
yonatangross/orchestkit
Mockup-to-component pipeline using Google Stitch, 21st.dev, and Storybook MCP.
Discover all visual states of a component by interactively exploring the production baseline page — not by reading story files.
$ npx skills add bitovi/ai-enablement-prompts --skill discover-visual-states -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install bitovi/ai-enablement-prompts discover-visual-states --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/playwright/skills/discover-visual-states .claude/skills/discover-visual-states && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "discover-visual-states" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/discover-visual-states into .claude/skills/discover-visual-states/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-visual-states", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/discover-visual-statesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add bitovi/ai-enablement-prompts --skill discover-visual-states -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install bitovi/ai-enablement-prompts discover-visual-states --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/playwright/skills/discover-visual-states .agents/skills/discover-visual-states && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "discover-visual-states" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/discover-visual-states into .agents/skills/discover-visual-states/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-visual-states", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bitovi/ai-enablement-prompts --skill discover-visual-states -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install bitovi/ai-enablement-prompts discover-visual-states --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/playwright/skills/discover-visual-states .cursor/skills/discover-visual-states && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "discover-visual-states" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/discover-visual-states into .cursor/skills/discover-visual-states/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-visual-states", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/bitovi/ai-enablement-prompts.git --path plugins/playwright/skills/discover-visual-states--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add bitovi/ai-enablement-prompts --skill discover-visual-states -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install bitovi/ai-enablement-prompts discover-visual-states --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/playwright/skills/discover-visual-states .gemini/skills/discover-visual-states && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "discover-visual-states" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/discover-visual-states into .gemini/skills/discover-visual-states/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-visual-states", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install bitovi/ai-enablement-prompts discover-visual-statesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add bitovi/ai-enablement-prompts --skill discover-visual-states -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/playwright/skills/discover-visual-states .github/skills/discover-visual-states && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "discover-visual-states" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/discover-visual-states into .github/skills/discover-visual-states/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-visual-states", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bitovi/ai-enablement-prompts --skill discover-visual-states -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install bitovi/ai-enablement-prompts discover-visual-states --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bitovi/ai-enablement-prompts.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/playwright/skills/discover-visual-states .opencode/skills/discover-visual-states && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "discover-visual-states" agent skill from https://github.com/bitovi/ai-enablement-prompts/tree/main/plugins/playwright/skills/discover-visual-states into .opencode/skills/discover-visual-states/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "discover-visual-states", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
discover-visual-statesDiscover all visual states of a component by interactively exploring the production baseline page — not by reading story files.
Discover Visual States is an agent skill from bitovi/ai-enablement-prompts. Discover all visual states of a component by interactively exploring the production baseline page — not by reading story files. Finds every interactive element (nav items, dropdowns, toggles, buttons) that produces a distinct visual state, records the interactions needed to reach each one, and saves a pixel-perfect.config.json that the pixel-perfect skill uses to replay those same interactions on both production and Storybook. Run this once per component; re-run when the production page changes.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design, covering Design to code. It works with Storybook. The repository describes itself as: Prompts Bitovi uses for software development. The licence is MIT.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit df229b1. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript, json and typescript).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
bitovi.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Discover Visual States loads about 2.7k tokens when it runs. Until then it costs about 131 tokens; SKILL.md has 710 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from bitovi/ai-enablement-prompts at commit df229b1, republished under its MIT licence (© bitovi). 710 words, ~2,661 tokens.
.claude/skills/discover-visual-states/SKILL.md (or your agent's skills folder).Explore the production page to discover every distinct visual state a component can be in. Save the interactions needed to reach each state to pixel-perfect.config.json. The pixel-perfect skill then replays those same interactions on both production and Storybook — no separate story per state required.
pixel-perfect on a component for the first timepixel-perfect.config.json does not exist yet for a componentpixel-perfect.config.json already exists and is up to date (pixel-perfect will tell you)| Input | Required | Example |
|---|---|---|
| Baseline URL | Yes | https://www.bitovi.com |
| Component scope hint | Yes | navbar, header nav, [aria-label="Main navigation"] — narrows which part of the page to inspect |
| Storybook default story URL | Yes | http://localhost:6007/iframe.html?id=components-meganavbar--default&viewMode=story |
| Config output path | Auto-derived | temp/MegaNavBar/pixel-perfect.config.json — always temp/{ComponentName}/pixel-perfect.config.json |
{
"baselineUrl": "https://www.bitovi.com",
"storybookUrl": "http://localhost:6007/iframe.html?id=components-meganavbar--default&viewMode=story",
"configPath": "temp/MegaNavBar/pixel-perfect.config.json",
"states": [
{
"label": "default",
"description": "Component in resting state — no interactions",
"interactions": []
},
{
"label": "services-dropdown",
"description": "Services dropdown open",
"interactions": [
{ "type": "hover", "target": "text:Services" }
]
},
{
"label": "our-work-dropdown",
"description": "Our work dropdown open",
"interactions": [
{ "type": "hover", "target": "text:Our work" }
]
},
{
"label": "contact-form",
"description": "Contact form panel open",
"interactions": [
{ "type": "click", "target": "text:Contact Us" }
]
}
]
}Derive the config path from the component name: temp/{ComponentName}/pixel-perfect.config.json
(e.g. MegaNavBar → temp/MegaNavBar/pixel-perfect.config.json). Create the directory if it does not exist.
Look for pixel-perfect.config.json at that path.
mcp_playwright_browser_evaluate to find the component root element using the scope hint:() => {
const el = document.querySelector('[aria-label="Main navigation"]')
|| document.querySelector('nav')
|| document.querySelector('header');
return el ? {
tag: el.tagName,
id: el.id,
class: el.className.substring(0, 100),
rect: el.getBoundingClientRect()
} : null;
}Within the scoped component, find all elements that can produce a distinct visual state. Run this evaluation:
() => {
const scope = document.querySelector('[aria-label="Main navigation"]') || document.querySelector('nav');
if (!scope) return [];
const candidates = [];
// Buttons and role=button elements
scope.querySelectorAll('button, [role="button"]').forEach(el => {
if (el.offsetParent === null) return; // skip hidden
candidates.push({
type: 'button',
text: el.textContent.trim().substring(0, 40),
ariaExpanded: el.getAttribute('aria-expanded'),
ariaLabel: el.getAttribute('aria-label'),
});
});
// Links that might reveal sub-menus
scope.querySelectorAll('a[aria-haspopup], li[aria-haspopup]').forEach(el => {
candidates.push({
type: 'link-with-popup',
text: el.textContent.trim().substring(0, 40),
});
});
// List items with cursor:pointer that aren't plain links
scope.querySelectorAll('li').forEach(el => {
if (window.getComputedStyle(el).cursor === 'pointer') {
const text = el.querySelector('button, a')?.textContent?.trim()?.substring(0, 40);
if (text) candidates.push({ type: 'clickable-li', text });
}
});
return candidates;
}Deduplicate by text. This gives a raw list of interactive elements.
For each candidate, probe it by hovering and clicking to see if the page changes:
hover first, then click if hover produces nothing):mcp_playwright_browser_snapshot to find the element ref by its textmcp_playwright_browser_hover or mcp_playwright_browser_click() => {
// Find elements that became visible (have content and are now visible)
return Array.from(document.querySelectorAll('[aria-expanded="true"], [class*="dropdown"][style*="block"], [class*="open"], [class*="active"]'))
.filter(el => el.offsetParent !== null)
.map(el => ({ tag: el.tagName, class: el.className.substring(0, 60) }));
}For nav items and dropdowns, prefer hover if it opens the state — it more accurately reflects the production behavior. Use click for toggles (contact forms, mobile menus, accordions).
Heuristic:
aria-expanded that changes on hover → use hoverclickhover for dropdowns, click for forms/panelsAssemble the states list:
{ label: "default", interactions: [] } as the first statelabel derived from the element text (e.g. "Services" → "services-dropdown", "Contact Us" → "contact-form")Show the proposed config to the user in a formatted block:
Discovered N visual states for [component] on [baselineUrl]:
✅ default → no interactions (resting state)
✅ services-dropdown → hover "Services"
✅ our-work-dropdown → hover "Our work"
✅ community-dropdown → hover "Community"
✅ contact-form → click "Contact Us"
Storybook URL: http://localhost:6007/iframe.html?id=...--default
Does this look correct? Confirm to save, or describe any changes needed.Wait for user confirmation before saving.
Navigate to the storybookUrl. For each state (except default), attempt the interaction on the Storybook component using the same text/role target.
"storybookWarning": "element not found"This catches mismatches early — e.g. if the Storybook component uses different text for a button.
Write pixel-perfect.config.json to the specified output path. Confirm the saved path to the user.
// Hover interaction
{ "type": "hover", "target": "text:Services" }
// Click interaction
{ "type": "click", "target": "text:Contact Us" }
// Keyboard interaction
{ "type": "keydown", "target": "text:Search", "key": "Enter" }
// Type into a field
{ "type": "type", "target": "label:Search", "value": "consulting" }Target format:
text:X — find the first visible element whose trimmed text content is Xrole:button:X — find <button> or role="button" with accessible name Xlabel:X — find an input associated with label text Xselector:X — use X directly as a CSS selector (last resort)When replaying interactions in pixel-perfect, translate targets to Playwright MCP calls:
mcp_playwright_browser_snapshot → find the ref matching the target descriptionmcp_playwright_browser_hover / mcp_playwright_browser_click with that refUser: "Discover visual states for the MegaNavBar.
Baseline: https://www.bitovi.com
Scope: nav[aria-label='Main navigation']
Storybook: http://localhost:6007/iframe.html?id=components-meganavbar--default&viewMode=story
Config: temp/MegaNavBar/pixel-perfect.config.json"
Agent:
1. Navigate to https://www.bitovi.com
2. Dismiss cookie banner
3. Scope to <nav> — found navigation element
4. Discover interactive elements:
- Buttons: Services, Our work, Community, Contact Us
- Clickable LIs: About, Careers
5. Probe each:
- "Services" hover → dropdown appeared (Project management, Product design...) ✅
- "Our work" hover → dropdown appeared (Showcase, More Projects...) ✅
- "Community" hover → dropdown appeared (Blog, Academy...) ✅
- "Contact Us" click → form panel appeared ✅
- "About" click → navigates away — skip (full navigation, not a visual state)
- "Careers" click → navigates away — skip
6. Verify on Storybook:
- All 4 interactions work on Storybook default story ✅
7. Config saved to temp/MegaNavBar/pixel-perfect.config.json
5 states: default, services-dropdown, our-work-dropdown,
community-dropdown, contact-form© bitovi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/playwright/skills/discover-visual-states of bitovi/ai-enablement-prompts.
Open the folder on GitHubat commit df229b1
Discover Visual States next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Discover Visual States this skillbitovi/ai-enablement-prompts | 121 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Design To Codeyonatangross/orchestkit | 292 | — | ~4.4k | Automated safety check: Notes | MIT | |
| Storybook MCP Integrationyonatangross/orchestkit | 292 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Figma use_figma Plugin API Ruleswarpdotdev/warp | 65k | 4 repos | ~4.4k | Automated safety check: Pass | AGPL-3.0 | |
| Figma Design to Codewarpdotdev/warp | 65k | 4 repos | ~2.9k | Automated safety check: Pass | AGPL-3.0 | |
| Scalar Design Systemscalar/scalar | 16k | — | ~2.7k | Automated safety check: Pass | MIT |
yonatangross/orchestkit
Mockup-to-component pipeline using Google Stitch, 21st.dev, and Storybook MCP.
yonatangross/orchestkit
Reference for the Storybook MCP server itself (@storybook/addon-mcp): 6 tools across 3 toolsets (dev, docs, testing), availability detection, and per-agent toolset filtering.
warpdotdev/warp
Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.
warpdotdev/warp
Turns a Figma frame or component into production code that matches the design, using the Figma MCP server and the project's own design system.
scalar/scalar
Scalar's design system — design tokens, theming (@scalar/themes), CSS variables, and the @scalar/components library.
warpdotdev/warp
Creates project-specific design system rules from your codebase so coding agents implement Figma designs with your components, naming and tokens.
bitovi/ai-enablement-prompts
Track reusable UI components and unextracted patterns. An agent skill from bitovi/ai-enablement-prompts.
bitovi/ai-enablement-prompts
Extract and compare computed CSS styles between a baseline URL and a dev/Storybook URL using Playwright MCP evaluate calls.
bitovi/ai-enablement-prompts
A skill your agent uses when the user asks to "create a plugin", "add a plugin", "make a new plugin", "build a plugin", or wants to package skills into an installable plugin for this marketplace.
bitovi/ai-enablement-prompts
Create React components, hooks, or utilities following the modlet pattern.
bitovi/ai-enablement-prompts
A skill your agent uses when the user asks to "create a skill", "add a skill", "make a new skill", "build a skill", or wants to automate a repeated workflow into a reusable prompt.
bitovi/ai-enablement-prompts
Create new Agent Skills for this project. An agent skill from bitovi/ai-enablement-prompts.
Works with
Categories
Discover all visual states of a component by interactively exploring the production baseline page — not by reading story files. Discover Visual States is an agent skill from bitovi/ai-enablement-prompts. Discover all visual states of a component by interactively exploring the production baseline page — not by reading story files.
Discover Visual States fits situations like: tasks that involve Design to code.
Run `npx skills add bitovi/ai-enablement-prompts --skill discover-visual-states -a claude-code`. Or copy the skill folder (plugins/playwright/skills/discover-visual-states in bitovi/ai-enablement-prompts) into .claude/skills/discover-visual-states in your project. Claude Code loads it when a task matches its description.
Run `npx skills add bitovi/ai-enablement-prompts --skill discover-visual-states -a codex`. Or copy the skill folder (plugins/playwright/skills/discover-visual-states in bitovi/ai-enablement-prompts) into .agents/skills/discover-visual-states in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bitovi/ai-enablement-prompts --skill discover-visual-states -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/discover-visual-states, .gemini/skills/discover-visual-states, .github/skills/discover-visual-states and .opencode/skills/discover-visual-states in your project.
SKILL.md names no scripts, command-line tools or credentials: Discover Visual States is instructions for the agent only.
SKILL.md names 1 domain. In commands or code: bitovi.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Discover Visual States is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Discover Visual States: Design To Code (yonatangross/orchestkit, 292 stars), Storybook MCP Integration (yonatangross/orchestkit, 292 stars), Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars) and Figma Design to Code (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
bitovi (a GitHub organization) maintains it in bitovi/ai-enablement-prompts, which has 121 GitHub stars. The repository holds 40 skills in this directory. The repository was last updated on September 11, 2026.
Source: bitovi/ai-enablement-prompts on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.