ruoyi-gen

Generate backend Java and frontend Vue code from DDL table definitions.

1|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/cuitaocrazy/newpm --skill ruoyi-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruoyi-gen
Source: https://github.com/cuitaocrazy/newpm/tree/main/.claude/skills/ruoyi-gen
Command: npx skills add https://github.com/cuitaocrazy/newpm --skill ruoyi-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates end-to-end code generation for RuoYi projects by converting database table definitions into ready-to-build module code for both backend Java services and frontend Vue components.

Core Features & Use Cases

  • Interactive, DDL-driven code generation: reads DDL from pm-sql/init/00_tables_ddl.sql to infer schemas, relationships, and menus.
  • Generates configuration specs and deployable code into ruoyi-project and ruoyi-ui directories via the CLI.
  • Supports master-detail (main-sub) relationships and optional sub-menu generation, with guided customization.

Quick Start

To start, provide a target table name (for example pm_project) and run the generated CLI jar as described in the Important Files section. Ensure the DDL source exists at pm-sql/init/00_tables_ddl.sql and the generator config is available at ruoyi-generator/src/main/resources/generator.yml. Run java -jar ruoyi-gen-cli/target/ruoyi-gen-cli-3.9.1.jar with the appropriate --sql and --config, then deploy the resulting ZIP into ruoyi-project and ruoyi-ui.

Frequently Asked Questions about ruoyi-gen

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

FAQPage Schema
How do I generate RuoYi backend and frontend code from database tables?

To generate RuoYi code, provide a target table name and run the CLI jar against your DDL source. The tool reads table definitions, infers schemas and relationships, and outputs deployable Java and Vue components into your project directories.

Can I generate master-detail or main-sub table modules in RuoYi?

Yes, RuoYi code generation supports master-detail relationships and optional sub-menu generation. The tool infers these relationships directly from your centralized DDL source and guides you through configurable options before producing the deployable artifacts.

What DDL format does the RuoYi code generator require for input?

The RuoYi code generator requires a centralized DDL file located at pm-sql/init/00_tables_ddl.sql. It parses these SQL table definitions to infer schema structures, table relationships, and menu hierarchies for module generation.

How to build and deploy generated RuoYi modules using Maven tooling?

Run the generated CLI jar with the appropriate --sql and --config arguments using Maven-based tooling. The workflow renders templates, builds the project, and assembles a ready-to-deploy ZIP containing backend Java code and frontend Vue components.

Does the RuoYi code generator work with Vue frontend components?

Yes, the RuoYi code generator produces both backend Java services and frontend Vue components. It ingests table definitions and outputs deployable artifacts directly into the ruoyi-project and ruoyi-ui directories for full-stack module generation.

What are the limitations of using a centralized DDL source for RuoYi code generation?

The RuoYi code generator is limited by its reliance on a centralized DDL source at pm-sql/init/00_tables_ddl.sql. If your database schema definitions are not consolidated in this file, the tool cannot infer schemas, relationships, or generate the required modules.