frontend-architecture-generator

Generates frontend architecture blueprints from page, component, and API design specifications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Designing a consistent frontend architecture from scattered page, component, and API specs is time-consuming and error-prone. This Skill turns those design documents into a complete, opinionated frontend architecture blueprint covering directory structure, routing, state management, and engineering conventions. ## Core Features & Use Cases - Architecture Blueprint Generation: Produces project structure, route design, component layering (UI / feature / page), and data flow diagrams from PAGE_SPECS, COMPONENT_SPECS, and API_SPECS inputs. - Opinionated Tech Stack Defaults: Defaults to React + TypeScript + Vite + React Router + TanStack Query + Zustand + React Hook Form + Zod + Shadcn UI, with explicit prohibitions (no Redux, no MobX, no direct axios calls in pages). - Domain-Aware Suggestions: Detects novel/script/scene/character entities and upload requirements to recommend feature modules, upload services, permission guards, and performance optimizations. - Use Case: After finishing product and API design for a novel-to-script tool, feed the specs in and receive a full frontend architecture document ready to hand to a code generator or development team. ## Quick Start Ask the AI to generate a frontend architecture blueprint based on your PAGE_SPECS.md, COMPONENT_SPECS.md, and API_SPECS.md files.

Frequently Asked Questions about frontend-architecture-generator

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

FAQPage Schema
How do I generate a frontend architecture from API and page specs?▼

Provide your PAGE_SPECS, COMPONENT_SPECS, and API_SPECS documents as input. The Skill analyzes them and outputs a blueprint covering project structure, routes, component layers, state management, hooks, permissions, and data flow.

What tech stack does the frontend architecture generator use?▼

By default it uses React with TypeScript, Vite, React Router, TanStack Query for server state, Zustand for client state, React Hook Form with Zod for forms, Shadcn UI, and Axios. You can override the stack by specifying your own.

Should I use TanStack Query or Zustand for API data?▼

Use TanStack Query for server state such as API lists, details, and pagination. Zustand is reserved for client state like theme, editor state, and selections. The Skill explicitly forbids storing API data in Zustand.

Does the architecture support file upload and permission control?▼

Yes. When upload requirements are detected it generates an UploadService, UploadHook, and UploadComponent supporting txt, pdf, and docx. It also designs role-based guards like RequireAuth and PermissionGuard for routes.

What are the limitations of this architecture generator?▼

It outputs an architecture blueprint only and does not generate business code. It prohibits Redux and MobX, and any unknown or unspecified design details are marked as [待确认] for manual confirmation.