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 create a screen design for a section of their product. The screen design will be a props-based React component that can be exported and integrated into any React codebase.
How it fires
How this command gets triggered: by you, by Claude, or both.
/design-screenContext preview
What this command does when you run it.
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 and integrated into any React codebase.
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 and integrated into any React codebase.
First, identify the target section and verify that `spec.md`, `data.json`, and `types.ts` all exist.
Read `/product/product-roadmap.md` to get the list of available sections.
If there's only one section, auto-select it. If there are multiple sections, use the AskUserQuestion tool to ask which section the user wants to create a screen design for.
Then verify all required files exist:
If spec.md doesn't exist:
"I don't see a specification for **[Section Title]** yet. Please run `/shape-section` first to define the section's requirements."
If data.json or types.ts don't exist:
"I don't see sample data for **[Section Title]** yet. Please run `/sample-data` first to create sample data and types for the screen designs."
Stop here if any file is missing.
Check for optional enhancements:
**Design Tokens:**
If design tokens exist, read them and use them for styling. If they don't exist, show a warning:
"Note: Design tokens haven't been defined yet. I'll use default styling, but for consistent branding, consider running `/design-tokens` first."
**Shell:**
If shell exists, the screen design will render inside the shell in Design OS. If not, show a warning:
"Note: An application shell hasn't been designed yet. The screen design will render standalone. Consider running `/design-shell` first to see section screen designs in the full app context."
Read and analyze all three files:
1. **spec.md** - Understand the user flows and UI requirements 2. **data.json** - Understand the data structure and sample content 3. **types.ts** - Understand the TypeScript interfaces and available callbacks
Identify what views are needed based on the spec. Common patterns:
If the spec implies multiple views, use the AskUserQuestion tool to confirm which view to build first:
"The specification suggests a few different views for **[Section Title]**:
1. **[View 1]** - [Brief description] 2. **[View 2]** - [Brief description]
Which view should I create first?"
If there's only one obvious view, proceed directly.
Before creating the screen design, read the `frontend-design` skill to ensure high-quality design output.
Read the file at `.claude/skills/frontend-design/SKILL.md` and follow its guidance for creating distinctive, production-grade interfaces.
Create the main component file at `src/sections/[section-id]/components/[ViewName].tsx`.
The component MUST:
Example:
import type { InvoiceListProps } from '@/../product/sections/[section-id]/types'
export function InvoiceList({
invoices,
onView,
onEdit,
onDelete,
onCreate
}: InvoiceListProps) {
return (
<div className="max-w-4xl mx-auto">
{/* Component content here */}
{/* Example: Using a callback */}
<button onClick={onCreate}>Create Invoice</button>
{/* Example: Mapping data with callbacks */}
{invoices.map(invoice => (
<div key={invoice.id}>
<span>{invoice.clientName}</span>
<button onClick={() => onView?.(invoice.id)}>View</button>
<button onClick={() => onEdit?.(invoice.id)}>Edit</button>
<button onClick={() => onDelete?.(invoice.id)}>Delete</button>
</div>
))}
</div>
)
}**If `/product/design-system/colors.json` exists:**
**If `/product/design-system/typography.json` exists:**
**If design tokens don't exist:**
For complex views, break down into sub-
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 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.
You are helping the user define their product vision for Design OS. This is a conversational process that results in three files: the product overview, product…