Generating Prototype Demo System Process
Process task execution is one of XDevelop's core capabilities. Through the "Generating Prototype Demo System" process, requirement descriptions are automatically transformed into a runnable prototype demo system.
The entire process is collaboratively completed by 10 sub-agents, from functional design to frontend and backend code delivery, achieving rapid setup of prototype demo systems.
Process Overview
The process consists of the following 10 sub-agents executing sequentially:
- The first five sub-agents handle the design and interface generation phase — transforming requirements into functional blueprints, UI styles, and HTML prototypes
- The middle sub-agents handle the design diagram and code generation phase — generating design diagrams and frontend/backend tech stack code
- The final sub-agents handle the document generation phase — generating document variables and outputting the final document
Sub-Agent Working Mechanism
Each sub-agent is bound to a corresponding agent tool (e.g., "Save Functional Description"). The system drives the sub-agents through two sets of prompts:
- System Prompt — Defines the sub-agent's role, responsibilities, and output specifications, telling the AI who you are and what to do
- Generation Message Prompt — Carries specific input data (usually from the previous sub-agent's output), telling the AI to generate content based on this information
Sub-agents reference each other's output data through expressions, for example:
Based on business requirements, sub-agents can output data in multiple formats such as JSON, Markdown, and HTML, adapting to different data interaction scenarios.
Detailed Breakdown of the Ten Sub-Agents
1. Limited-quantity Open Functional Description
The limited-quantity open functional description is the starting point of the process, responsible for generating the full functional blueprint of the project.
- Analyzes the project name and requirement description provided by the user, outlining which functional modules the project includes
- The number of generated functional modules is limited by specified parameters
- Provides directional guidance for subsequent stages
Figure: Sub-Agent · Limited-quantity Open Functional Description

2. UI Style Description
The UI style description is responsible for generating the overall UI style and theme description for the system.
- Specifies the style and color scheme for subsequent interfaces
- Unifies the visual language of the system
Figure: Sub-Agent · UI Style Description

3. Generate Limited-quantity AI Function Menu
The limited-quantity AI function menu defines the system's interface navigation structure.
- Based on the limited-quantity open functional description, generates the system's menu tree and page list
- Clarifies the entry position and hierarchical relationship of each page
- Provides an interface blueprint for frontend code generation
Figure: Sub-Agent · Generate Limited-quantity AI Function Menu

4. Interface Config to Single-page HTML
The interface config to single-page HTML transforms the function menu into concrete HTML interfaces.
- Based on the function menu description generated by "Generate Limited-quantity AI Function Menu", generates corresponding interfaces
- Completes the interface functionality of corresponding functional modules
Figure: Sub-Agent · Interface Config to Single-page HTML

5. HTML Config to Operation Info
The HTML config to operation info generates relevant operation descriptions and methods based on interface content.
- Operation methods can be chosen as draw or capture
- Draw — Capture full image (large image)
- Capture — Capture partial image (small image)
- Provides prerequisite content for subsequent menu screenshots
Figure: Sub-Agent · HTML Config to Operation Info

6. Generate Design Diagrams
Generate design diagrams (sub-agent on-demand selection), generates design diagrams based on functional description and interface operation information.
- Generates relevant flowcharts
- Generates use case diagrams
- Generates class diagrams
- Generates ER diagrams
- Generates algorithm design diagrams
Provides diverse design diagrams and descriptions for subsequent document generation.
Figure: Sub-Agent · Generate Design Diagrams


7. Generate Frontend Tech Stack Code from HTML
Generate frontend tech stack code from HTML, transforming HTML prototypes into frontend tech stack code.
- Can generate frontend tech stack code based on specified frontend language and HTML interface
- For subsequent document generation use
Figure: Sub-Agent · Generate Frontend Tech Stack Code from HTML

8. Generate Backend Tech Stack Code from HTML
Generate backend tech stack code from HTML, transforming HTML interface requirements into backend tech stack code.
- Can generate backend tech stack code based on specified backend language
- For subsequent document generation use
Figure: Sub-Agent · Generate Backend Tech Stack Code from HTML

9. Design Diagrams to Backend Code
Design diagrams to backend code, generating corresponding algorithm code based on design diagrams.
- Transforms the algorithm logic in design diagrams into executable backend code
- For subsequent document generation use
Figure: Sub-Agent · Design Diagrams to Backend Code

10. Generate Document Variables
Generate document variables is the endpoint of the process, responsible for integrating the output of all preceding sub-agents into document variables.
- Based on the document to be generated, generates the corresponding variables in the document
- Provides data support for final document output
Figure: Sub-Agent · Generate Document Variables

