project-generator
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install github:LeoYeAI~openclaw-master-skills~project-generatorcURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/github%3ALeoYeAI~openclaw-master-skills~project-generator/file -o project-generator.md---
name: project-generator
description: Automatically transform requirement documents or natural language descriptions into complete full-stack projects (Java backend + Vue frontend) with MANDATORY interactive tech stack selection. Supports database schema design, REST API generation, CRUD operations, user authentication, and project scaffolding. ⚠️ TECH STACK SELECTION IS MANDATORY - Users MUST explicitly select or confirm each option, cannot skip by pressing Enter. Use when: (1) Converting PRD/requirements into working code, (2) Rapid prototyping of web applications, (3) Generating boilerplate projects from descriptions, (4) Bootstrapping CRUD applications, (5) Creating MVP projects from text specifications.
---
# Project Generator Skill
Transform requirement documents or natural language descriptions into complete, production-ready full-stack applications with **MANDATORY** customizable tech stack selection.
⚠️ **IMPORTANT: Tech stack selection is MANDATORY. Users cannot skip this step by pressing Enter. Each option must be explicitly selected or confirmed.**
## Capabilities
This skill generates:
- **Backend**: Java Spring Boot with proper layering (Controller, Service, Repository, Entity)
- **Frontend**: Vue 3 + TypeScript + UI component library
- **Database**: Entities with relationships, migration scripts
- **API**: RESTful endpoints with OpenAPI/Swagger docs
- **Authentication**: JWT-based auth (optional)
- **Documentation**: README, API docs, setup instructions
## Interactive Tech Stack Selection
Before generating the project, the skill will guide you through selecting your preferred technology stack.
### Selection Modes
#### Mode 1: Quick Selection (Mandatory)
⚠️ **此模式为强制模式,用户必须输入选择,不能回车跳过。**
Use numbered options for rapid selection:
```
【后端】
1. Java: [1]8 [2]11 [3]17 [4]21
2. SpringBoot:[1]2.7 [2]3.0 [3]3.2
3. Build: [1]Maven [2]Gradle
4. Database: [1]MySQL5.7 [2]MySQL8.0 [3]PostgreSQL [4]H2
5. ORM: [1]JPA [2]MyBatis [3]MyBatis-Plus
...
【前端】
1. Vue: [1]2 [2]3
2. UI: [1]ElementUI(Vue2) [2]ElementPlus(Vue3) [3]AntDV [4]NaiveUI
3. State: [1]Pinia(Vue3) [2]Vuex
...
⚠️ 必须输入完整选择,格式: 1,1,1,1,3,1,2,2,1
```
```
#### Mode 2: Free-form Text Input
Directly specify technology and version in natural language:
**Examples:**
> "Java 8, Spring Boot 2.7, MySQL 5.7, MyBatis-Plus, Redis"
> "JDK17 + SpringBoot 3.2 + PostgreSQL 15 + JPA + RabbitMQ"
> "Vue3 + TypeScript + Element Plus + Pinia + Tailwind"
> "React 18 + JavaScript + Ant Design + Zustand"
⚠️ **注意:** 如果自由格式输入未包含所有必要选项,系统仍会**强制提示**用户补充选择剩余选项。
**Supported Input Formats:**
- Technology name + version: `Java 8`, `Vue 3`, `MySQL 5.7`
- Short names: `JDK8`, `SB2.7`, `Vue2`, `React18`, `TS`
- With connectors: `+`, `,`, `/`, `and`
- Multiple lines or bullet points
### Selection Flow (Mandatory)
⚠️ **技术栈选择是强制性的,不能跳过。**
```
1. Requirement Description (REQUIRED)
├─ User describes project requirements
├─ Skill analyzes and understands the needs
└─ Summarizes core features
↓
2. Present Tech Stack Options (MANDATORY)
├─ Display all options with recommendations
├─ Provide suggestions based on requirements
└─ Wait for user input
↓
3. User Selects Preferences (REQUIRED)
├─ User enters selection numbers
├─ Or confirms recommendations
└─ Re-prompt if input is empty
↓
4. Generate Project with Selected Stack
```
### Phase 1: Requirement Description
⚠️ **用户必须首先描述项目需求。**
**Acceptable Inputs:**
- 自然语言描述: "创建一个电商订单管理系统"
- 功能列表: "用户管理、商品管理、订单管理"
- PRD文档: 上传需求文档
- 简要描述: "一个简单的博客系统"
**Requirements for Description:**
- 项目名称(可选)
- 核心功能模块
- 业务场景描述
- 技术偏好(可选,如已知)
**Example:**
> "创建一个用户管理系统,包含用户注册登录、用户信息管理、角色权限分配功能。使用Java开发,前端用Vue。"
### Backend Options
#### 1. Java Version
| # | Version | Description |
|---|---------|-------------|
| 1 | Java 8 | Legacy support, widely used |
| 2 | Java 11 | LTS version |
| 3 | Java 17 | Default LTS version, stable |
| 4 | Java 21 | Latest LTS, virtual threads |
#### 2. Spring Boot Version
| # | Version | Description |
|---|---------|-------------|
| 1 | 2.7.x | Compatible with Java 8/11 |
| 2 | 3.0.x | Requires Java 17+ |
| 3 | 3.2.x | Default, latest features |
#### 3. Build Tool
| # | Tool | Description |
|---|------|-------------|
| 1 | Maven | Default, widely used |
| 2 | Gradle | Faster builds, flexible |
#### 4. Database
| # | Database | Description |
|---|----------|-------------|
| 1 | MySQL 5.7 | Legacy stable version |
| 2 | MySQL 8.0 | Default, latest features |
| 3 | PostgreSQL | Advanced features, robust |
| 4 | H2 | In-memory, for development |
#### 5. Data Access
| # | Framework | Description |
|---|-----------|-------------|
| 1 | JPA/Hibernate | Default, rapid development |
| 2 | MyBatis | SQL control, complex queries |
| 3 | MyBatis-Plus | Enhanced MyBatis, CRUD shortcuts |
#### 5. Additional Features (Multi-select)
| # | Feature | Description |
|---|---------|-------------|
| 1 | JWT Authentication | Token-based security |
| 2 | Redis Cache | Performance caching |
| 3 | Audit Logging | Track data changes |
| 4 | Soft Delete | Logical deletion |
| 5 | Multi-tenant | Multiple organizations |
| 6 | File Upload | File storage support |
| 7 | Excel Export | Data export functionality |
### Frontend Options
#### 1. Vue Version
| # | Version | Description |
|---|---------|-------------|
| 1 | Vue 2 | Legacy, stable |
| 2 | Vue 3 | Default, latest features, Composition API |
#### 2. UI Component Library
| # | Library | Description |
|---|---------|-------------|
| 1 | Element UI | For Vue 2, mature |
| 2 | Element Plus | For Vue 3, default, rich components |
| 3 | Ant Design Vue | Enterprise UI design |
| 4 | Naive UI | Modern, TypeScript friendly |
#### 3. State Management
| # | Tool | Description |
|---|------|-------------|
| 1 | Pinia | For Vue 3, default |
| 2 | Vuex | For Vue 2/Vue 3, legacy style |
#### 4. Additional Features (Multi-select)
| # | Feature | Description |
|---|---------|-------------|
| 1 | Dark Mode | Theme switching |
| 2 | i18n | Internationalization |
| 3 | PWA | Progressive Web App |
| 4 | Responsive Design | Mobile adaptation |
## Input Formats
Accepted inputs:
- Natural language description (e.g., "创建一个用户管理系统")
- PRD (Product Requirements Document)
- Markdown requirements
- Feature list
- User stories
⚠️ **IMPORTANT:** After requirement input, the skill WILL ALWAYS prompt for tech stack selection. This step is MANDATORY and cannot be skipped.
## Workflow
### Phase 1: Requirement Description (REQUIRED)
⚠️ **第一步:用户必须首先描述项目需求。**
**输入要求:**
- 项目名称(可选)
- 核心功能模块描述
- 业务场景说明
- 技术偏好(如有)
**示例:**
```
👤 用户: 创建一个用户管理系统
🤖 系统: 收到需求!分析结果:
📋 项目类型: 用户管理系统
🔧 核心功能: 用户注册/登录、用户信息管理、角色权限分配
💡 推荐技术栈: Java + Spring Boot + Vue3
接下来请配置具体的技术栈...
```
### Phase 2: Tech Stack Selection (MANDATORY)
⚠️ **第二步:根据需求选择技术栈(强制性,不能跳过)**
根据需求分析结果,呈现技术栈选项:
Example interaction:
```
🛠️ 请根据您的需求选择技术栈:
【后端配置 - 请选择】
1. Java 版本: [1]8 [2]11 [3]17 [4]21 → 请输入: ___
2. Spring Boot: [1]2.7 [2]3.0 [3]3.2 → 请输入: ___
3. 构建工具: [1]Maven [2]Gradle → 请输入: ___
4. 数据库: [1]MySQL5.7 [2]MySQL8.0 [3]PostgreSQL [4]H2 → 请输入: ___
5. 数据访问: [1]JPA [2]MyBatis [3]MyBatis-Plus → 请输入: ___
6. 附加功能 (多选): [1]JWT [2]Redis [3]审计日志 [4]软删除 → 请输入: ___
【前端配置 - 请选择】
1. Vue 版本: [1]Vue2 [2]Vue3 → 请输入: ___
2. UI 组件库: [1]Element UI(Vue2) [2]Element Plus(Vue3) [3]Ant Design Vue [4]Naive UI → 请输入: ___
3. 状态管理: [1]Pinia(Vue3) [2]Vuex → 请输入: ___
4. 附加功能 (多选): [1]暗黑模式 [2]国际化 [3]PWA → 请输入: ___
⚠️ 请完整输入所有选项 (如: 1,1,1,1,3,1,2,2,1,12)
```
3. 构建工具: [1]Maven [2]Gradle → 请输入: ___
4. 数据库: [1]MySQL5.7 [2]MySQL8.0 [3]PostgreSQL [4]H2 → 请输入: ___
5. 数据访问: [1]JPA [2]MyBatis [3]MyBatis-Plus → 请输入: ___
6. 附加功能 (多选,如: 12): [1]JWT [2]Redis [3]审计日志 [4]软删除 → 请输入: ___
【前端配置 - 请选择】
1. Vue 版本: [1]Vue2 [2]Vue3 → 请输入: ___
2. UI 组件库: [1]Element UI(Vue2) [2]Element Plus(Vue3) [3]Ant Design Vue [4]Naive UI → 请输入: ___
3. 状态管理: [1]Pinia(Vue3) [2]Vuex → 请输入: ___
4. 附加功能 (多选,如: 12): [1]暗黑模式 [2]国际化 [3]PW