name: frontend-design description: Create frontend design docs for new features, focusing on layouts, fields, component hierarchy, and interactions without implementation; list required APIs only. Use when user needs to create frontend design documentation, mentions UI/page/component design, or asks for frontend architecture planning.
Frontend Design
Goal
Write a frontend design document for a new feature or page.
Principles
- Frontend-first: layout, fields, component structure, interactions.
- FE/BE separation: list required APIs (name + purpose) only.
- Design-only: no implementation code.
Workflow
- Gather context (requirements, screenshots, clarifying questions).
- Explore existing code and reusable components.
- Break down modules and define each section.
- Write the document and run a constraint check.
- Do a reader pass for clarity and completeness.
Document Standard
- Location:
docs/design-docs/ - Naming: Chinese filename,
主需求_模块 - Split by major modules when needed.