05 design doc
Skill andrefabricio/prodotypor/files/.claude/skills/05-design-doc
An AI-assisted product development pipeline for Claude Code. Go from a product idea to Figma screens in 8 structured steps, with specialized AI agents handling product management, design research, and visual construction.
npx -y skills add andrefabricio/prodotypor --skill 05-design-docAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Step 5 of 8 — Design document creation. Produces the authoritative visual identity and design system specification from PRDs and inspiration research. Sub-commands: [continue] resume, [status] check progress, [update] force status refresh.
SKILL.md
6.0 KB, as published. Nobody here has run it
/05-design-doc — Design Document Creation
Create the authoritative design specification from product requirements and inspiration research.
Sub-command Router
Parse $ARGUMENTS:
- Contains
[status]→ Jump to Status Report section - Contains
[update]→ Jump to Force Status Update section - Contains
[continue]or empty → Jump to Execute section - Other text → Treat as section focus (e.g., "color system", "typography")
Prerequisites
Hard dependencies (requires BOTH):
- Read
docs/workflow-status.md— verify step 03 (PRD) status ==completed - Read
docs/workflow-status.md— verify step 04 (Inspiration) status ==completed - Verify
docs/prds/*.mdexists (≥1 PRD with user stories) - Verify
docs/Design/Inspirations/*.mdexists (≥2 reviews)
If prerequisites fail:
- If step 03 missing: "Step 05 cannot start. Missing: PRDs from step 03. Run
/03-prdfirst." - If step 04 missing: "Step 05 cannot start. Missing: inspiration research from step 04. Run
/04-inspirationfirst." - If BOTH missing: Report both and suggest running them (03 and 04 can run in parallel).
- Do NOT proceed until both are completed.
Soft dependencies:
- Technical constraints from CLAUDE.md (framework, platform specifics)
Execute
Phase 1: Gather All Inputs
- Read
CLAUDE.md— project context, tech stack, architecture constraints - Read
.impeccable.md— brand personality, aesthetic direction, anti-references - Read all PRDs in
docs/prds/— extract feature scope, user personas, user flows - Read all inspiration reviews in
docs/Design/Inspirations/— extract patterns to adopt/avoid - Read
templates/design-document-template.md— output structure - If continuing, read existing design doc to determine what sections are complete
Phase 2: Delegate to Design Doc Author Agent
Spawn the design-doc-author agent:
Create the design document for {{PROJECT_NAME}}.
Brand direction: [from .impeccable.md] User personas: [from PRDs] Feature scope: [screens and flows from PRDs] Inspiration insights: Adopt: [from inspiration reviews] Avoid: [from inspiration reviews] Technical constraints: [from CLAUDE.md — framework, platform] Template: [content of
templates/design-document-template.md] Focus area: [from $ARGUMENTS if provided]Requirements:
- Complete all 7 sections of the template
- Every color with semantic token name and hex value
- Every spacing value on a consistent scale
- Every component with all states specified
- Contrast ratios computed for all text/background combinations
- Dark mode mapping (even if deferred)
- Save to
docs/Design/{{PROJECT_NAME}}-design-document.md
Pipeline Context
Before delegating, read and summarize prior step outputs:
- Step 03 output: read PRD user personas, feature scope, key user flows
- Step 04 output: read inspiration "Relevance to {{PROJECT_NAME}}" sections — what to adopt/avoid
- Include summaries (not full files) in the agent prompt as "Pipeline Context"
Context Management
The design doc agent needs input from multiple large files. To prevent context rot:
- Pass summaries of PRDs (user stories list, not full prose)
- Pass only the Relevance and Color/Typography sections from inspiration reviews
- Include full
.impeccable.md(small file, critical context)
Phase 3: Validate Output
- Verify design doc exists at
docs/Design/{{PROJECT_NAME}}-design-document.md - Check required sections present: Color System, Typography, Spacing, Components
- Check: color palette has ≥8 tokens with hex values
- Check: type scale has ≥6 roles defined
- Check: spacing scale has ≥6 values
- If validation passes → proceed to Phase 4
- If validation fails → proceed to Error Recovery
Error Recovery
If validation fails:
- Identify the specific failure (e.g., "only 5 color tokens, need ≥8")
- Feed the error + partial output back to the agent:
"The design document did not meet requirements: [specific failure]. Current output: [section summary with counts]. Please fix: [specific instruction]."
- Re-validate after the retry
- If retry also fails, mark step as
blocked (reason)indocs/workflow-status.md
Quality Gate (optional)
<!-- CUSTOMIZE: Define domain-specific quality checks for design document -->After structural validation, optionally assess quality:
- Do all text/background combinations meet WCAG AA contrast ratios?
- Does every component spec include all states (default, pressed, disabled, error)?
- Are token names semantic (role-based, not color-based)?
- Score: pass / needs-revision
Phase 4: Human Review Gate
- Update
docs/workflow-status.mdstep 05 status toneeds-review - Report design doc summary (token counts, section completeness) to the user
- Prompt: "Review the design document. Run
/05-design-doc [continue]to approve, or provide feedback." - Only
[continue]afterneeds-reviewtransitions tocompleted
Phase 5: Report
Step 05 — Design Document: [status]
Output: docs/Design/{{PROJECT_NAME}}-design-document.md
Sections: [count]/7
Color tokens: [count]
Type roles: [count]
Spacing values: [count]
Components specified: [count]
Next step: /06-design-plan
Status Report
- Read
docs/workflow-status.md— extract step 05 section - If design doc exists, report section completeness and token counts
- Report which sections are missing or incomplete
Force Status Update
- Read design doc, check for required section headings
- Count color tokens, type roles, spacing values, components
- Update
docs/workflow-status.mdstep 05