Agent skill

Ruoyi Plus AI Coding

by dromara in dromara/RuoYi-Cloud-Plus

在仓库内按代码生成器模板、项目 reference 文档和既有约定生成或修改代码。用于新增或修改 CRUD 模块、controller/service/mapper/BO/VO/entity、MyBatis-Plus/MPJ 查询、数据权限、缓存、翻译/JSON 增强、公共 common 模块能力、JavaDoc 注释,以及与后端接口配套的 Vue 3 + TypeScript…

MITAuto-check passedDevOps & Cloud

Install Ruoyi Plus AI Coding

skills CLI
$ npx skills add dromara/RuoYi-Cloud-Plus --skill ruoyi-plus-ai-coding -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dromara/RuoYi-Cloud-Plus ruoyi-plus-ai-coding --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dromara/RuoYi-Cloud-Plus.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/ruoyi-plus-ai-coding .claude/skills/ruoyi-plus-ai-coding && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ruoyi-plus-ai-coding
GitHub stars
1.3k
Token cost
~1.6k tokens
SKILL.md length
372 words
Files
6 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

在仓库内按代码生成器模板、项目 reference 文档和既有约定生成或修改代码。用于新增或修改 CRUD 模块、controller/service/mapper/BO/VO/entity、MyBatis-Plus/MPJ 查询、数据权限、缓存、翻译/JSON 增强、公共 common 模块能力、JavaDoc 注释,以及与后端接口配套的 Vue 3 + TypeScript…

  • Works in 5 steps: 标准单表 CRUD → 强业务模块扩展 → 基础能力复用 → …
  • Tasks that involve Type safety
  • SKILL.md covers 适用场景, 不适用场景, 执行流程 and 文档读取规则, plus 12 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ruoyi Plus AI Coding is an agent skill from dromara/RuoYi-Cloud-Plus. 在仓库内按代码生成器模板、项目 reference 文档和既有约定生成或修改代码。用于新增或修改 CRUD 模块、controller/service/mapper/BO/VO/entity、MyBatis-Plus/MPJ 查询、数据权限、缓存、翻译/JSON 增强、公共 common 模块能力、JavaDoc 注释,以及与后端接口配套的 Vue 3 + TypeScript 页面、types 和 api 文件;触发后应先按任务类型读取对应 references,再阅读目标模块真实代码和 generator 模板。

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `agents/openai.yaml`, `references/backend.md` and `references/cloud.md`).

It sits in DevOps & Cloud, covering Type safety. It works with Vue.js and Docker. The repository describes itself as: 微服务管理系统 重写RuoYi-Cloud所有功能 整合 SpringCloudAlibaba、Dubbo3.0、Sa-Token、Mybatis-Plus、MQ、WarmFlow、ES、Docker 全方位升级 定期同步. The licence is MIT.

When your agent uses it

  • Tasks that involve Type safety

Example prompts

  • “/ruoyi-plus-ai-coding”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 标准单表 CRUD
  2. 强业务模块扩展
  3. 基础能力复用
  4. 公共基础模块修改
  5. 注释修正任务

What it can do on your machine

Read from SKILL.md and the folder at commit 92171d7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ruoyi Plus AI Coding loads about 1.6k tokens when it runs, and up to ~8.4k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 372 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dromara/RuoYi-Cloud-Plus at commit 92171d7, republished under its MIT licence (© dromara). 372 words, ~1,575 tokens.

Download SKILL.mdSave it as .claude/skills/ruoyi-plus-ai-coding/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
ruoyi-plus-ai-coding
description
在仓库内按代码生成器模板、项目 reference 文档和既有约定生成或修改代码。用于新增或修改 CRUD 模块、controller/service/mapper/BO/VO/entity、MyBatis-Plus/MPJ 查询、数据权限、缓存、翻译/JSON 增强、公共 common 模块能力、JavaDoc 注释,以及与后端接口配套的 Vue 3 + TypeScript 页面、types 和 api 文件;触发后应先按任务类型读取对应 references,再阅读目标模块真实代码和 generator 模板。

RuoYi Plus AI 编码规范

先对齐代码生成器产物,再叠加仓库里真实业务代码已经形成的更强约定。

适用场景

在下面这些任务里优先使用此 skill:

  • 新增标准 CRUD 模块。
  • 根据新表结构补齐 entity、bo、vo、mapper、service、controller。
  • 修改已有模块的查询、校验、导入导出、数据权限、事务逻辑。
  • 修改 ruoyi-common 公共能力,例如 mybatis 查询构造器、translation、json enhance、excel、oss、redis、web 配置。
  • 修改 Cloud 专属能力,例如 ruoyi-api 远程契约、Dubbo provider/consumer、Gateway/Auth、Nacos 配置约定、Seata 分布式事务、服务间数据权限透传。
  • 补充或修正 JavaDoc 注释,尤其是公共 API、接口、BO/VO/Entity 字段、Mapper 默认方法、Service/Controller 方法。
  • 在系统、监控、工作流、demo 等模块内按现有约定扩展业务代码。
  • 为后端新增接口同步补前端 api/types/index.vue 骨架。

不适用场景

下面这些任务不要机械套用本 skill 的 CRUD 规则:

  • 基础框架升级、Spring Boot 主版本迁移。
  • 与当前分层明显不同的实验性模块。
  • 第三方中间件深度接入、基础设施改造。
  • 完全脱离 generator 体系的独立子系统。

执行流程

  1. 先判断任务类型,并按“文档读取规则”读取当前任务需要的 reference。
  2. 确认目标模块,优先复用同模块中最近似功能的写法。
  3. 新增标准 CRUD 代码前,先读取 ruoyi-modules/ruoyi-gen/src/main/resources/fm/ 下的模板。
  4. 命名和分层保持与仓库一致: domain entity、domain.bo、domain.vo、mapper、service、service.impl、controller。
  5. 优先在生成器结构上扩展,不要自行发明新的分层。
  6. 修改 ruoyi-system 这类复杂模块前,先阅读同类现有实现,因为这些模块通常比生成器默认产物多出数据权限、联表、缓存、安全校验等逻辑。
  7. 修改 ruoyi-common 公共模块前,先阅读同包接口、实现类和调用点,优先保持已有 API 语义与兼容性。
  8. 只补注释或文档时,不运行无关格式化,不重排 import,不改代码逻辑。

文档读取规则

使用本 skill 时,先按任务类型读取适用 reference,不一次性展开所有文档:

  • 后端 Java、Mapper、Service、Controller、BO、VO、Entity、权限、查询、公共模块或 JavaDoc 任务,先读 references/backend.md。
  • Cloud 专属能力,例如 Dubbo 远程调用、ruoyi-api 契约、服务拆分、Gateway、Nacos、Seata 分布式事务、服务间数据权限透传,先读 references/cloud.md。
  • 前端 Vue、TypeScript、api、types 或页面任务,先读 references/frontend.md。
  • 不确定任务边界、需要标准调用方式或需要对照典型场景时,再读 references/examples.md。

reference 用来约束实现方式和自检范围;发生冲突时,仍以当前模块真实代码和实际调用点为准。

优先级规则

发生冲突时按下面顺序决策:

  1. 当前模块内最近似业务代码。
  2. 当前仓库公共基础模块约定,例如 common-mybatis、common-core、common-web。
  3. 代码生成器模板。
  4. 通用 Spring Boot / MyBatis-Plus 习惯。

也就是说:

  • 同模块已有成熟实现时,优先复用该实现。
  • 同模块没有现成代码时,再参考 generator 模板。
  • 不要因为“更通用”就覆盖掉项目已形成的强约定。

后端规则

Java、MyBatis-Plus、BO/VO/entity、controller、mapper、service 的具体规则见 references/backend.md。

Cloud 规则

Dubbo、ruoyi-api、Gateway/Auth、Nacos、Seata、服务间数据权限透传的具体规则见 references/cloud.md。

前端规则

Vue 3、TypeScript API 文件、生成式列表页、表单状态、字典和日期范围约定见 references/frontend.md。

使用案例

具体调用方式见 references/examples.md。

仓库通用规则

  • 遵循 .editorconfig:UTF-8、LF,默认 4 空格,JSON/YAML 为 2 空格。
  • 不要把 BaseMapperPlus、PageQuery、PageResult、R、MapstructUtils 或项目工具类替换成临时自造方案。
  • 仓库已使用 List.of(...) 的地方,数组转列表优先继续沿用。
  • import、注解顺序、文件结构以附近代码为准,不要顺手重排整个文件。
  • 只有在业务逻辑不直观时才加简短注释。

决策规则

  • 如果任务是围绕单表的标准 CRUD,尽量贴近生成器默认产物。
  • 如果目标模块已经存在自定义校验、数据权限、事务、缓存、Excel 导入导出、联表查询等逻辑,应在此基础上扩展,不要为了“简洁”把它们削平。
  • 如果附近 controller 接口已经带有权限、日志、防重、加密、分组校验等注解,新接口默认同步保持一致,除非有明确理由不这样做。
  • 如果 BO 或 VO 需要字段校验、翻译、Excel 注解,应优先参考同模块同用途对象,不要机械套通用注解。
  • 如果修改公共基础模块,优先保持公开 API 兼容,新增能力要查调用点和同包风格。
  • 如果任务只涉及注释,默认补 JavaDoc 并保持实现不变;框架覆写方法不强行重复注释,除非业务语义不直观。

目录映射规则

标准后端模块通常按下面结构组织:

  • src/main/java/.../domain/Entity.java
  • src/main/java/.../domain/bo/EntityBo.java
  • src/main/java/.../domain/vo/EntityVo.java
  • src/main/java/.../mapper/EntityMapper.java
  • src/main/java/.../service/IEntityService.java
  • src/main/java/.../service/impl/EntityServiceImpl.java
  • src/main/java/.../controller/EntityController.java

标准生成器模板通常对应:

  • fm/java/domain.java.ftl -> entity
  • fm/java/bo.java.ftl -> bo
  • fm/java/vo.java.ftl -> vo
  • fm/java/mapper.java.ftl -> mapper
  • fm/java/service.java.ftl -> service interface
  • fm/java/serviceImpl.java.ftl -> service impl
  • fm/java/controller.java.ftl -> controller
  • fm/xml/mapper.xml.ftl -> 自定义 XML mapper 起点

任务分型

1. 标准单表 CRUD

优先按 generator 模板落骨架,再补校验、权限、导出、翻译等项目约定。

Show full SKILL.md (149 more words)Show less
2. 强业务模块扩展

如果目标模块像 system、workflow 一样已经有复杂逻辑,优先增量修改,不要回退成模板式简化代码。

3. 基础能力复用

如果涉及数据权限、缓存、事务、导入导出、字典、翻译、加密、分组校验,优先查项目已有做法并复用公共能力。

4. 公共基础模块修改

修改 ruoyi-common 下的基础能力时,优先保证二进制/API 兼容:不要轻易改公开方法签名、泛型、返回值或异常语义。新增注释和小范围能力时,先查同包现有风格,例如 common-mybatis 的链式 wrapper、common-translation 的 TranslationInterface 实现、common-json 的字段处理器。

5. 注释修正任务

只要求“加注释/完善注释”时,默认补 JavaDoc,不改实现。优先补公共 API、接口方法、字段含义、复杂私有辅助方法;覆写框架回调方法只有在当前文件已有注释风格或业务语义不直观时才补。

输出要求

使用本 skill 时,默认期望产出应满足:

  • 后端分层完整,不直接在 controller 里堆业务逻辑。
  • BO/VO/Entity 职责分明。
  • 查询、分页、删除校验、写入校验逻辑闭环完整。
  • 权限、日志、防重、事务、数据权限尽量贴近同模块现有实现。
  • 如果同步改前端,前端 API 路径和后端接口保持一致。

快速检查清单

  • 包路径和 @RequestMapping 与模块保持一致。
  • 权限标识遵循 ${module}:${business}:${action}。
  • Mapper 继承 BaseMapperPlus<Entity, Vo>。
  • 手写 Service 注入 Mapper 时使用具体业务短名;代码生成器模板按类名首字母小写命名,例如 SysRoleMapper 生成 sysRoleMapper。
  • Service 按场景返回 PageResult 或 List<Vo>。
  • 查询代码优先使用 QueryBuilder.lambda(...) 构造 LambdaQueryWrapper,复杂模块沿用 QueryBuilder.lambdaJoin(...) 的 MPJ 联表风格。
  • 公共 Mapper 链式能力优先沿用 QueryBuilder.lambda(...)、QueryBuilder.lambdaJoin(...)、LambdaCrudChainWrapper、LambdaQueryBuilder、LambdaJoinQueryBuilder、LambdaQueryCondition 的 IfPresent / IfText / IfNotEmpty 风格。
  • 翻译能力优先沿用 TranslationInterface + @TranslationType + @Translation,批量翻译实现 translationBatch,避免退化成逐条查询。
  • JSON 响应增强优先沿用 JsonFieldProcessor 的 collect / prepare / process 三阶段模型。
  • Cloud 服务间调用优先通过 ruoyi-api-* 的 RemoteXxxService 契约和 @DubboReference / @DubboService,不要跨模块直接注入对方 mapper/service。
  • 涉及跨服务写入、文件上传、消息推送、工作流联动时检查是否需要 @GlobalTransactional、Dubbo 降级 mock/stub、数据权限上下文透传和 Nacos/Gateway 配置。
  • BO 使用 @AutoMapper(target = Entity.class, reverseConvertGenerate = false)。
  • VO 使用 @AutoMapper(target = Entity.class)。
  • 前端 API 路径与后端路由完全对应。
  • 前端列表页优先沿用 generator 模板里的 useLoading、useSearchReset、useTableSelection、useFormDialog、useDateRangeQuery、modal.confirm、requestDownload、useDict、pagination 等工具。

推荐提问方式

推荐把任务描述到下面这个粒度:

  • 目标模块和业务名
  • 是新建模块还是修改已有模块
  • 表名或接口前缀
  • 是否需要分页、导出、导入、数据权限、字典、翻译、联表
  • 希望参考哪个现有模块

例如:

  • 使用 $ruoyi-plus-ai-coding 在 system 模块新增一个标准单表 CRUD,参考 SysConfig 与 generator 模板。
  • 使用 $ruoyi-plus-ai-coding 修改 workflow/category 的查询和导出逻辑,保持现有模块风格。

© dromara, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in .codex/skills/ruoyi-plus-ai-coding of dromara/RuoYi-Cloud-Plus.

  • SKILL.md
  • agents/openai.yaml
  • references/backend.md
  • references/cloud.md
  • references/examples.md
  • references/frontend.md

Open the folder on GitHubat commit 92171d7

Compare with similar skills

Ruoyi Plus AI Coding next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ruoyi Plus AI Coding compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ruoyi Plus AI Coding this skilldromara/RuoYi-Cloud-Plus1.3k—~1.6kAutomated safety check: PassMIT
Devinggo Generatorhuagelong/devinggo122—~3.3kAutomated safety check: PassApache-2.0
Code PatternsAedelon/claude-code-blueprint120—~1.2kAutomated safety check: PassCustom licence
Livewire Developmentcoollabsio/coolify63k—~964Automated safety check: PassMIT
Meilisearch PHP PHPDoc Writermeilisearch/meilisearch-php757—~569Automated safety check: PassMIT
Verifygocronx-team/gocron808—~529Automated safety check: PassMIT

Similar skills

  • Devinggo Generator

    huagelong/devinggo

    DevingGo 代码生成器 CLI 工具集。当用户需要生成 CRUD 代码、创建模块、管理 Worker 任务、 导入导出模块、或需要快速搭建后端/前端代码时使用。适用于任何涉及代码生成、模块管理、 数据库表对应的前后端代码生成的场景。

    122 GitHub stars~3.3k tokensUpdated 3 mo ago
    DevOps & CloudAuto-check passed
  • Code Patterns

    Aedelon/claude-code-blueprint

    Reference patterns for REST APIs, pytest/vitest testing, Docker multi-stage builds, GitHub Actions CI/CD, PostgreSQL, TypeScript generics, Python async, and React Server Components.

    120 GitHub stars~1.2k tokensUpdated 7 mo ago
    DevOps & CloudAuto-check passed
  • Livewire Development

    coollabsio/coolify

    A skill your agent uses for any task or question involving Livewire.

    63k GitHub stars~964 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Meilisearch PHP PHPDoc Writer

    meilisearch/meilisearch-php

    Documents public methods of the meilisearch-php SDK with compact PHPDoc, including @see links, @since tags and the experimental-feature notice.

    757 GitHub stars~569 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Verify

    gocronx-team/gocron

    Reproduce the complete gocron CI pipeline locally and report every result.

    808 GitHub stars~529 tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Modern Web Guidance

    JetBrains/skills

    Official

    Search tool for modern web development best practices. An agent skill from JetBrains/skills.

    364 GitHub starsUsed in 3 repos~1.4k tokens
    DevOps & CloudAuto-check passed

Works with

Questions about Ruoyi Plus AI Coding

What does Ruoyi Plus AI Coding do?

在仓库内按代码生成器模板、项目 reference 文档和既有约定生成或修改代码。用于新增或修改 CRUD 模块、controller/service/mapper/BO/VO/entity、MyBatis-Plus/MPJ 查询、数据权限、缓存、翻译/JSON 增强、公共 common 模块能力、JavaDoc 注释,以及与后端接口配套的 Vue 3 + TypeScript…. Ruoyi Plus AI Coding is an agent skill from dromara/RuoYi-Cloud-Plus.

When should I use Ruoyi Plus AI Coding?

Ruoyi Plus AI Coding fits situations like: tasks that involve Type safety.

How do I install Ruoyi Plus AI Coding in Claude Code?

Run `npx skills add dromara/RuoYi-Cloud-Plus --skill ruoyi-plus-ai-coding -a claude-code`. Or copy the skill folder (.codex/skills/ruoyi-plus-ai-coding in dromara/RuoYi-Cloud-Plus) into .claude/skills/ruoyi-plus-ai-coding in your project. Claude Code loads it when a task matches its description.

How do I install Ruoyi Plus AI Coding in Codex?

Run `npx skills add dromara/RuoYi-Cloud-Plus --skill ruoyi-plus-ai-coding -a codex`. Or copy the skill folder (.codex/skills/ruoyi-plus-ai-coding in dromara/RuoYi-Cloud-Plus) into .agents/skills/ruoyi-plus-ai-coding in your project. Codex loads it when a task matches its description.

Can I use Ruoyi Plus AI Coding in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dromara/RuoYi-Cloud-Plus --skill ruoyi-plus-ai-coding -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ruoyi-plus-ai-coding, .gemini/skills/ruoyi-plus-ai-coding, .github/skills/ruoyi-plus-ai-coding and .opencode/skills/ruoyi-plus-ai-coding in your project.

What does Ruoyi Plus AI Coding need to run?

SKILL.md names no scripts, command-line tools or credentials: Ruoyi Plus AI Coding is instructions for the agent only.

Does Ruoyi Plus AI Coding access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ruoyi Plus AI Coding safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ruoyi Plus AI Coding use?

Ruoyi Plus AI Coding is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ruoyi Plus AI Coding use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.8k tokens, read only when the agent opens those files.

What are the alternatives to Ruoyi Plus AI Coding?

Skills that share tags, products or a category with Ruoyi Plus AI Coding: Devinggo Generator (huagelong/devinggo, 122 stars), Code Patterns (Aedelon/claude-code-blueprint, 120 stars), Livewire Development (coollabsio/coolify, 63k stars) and Meilisearch PHP PHPDoc Writer (meilisearch/meilisearch-php, 757 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ruoyi Plus AI Coding?

dromara (a GitHub organization) maintains it in dromara/RuoYi-Cloud-Plus, which has 1,312 GitHub stars. The repository was last updated on September 28, 2026.

Source: dromara/RuoYi-Cloud-Plus on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.