data-shape
You are helping the user create or update the general shape of their product's data — the core entities ("nouns") and how they relate to each other. This…
You are helping the user capture a screenshot of a screen design they've created. The screenshot will be saved to the product folder for documentation purposes.
How it fires
How this command gets triggered: by you, by Claude, or both.
/screenshot-designContext preview
What this command does when you run it.
You are helping the user capture a screenshot of a screen design they've created. The screenshot will be saved to the product folder for documentation purposes.
You are helping the user capture a screenshot of a screen design they've created. The screenshot will be saved to the product folder for documentation purposes.
Before proceeding, verify that you have access to the Playwright MCP tool. Look for a tool named `browser_take_screenshot` or `mcp__playwright__browser_take_screenshot`.
If the Playwright MCP tool is not available, output this EXACT message to the user (copy it verbatim, do not modify or "correct" it):
--- To capture screenshots, I need the Playwright MCP server installed. Please run:
claude mcp add playwright npx @playwright/mcp@latest
Then restart this Claude Code session and run `/screenshot-design` again. ---
Do not substitute different package names or modify the command. Output it exactly as written above.
Do not proceed with the rest of this command if Playwright MCP is not available.
First, determine which screen design to screenshot.
Read `/product/product-roadmap.md` to get the list of available sections, then check `src/sections/` to see what screen designs exist.
If only one screen design exists across all sections, auto-select it.
If multiple screen designs exist, use the AskUserQuestion tool to ask which one to screenshot:
"Which screen design would you like to screenshot?"
Present the available screen designs as options, grouped by section:
Start the dev server yourself using Bash. Run `npm run dev` in the background so you can continue with the screenshot capture.
Do NOT ask the user if the server is running or tell them to start it. You must start it yourself.
After starting the server, wait a few seconds for it to be ready before navigating to the screen design URL.
Use the Playwright MCP tool to navigate to the screen design and capture a screenshot.
The screen design URL pattern is: `http://localhost:3000/sections/[section-id]/screen-designs/[screen-design-name]`
1. First, use `browser_navigate` to go to the screen design URL 2. Wait for the page to fully load 3. **Click the "Hide" link** in the navigation bar to hide it before taking the screenshot. The Hide button has the attribute `data-hide-header` which you can use to locate it. 4. Use `browser_take_screenshot` to capture the page (without the navigation bar)
**Screenshot specifications:**
When using `browser_take_screenshot`, set `fullPage: true` to capture the entire page including content below the fold.
The Playwright MCP tool can only save screenshots to its default output directory (`.playwright-mcp/`). You must save the screenshot there first, then copy it to the product folder.
1. **First**, use `browser_take_screenshot` with just a filename (no path):
2. **Then**, copy the file to the product folder using Bash:
cp .playwright-mcp/[filename].png product/sections/[section-id]/[filename].png
**Naming convention:** `[screen-design-name]-[variant].png`
Examples:
If the user wants both light and dark mode screenshots, capture both.
Let the user know:
"I've saved the screenshot to `product/sections/[section-id]/[filename].png`.
The screenshot captures the **[ScreenDesignName]** screen design for the **[Section Title]** section."
If they want additional screenshots (e.g., dark mode, different states):
"Would you like me to capture any additional screenshots? For example:
The missing design process between your product idea and your codebase.
Repo: buildermethods/design-os
You are helping the user create or update the general shape of their product's data — the core entities ("nouns") and how they relate to each other. This…
You are helping the user create a screen design for a section of their product. The screen design will be a props-based React component that can be exported…
You are helping the user design the application shell — the persistent navigation and layout that wraps all sections. This is a screen design, not…
You are helping the user choose colors and typography for their product. These design tokens will be used consistently across all screen designs and the…
You are helping the user export their complete product design as a handoff package for implementation. This generates all files needed to integrate the UI…
You are helping the user create or update their product roadmap for Design OS.