ruoyi-code-generator

Generate Ruoyi CRUD scaffolding with Java, Vue, MyBatis XML, and menu SQL.

69|19|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/alffei/skill_share --skill ruoyi-code-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruoyi-code-generator
Source: https://github.com/alffei/skill_share/tree/main/ruoyi-code-generator
Command: npx skills add https://github.com/alffei/skill_share --skill ruoyi-code-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

基于数据表结构,自动生成后端 Java 代码、前端 Vue 代码、MyBatis XML 映射以及菜单初始化 SQL,显著提升新模块的开发效率和代码一致性。

Core Features & Use Cases

  • 自动生成后端代码(Domain、Mapper、Service、Controller)
  • 自动生成前端代码(Vue 页面组件、API 封装)
  • 自动生成 MyBatis XML 映射与菜单初始化 SQL
  • 适用于快速创建新模块、表结构迭代和规范化代码生成

Quick Start

通过对话式输入数据表信息,Skill 将自动生成符合 Ruoyi 规范的 CRUD 模块代码。示例输入包括:表名、表注释、字段定义等。

Frequently Asked Questions about ruoyi-code-generator

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

FAQPage Schema
How do I generate CRUD code for RuoYi framework from a database table?

To generate CRUD code for the RuoYi framework, input the database table name, table comment, and field definitions into the skill. It outputs backend Java, frontend Vue, MyBatis XML mappings, and menu SQL.

What files are included when generating a RuoYi module from database tables?

Generating a RuoYi module produces Domain, Mapper, Service, and Controller Java files, Vue page components, API wrappers, MyBatis XML mappings, and initial menu SQL scripts.

Can I use this code generation tool to create Vue frontend pages and API integrations?

Yes, the code generation tool creates Vue frontend page components and API wrappers alongside backend Java code. It adheres to RuoYi conventions to ensure standardized module creation.

Do I need to manually write MyBatis XML mappings when using a RuoYi code generator?

No, you do not need to manually write MyBatis XML mappings. The RuoYi code generator automatically produces the XML mappings along with the Domain, Service, and Controller layers.

What's the best way to speed up new module creation in RuoYi projects?

The best way to speed up RuoYi module creation is using an automated generator to scaffold CRUD code from database table structures. This significantly improves development efficiency and code consistency.

Does the generated code automatically include menu initialization SQL for RuoYi?

Yes, the generated code includes menu initialization SQL for RuoYi. It outputs standardized SQL scripts to initialize the module menus alongside the backend Java and frontend Vue components.