page-generator

Generates complete Vue page implementation blueprints from component trees and design documents.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After component decomposition, developers still face decisions about directory structure, state management, data flow, API layers, and routing before writing any page code. This Skill converts component trees and design specs into a complete, ready-to-code page implementation blueprint. ## Core Features & Use Cases - Page Blueprint Generation: Produces directory structure, file inventory, state tables, data-flow diagrams, API interface specs, and route configuration for Vue/React pages. - State Management Decision Tree: Guides selection among ref/reactive, Composables, or Vuex/Pinia based on sharing and complexity criteria. - Use Case: Given a component tree for a user management page (SearchForm, UserTable, EditUserModal) plus API specs, generate the full implementation plan including useUserList Composable design, GET/PUT/DELETE endpoint mappings, and an ordered development task list. ## Quick Start Use the page-generator skill to turn this component tree and PAGE_SPECS into a complete page implementation blueprint with state management and API design.

Frequently Asked Questions about page-generator

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

FAQPage Schema
How do I plan a Vue page structure before coding?▼

Start from the component tree, then decide state placement using a decision tree: local ref for simple state, a Composable for complex page logic, and Vuex or Pinia only for cross-page shared state. Then map API endpoints, draw Props-down and Emits-up data flow, and define the route config.

When should I use a Composable vs Vuex or Pinia for state management?▼

Use a Composable when state is page-local but involves more than three API calls or five state fields. Use Vuex or Pinia only when state must be shared across pages, adding persistence plugins if it must survive reloads. Simple state stays as ref or reactive in the page container.

Does this skill generate actual Vue component code?▼

No, it outputs an implementation blueprint rather than business code. It provides directory structures, state tables, API specs, route snippets, and container pseudocode showing structure only, so developers or AI code generators implement the actual .vue files.

What inputs does the page-generator skill need?▼

It accepts the component tree with Props and Emits from component-generator, PAGE_SPECS data-source mappings from design documents, and interaction flows from low-fidelity prototypes. These inputs are mapped to files, state, endpoints, and routes.

Can the blueprint work with React projects as well as Vue?▼

The blueprint concepts such as directory structure, state tables, and API layer design apply to both Vue and React, but the concrete conventions shown, like Composables, Vuex or Pinia, and Vue Router config, target Vue 3 projects.