Generate a design system specification for frontend projects through an interactive interview
Generates comprehensive design system specifications through interactive interviews about brand identity, components, and accessibility.
/plugin marketplace add Linaqruf/cc-plugins/plugin install project-spec@cc-plugins[style: modern | minimal | bold | custom]Generate a comprehensive design_spec.md for frontend projects through structured interviews about visual design, components, and UX patterns.
First, check for existing files:
project_spec.md exists, read it for tech stack contextdesign_spec.md exists, ask user if they want to update or start freshIf a style argument was provided:
modern: Clean lines, subtle shadows, rounded corners, neutral paletteminimal: Sparse, lots of whitespace, monochrome, typography-focusedbold: Strong colors, large text, geometric shapes, high contrastcustom: Full interview for custom design directionUse AskUserQuestion to gather design preferences. Ask 2-4 questions per interaction.
Phase 1: Brand & Identity
Design direction questions:
1. Do you have existing brand colors/guidelines?
2. What aesthetic best describes your vision?
- Modern/Clean - subtle, professional
- Minimal - sparse, typography-focused
- Bold/Colorful - vibrant, energetic
- Corporate - traditional, trustworthy
3. Light mode, dark mode, or both?
Phase 2: Components & Layout
UI component questions:
1. Component library preference?
- shadcn/ui (Recommended)
- Radix UI
- Material UI
- Custom components
2. Primary navigation style?
- Top navbar
- Sidebar
- Bottom tabs (mobile)
3. Key page types needed?
Phase 3: Accessibility & UX
UX requirements:
1. Accessibility level? (AA recommended)
2. Animation preferences? (minimal/subtle/rich)
3. Loading state style? (skeleton/spinner)
Use Context7 MCP to fetch documentation for chosen libraries:
Write the design specification with all sections:
# Design Specification: [Project Name]
## Brand Identity
- Color Palette (with hex values and usage)
- Typography Scale
- Spacing System
## Component Library
- Selected library and rationale
- Core components list
- Component states
## Layouts
- Page templates
- Responsive breakpoints
- Grid system
## Accessibility
- WCAG level
- Focus states
- Screen reader considerations
## Interaction Patterns
- Animation guidelines
- Loading states
- Error handling UX
## Implementation Notes
- CSS architecture
- Token organization
- Theme configuration
After generating, offer:
Design spec created! Next steps:
1. Review and adjust color values
2. Run frontend-design skill to implement components
3. Set up Tailwind/CSS configuration
The generated design_spec.md can be used by the frontend-design skill:
For design questions and examples:
${CLAUDE_PLUGIN_ROOT}/skills/spec-writing/references/interview-questions.md (Design & UX section)${CLAUDE_PLUGIN_ROOT}/skills/spec-writing/examples/design-spec.mdIf no project_spec.md exists:
If user choices conflict (e.g., minimal + rich animations):