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 define the specification for a section of their product. This is a conversational process to establish the scope of functionality, user flows, and UI requirements — then automatically generate the spec and sample data.
How it fires
How this command gets triggered: by you, by Claude, or both.
/shape-sectionContext preview
What this command does when you run it.
You are helping the user define the specification for a section of their product. This is a conversational process to establish the scope of functionality, user flows, and UI requirements — then automatically generate the spec and sample data.
You are helping the user define the specification for a section of their product. This is a conversational process to establish the scope of functionality, user flows, and UI requirements — then automatically generate the spec and sample data.
First, verify that `/product/product-roadmap.md` exists. If it doesn't:
"I don't see a product roadmap defined yet. Please run `/product-roadmap` first to define your product sections, then come back to shape individual sections."
Stop here if the roadmap doesn't 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 work on:
"Which section would you like to define the specification for?"
Present the available sections as options.
Once the section is identified, invite the user to share any initial thoughts:
"Let's define the scope and requirements for **[Section Title]**.
Do you have any notes or ideas about what this section should include? Share any thoughts about the features, user flows, or UI patterns you're envisioning. If you're not sure yet, we can start with questions."
Wait for their response. The user may provide raw notes or ask to proceed with questions.
Use the AskUserQuestion tool to ask 4-6 targeted questions to define:
Example questions (adapt based on their input and the section):
Ask questions one or two at a time, conversationally. Focus on user experience and interface requirements - no backend or database details.
If a shell design has been created for this project (check if `/src/shell/components/AppShell.tsx` exists), ask the user about shell usage:
"Should this section's screen designs be displayed **inside the app shell** (with navigation header), or should they be **standalone pages** (without the shell)?
Most sections use the app shell, but some pages like public-facing views, landing pages, or embedded widgets should be standalone."
Use AskUserQuestion with options:
If no shell design exists yet, skip this question and default to using the shell.
Once you have enough information from the clarifying questions, **immediately proceed** without asking for approval. Do all of the following in sequence:
Create the file at `product/sections/[section-id]/spec.md` with this exact format:
# [Section Title] Specification ## Overview [2-3 sentence summary of what this section does] ## User Flows - [Flow 1] - [Flow 2] - [Flow 3] [Add all flows discussed] ## UI Requirements - [Requirement 1] - [Requirement 2] - [Requirement 3] [Add all requirements discussed] ## Configuration - shell: [true/false]
**Important:**
Immediately after writing the spec, run the full sample data generation process for this section:
1. **Check for global data shape** — Read `/product/data-shape/data-shape.md` if it exists. Use entity names and relationships as a guide for consistency.
2. **Analyze the spec** — Determine what data entities are implied by the user flows, what fields each entity needs, and what actions can be taken (these become callback props).
3. **Create `product/sections/[section-id]/data.json`** with:
Required `_meta` structure:
{
"_meta": {
"models": {
"entityName": "Plain-language description of what this entity represents."
},
"relationships": [
"Description of how models connect to each other"
]
}
}4. **Create `product/sections/[section-id]/types.ts`** with:
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.