AgentSkillsCN

fast-prototype

将产品需求转化为交互式原型与文档。当用户需要:(1) 根据需求创建结构化的PRD;(2) 使用Vue3+Tailwind+ElementPlus生成交互式HTML原型;(3) 编制标准的PRD文档;(4) 制定界面设计规范,或(5) 生成前端/后端技术文档时使用此功能。从自然语言的需求描述出发,通过5阶段工作流完成整个过程。

SKILL.md
--- frontmatter
name: fast-prototype
description: Transform product requirements into interactive prototypes and documentation. Use when user needs to: (1) Create structured PRD from requirements, (2) Generate interactive HTML prototype with Vue3+Tailwind+ElementPlus, (3) Produce standard PRD documentation, (4) Create interface design specifications, or (5) Generate frontend/backend technical documentation. Works from natural language requirement descriptions through a 5-stage workflow.

Fast Prototype

Transform product requirements into structured PRD, interactive prototype, and professional documentation.

Quick Start

code
User requirement → Structured PRD → User confirmation → Prototype + Documents

Workflow

Stage 1: Requirement Collection

Receive natural language requirement description. Ask clarifying questions if needed:

  • Target audience
  • Core features
  • Number of main pages
  • Reference products

Stage 2: Generate Structured PRD

Generate structured PRD with three components:

1. Mermaid Flowchart (Page navigation logic)

mermaid
flowchart TD
    Login[登录页面] --> Home[首页]
    Home --> CustomerList[客户列表]

2. ASCII UI Layout (Must use ui type annotation)

markdown
```ascii:ui
+-----------------------+
|      登录页面         |
+-----------------------+
| 账号: [________]      |
| 密码: [________]      |
+-----------------------+
```

3. Element Function Table

PageElementTypeFunction
LoginUsername inputInputEnter username
LoginPassword inputInputEnter password

Stage 3: User Confirmation

Show the structured PRD and ask if modifications are needed.

If confirmed no changes, proceed to Stage 4.

Stage 4: Generate Interactive Prototype

Generate single-file HTML with:

  • Framework: Vue 3 (CDN)
  • Styling: Tailwind CSS (CDN)
  • Components: Element Plus (CDN)
  • Routing: Vue Router (CDN)

File naming: [Product Name]-prototype.html

Component patterns: See references/component-styles.md

Stage 5: Generate Documentation

Ask which documents to generate:

  • Standard PRD document
  • Interface design document
  • Frontend technical document
  • Backend technical document

PRD template: references/prd-template.md Design specs: references/design-specs.md Frontend template: references/frontend-tech.md Backend template: references/backend-tech.md


Technical Stack

  • Framework: Vue 3 Composition API
  • Styling: Tailwind CSS
  • Components: Element Plus
  • Router: Vue Router 4
  • Build: Single HTML file (no build step)

Quality Checklist

Structured PRD

  • Mermaid flowchart included
  • ASCII UI layouts with ui type annotation
  • Complete element function table
  • User confirmed before proceeding

Interactive Prototype

  • Vue 3 + Tailwind + Element Plus used
  • All page navigation implemented
  • Interactive elements functional
  • Runs directly in browser
  • Modern, responsive design

Documentation

  • Standard PRD: 6 major sections complete
  • Design doc: Designer can execute from it
  • Frontend doc: Developer can build from it
  • Backend doc: Developer can implement from it

Common Patterns

When user requirement is too simple

Ask for:

  • Target audience
  • Core features
  • Page count
  • Reference products

When user wants modifications but unclear

Provide options:

  • Modify flowchart
  • Modify UI layout
  • Modify function table
  • Add page
  • Delete page

When prototype code is too complex for single file

  • For simple prototypes: Keep single-file
  • For complex prototypes: Inform user that multi-file structure is recommended