ruoyi-crud

Generate complete CRUD code for Ruoyi projects from a specified table.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/xmx0632/claude-code-demo --skill ruoyi-crud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruoyi-crud
Source: https://github.com/xmx0632/claude-code-demo/tree/main/Skills-Collection/ruoyi-crud
Command: npx skills add https://github.com/xmx0632/claude-code-demo --skill ruoyi-crud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ruoyi 项目中的重复性 CRUD 实现耗时且易出错。该技能自动为选定表生成完整的实体、Mapper、Service 和 Controller 代码,显著减少手写重复工作,并确保生成的代码符合 Ruoyi 框架的规范。

Core Features & Use Cases

  • 生成实体类 (Entity.java)、Mapper 接口 (Mapper.java)、Service 层 (Service.java, IService.java) 与 Controller 层 (Controller.java) 的完整 CRUD 代码。
  • 遵循 Ruoyi 框架规范,提供清晰的项目结构,便于直接集成和维护。
  • 使用场景:为系统中的任意数据库表快速创建可运行的增删改查模块,例如为 sys_user 表生成完整的用户管理功能。

Quick Start

直接执行 /ruoyi-crud sys_user 即可为 sys_user 表生成完整的 CRUD 模块。

Frequently Asked Questions about ruoyi-crud

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

FAQPage Schema
How do I generate complete CRUD code for a database table in a Ruoyi project?

To generate CRUD code for a Ruoyi project, you can use a scaffolding tool that automatically creates Entity, Mapper, Service, and Controller layers from a specified table. This ensures the generated code adheres to Ruoyi framework and MyBatis-Plus conventions.

Can I automatically scaffold MyBatis-Plus entity and service layers for Spring applications?

Yes, you can scaffold MyBatis-Plus entity and service layers for Spring applications by generating code directly from your database table. This process produces production-ready modules that follow standard Spring conventions without manual coding.

What is the best way to reduce repetitive CRUD implementation time in Java?

The best way to reduce repetitive CRUD implementation time in Java is to use code generation scaffolding. It automates the creation of typical business modules, significantly reducing handwritten work and minimizing errors for new module development.

Does Ruoyi CRUD code generation require an existing Ruoyi project structure?

Yes, Ruoyi CRUD code generation requires an existing Ruoyi project structure. The scaffolding process relies on the framework's established conventions and MyBatis-Plus setup to deliver production-ready code that integrates directly into your current environment.

How do I quickly create a user management module from the sys_user table?

To quickly create a user management module from the sys_user table, execute the scaffolding command targeting that specific table. This generates a complete, runnable CRUD module including the Controller and Service layers ready for integration.

What are the limitations of using code generation for typical business modules?

Code generation for typical business modules is limited to standard CRUD operations and requires adherence to MyBatis-Plus and Spring conventions. Complex custom logic beyond basic scaffolding must be manually implemented after the initial code is produced.