design-generator

Generates page design documents with layouts, components, and API mappings from structured requirements.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/fen-zx/NovelToScript --skill design-generator-fen-zx
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: design-generator
Source: https://github.com/fen-zx/NovelToScript/tree/main/.agents/skills/design-generator
Command: npx skills add https://github.com/fen-zx/NovelToScript --skill design-generator-fen-zx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It bridges the gap between structured product requirements and frontend development by converting requirement JSON into concrete page design documents, eliminating ambiguity about layout, component breakdown, and data sourcing before coding begins. ## Core Features & Use Cases - Layout Sketching: Produces ASCII layout diagrams per page based on three style presets (minimal, enterprise, mobile). - Component Breakdown: Suggests Vue components with reusability ratings and checks existing project components for reuse. - Data Source Mapping: Maps each module's data fields to existing or proposed REST API endpoints by inspecting the project's src/api directory. - Use Case: After running requirement-analyzer on a user management feature, feed its JSON output here to get a PAGE_SPECS.md with table layouts, an EditUserModal component plan, /api/users endpoint mappings, and a suggested src/views directory structure. ## Quick Start Ask the AI to generate a page design document in enterprise style from the structured requirements JSON produced by requirement-analyzer.

Frequently Asked Questions about design-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn structured requirements into a page design document?▼

Pass the requirement-analyzer JSON output containing pages, modules, features, and data fields to this skill. It generates a Markdown document with layout sketches, component suggestions, data source mappings, and interaction notes ready to save as PAGE_SPECS.md.

What design styles does the page design generator support?▼

Three presets are supported: minimal (single-column, card-based layouts for dashboards), enterprise (side navigation with dense tables for admin systems), and mobile (stacked layouts with bottom tabs for H5 and mini-programs). Enterprise is the default.

Does it reuse existing Vue components in my project?▼

Yes. The generation rules instruct it to check the src/components directory for existing global components before suggesting new ones, and to prefer built-in components from Element UI or Ant Design when the project uses them.

How are API endpoints mapped to page modules?▼

The skill inspects the project's src/api directory for existing interface definitions and maps each module's data fields to matching endpoints. For missing interfaces, it proposes RESTful paths and HTTP methods rather than inventing unrelated ones.

What are the limitations of the generated design documents?▼

Layout sketches are ASCII approximations capped at about 15 lines, not pixel-accurate mockups. Ambiguous points discovered during generation are collected into an open questions list rather than resolved automatically.