Jeecg Codegen New
jeecgboot/skills
A skill your agent uses when user asks to generate JeecgBoot CRUD code, create a new module, add/modify fields on existing module, or says "代码生成", "生成代码", "创建模块", "新增功能", "建表", "加字段", "加一个字段"…
A skill your agent uses when: generating mock data for development without a backend.
$ npx skills add ChenyCHENYU/Robot_Admin --skill mock-codegen -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ChenyCHENYU/Robot_Admin mock-codegen --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ChenyCHENYU/Robot_Admin.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/mock-codegen .claude/skills/mock-codegen && rm -rf skills-srcUse ~/.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/
Install the "mock-codegen" agent skill from https://github.com/ChenyCHENYU/Robot_Admin/tree/main/.github/skills/mock-codegen into .claude/skills/mock-codegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mock-codegen", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ChenyCHENYU/Robot_Admin/tree/main/.github/skills/mock-codegenType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ChenyCHENYU/Robot_Admin --skill mock-codegen -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ChenyCHENYU/Robot_Admin mock-codegen --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ChenyCHENYU/Robot_Admin.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/mock-codegen .agents/skills/mock-codegen && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mock-codegen" agent skill from https://github.com/ChenyCHENYU/Robot_Admin/tree/main/.github/skills/mock-codegen into .agents/skills/mock-codegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mock-codegen", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ChenyCHENYU/Robot_Admin --skill mock-codegen -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ChenyCHENYU/Robot_Admin mock-codegen --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ChenyCHENYU/Robot_Admin.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/mock-codegen .cursor/skills/mock-codegen && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mock-codegen" agent skill from https://github.com/ChenyCHENYU/Robot_Admin/tree/main/.github/skills/mock-codegen into .cursor/skills/mock-codegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mock-codegen", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ChenyCHENYU/Robot_Admin.git --path .github/skills/mock-codegen--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ChenyCHENYU/Robot_Admin --skill mock-codegen -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ChenyCHENYU/Robot_Admin mock-codegen --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ChenyCHENYU/Robot_Admin.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/mock-codegen .gemini/skills/mock-codegen && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mock-codegen" agent skill from https://github.com/ChenyCHENYU/Robot_Admin/tree/main/.github/skills/mock-codegen into .gemini/skills/mock-codegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mock-codegen", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ChenyCHENYU/Robot_Admin mock-codegenInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ChenyCHENYU/Robot_Admin --skill mock-codegen -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ChenyCHENYU/Robot_Admin.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/mock-codegen .github/skills/mock-codegen && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mock-codegen" agent skill from https://github.com/ChenyCHENYU/Robot_Admin/tree/main/.github/skills/mock-codegen into .github/skills/mock-codegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mock-codegen", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ChenyCHENYU/Robot_Admin --skill mock-codegen -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ChenyCHENYU/Robot_Admin mock-codegen --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ChenyCHENYU/Robot_Admin.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/mock-codegen .opencode/skills/mock-codegen && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mock-codegen" agent skill from https://github.com/ChenyCHENYU/Robot_Admin/tree/main/.github/skills/mock-codegen into .opencode/skills/mock-codegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mock-codegen", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mock-codegenA skill your agent uses when: generating mock data for development without a backend.
Mock Codegen is an agent skill from ChenyCHENYU/Robot_Admin. Use when: generating mock data for development without a backend. Optional skill - activated when user confirms or explicitly requests it. Triggers on: 生成mock, mock数据, 模拟数据, mock生成, 前端mock, 联调前mock.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Project scaffolding. It works with Vue.js. The repository describes itself as: 一款专为开发者省时间、提效率的现代化中后台模板,跳过低质造轮子,上手即开工!Vue 3 + TS + Naive UI,更有 Bun+Vite 双引擎,性能直接拉满💥 毫秒级热更新不卡顿,开发丝滑,您试试!还有49 个成熟组件,演示页+文档双重完善,无残缺、无坑点,复制即用无需额外调试;配套 8 个 @robot-admin…. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d9770ea. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mock Codegen loads about 1.2k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 186 words of instructions outside code blocks.
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.
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.
The full file from ChenyCHENYU/Robot_Admin at commit d9770ea, republished under its MIT licence (© ChenyCHENYU). 186 words, ~1,151 tokens.
.claude/skills/mock-codegen/SKILL.md (or your agent's skills folder).⚡ 可选技能 — 默认不在标准工作流中强制执行。
触发方式:
- 执行完整流程时(prototype-scan → api-contract → page-codegen),AI 会在最后询问:"是否需要生成 Mock 数据以便在联调前使用?"
- 用户明确说"帮我生成 mock 数据"时直接执行
本项目采用轻量级内联 Mock 模式:
data.ts 中,以函数或常量导出useTableCrud 支持传入本地数据数组代替真实 API 调用VITE_APP_ENV=development 判断是否启用在完整流程末尾,AI 询问:
✅ 页面代码已生成完成。
是否需要生成 Mock 数据(开发联调前使用)?
- 输入 Y / 是 → 生成 Mock 并注入 data.ts
- 输入 N / 否 → 跳过,等后端接口就绪后对接从 page-spec.columns + page-spec.form 推导每个字段的 mock 策略:
| 字段类型/名称特征 | Mock 策略 |
|---|---|
id / *Id | Date.now() + index 或递增数字 |
name / *Name | 中文姓名候选数组随机取 |
status | 从 page-spec tagMap 的 key 中随机取 |
date / *Time / createTime | new Date().toISOString() ± 随机天数 |
phone / mobile | 1${['3','5','7','8'][r]}${随机9位数} |
email | user${i}@example.com |
amount / price / *Fee | Math.floor(Math.random() * 10000) |
count / num / qty | Math.floor(Math.random() * 100) |
type / category | 从 options 配置中随机取 value |
remark / desc / note | 候选文本数组随机取 |
boolean / enabled | Math.random() > 0.5 |
在 data.ts 中追加以下代码(放在文件末尾,用区块注释隔开):
// ================= Mock 数据(联调前使用,对接真实接口后可删除)=================
/**
* * @description: 生成{{资源名}}模拟数据列表
* ? @param {number} count 生成条数,默认 30
* ! @return {ResourceItem[]} 模拟数据数组
*/
export const getMockList = (count = 30): {{ResourceItem}}[] => {
// 候选数据池
const names = ['张三', '李四', '王五', '赵六', '陈七', '周八', '吴九', '郑十']
const depts = ['技术部', '市场部', '运营部', '财务部', '人事部']
return Array.from({ length: count }, (_, i) => ({
id: i + 1,
// ... 根据 page-spec 字段自动生成(每个字段对应上表策略)
createTime: new Date(Date.now() - Math.random() * 30 * 24 * 3600 * 1000).toLocaleString(),
updateTime: new Date().toLocaleString(),
}))
}
/**
* * @description: 生成分页 Mock 响应(模拟后端响应结构)
* ? @param {number} page 当前页
* ? @param {number} pageSize 每页条数
* ! @return {object} 分页响应对象
*/
export const getMockPageResult = (page = 1, pageSize = 20) => {
const allData = getMockList(100)
const start = (page - 1) * pageSize
return {
list: allData.slice(start, start + pageSize),
total: allData.length,
page,
pageSize,
}
}如果页面使用了表格 CRUD,直接通过 query 注入 Mock 查询函数,不伪造接口配置:
import { useNaiveTableCrud } from '@robot-admin/request-core/naive'
const tableCrud = useNaiveTableCrud({
autoLoad: 'mounted',
defaultPageSize: 20,
query: async ({ page, pageSize }) => {
const result = getMockList(page, pageSize)
return { items: result.list, total: result.total }
},
columns: getTableColumns(),
})不需要 CRUD 状态机的纯展示页可直接在 onMounted 中赋值:
// index.vue 中
const tableData = ref<ResourceItem[]>([])
const loading = ref(false)
onMounted(async () => {
loading.value = true
try {
// 开发 Mock 模式 —— 对接真实接口时替换为 API 调用
// const res = await getResourceListApi({ page: 1, pageSize: 20 })
// tableData.value = res.data.list
tableData.value = getMockList(30) // 开发 Mock 用
} finally {
loading.value = false
}
})| 文件 | 操作 |
|---|---|
src/views/<domain>/<name>/data.ts | 追加 getMockList + getMockPageResult |
src/views/<domain>/<name>/index.vue | 可选:修改 onMounted 注入 mock 数据 |
// ===== Mock 数据 ===== 注释,便于对接真实接口时批量删除getTableColumns() 中的 key 完全一致status 等字段的值必须来自 STATUS_TAG_CONFIG 的 key,否则渲染会出现空白© ChenyCHENYU, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/mock-codegen of ChenyCHENYU/Robot_Admin.
Open the folder on GitHubat commit d9770ea
Mock Codegen 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mock Codegen this skillChenyCHENYU/Robot_Admin | 1k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Jeecg Codegen Newjeecgboot/skills | 239 | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Add Componentindielayer/ui | 222 | — | ~293 | Automated safety check: Pass | MIT | |
| Cabloy Frontend Scaffoldcabloy/cabloy | 982 | — | ~4.1k | Automated safety check: Pass | MIT | |
| Fe Tools Template RecommenderMichealWayne/fe-tools | 207 | — | ~1k | Automated safety check: Pass | None | |
| MoviePilot Plugin Developerjxxghp/MoviePilot | 12k | — | ~6.4k | Automated safety check: Pass | GPL-3.0 |
jeecgboot/skills
A skill your agent uses when user asks to generate JeecgBoot CRUD code, create a new module, add/modify fields on existing module, or says "代码生成", "生成代码", "创建模块", "新增功能", "建表", "加字段", "加一个字段"…
indielayer/ui
Add a new Vue component to @indielayer/ui with themes, tests, docs, and registry exports.
cabloy/cabloy
A skill your agent uses whenever the user wants the Zova frontend path in this Cabloy repo: create or extend pages, components, api or model beans, route/query/params work, metadata refresh…
MichealWayne/fe-tools
Recommend the most suitable project template or initialization path from fe-tools project-templates based on product, framework, runtime, and delivery constraints.
jxxghp/MoviePilot
Builds, fixes and validates MoviePilot local plugins for V3 and V2 hosts: metadata files, source layout, Vue and Vuetify pages, commands, services and local reload.
jeecgboot/skills
JeecgBoot UniApp3 移动端 CRUD 代码生成器。Use when user asks to generate UniApp3/mobile/APP CRUD pages, create mobile list/form pages, or says '生成移动端代码', '生成APP页面', 'uniapp代码生成', '移动端CRUD', '生成uniapp页面'…
ChenyCHENYU/Robot_Admin
A skill your agent uses when: generating TypeScript API layer (type definitions + request functions) from page-spec JSON or Swagger/OpenAPI docs.
ChenyCHENYU/Robot_Admin
A skill your agent uses when: upgrading dependencies, adding common features, or when the user explicitly requests branch sync check.
ChenyCHENYU/Robot_Admin
A skill your agent uses when: reviewing code for compliance with Robot Admin project conventions, or when generating a compliance report.
ChenyCHENYU/Robot_Admin
A skill your agent uses when: generating Vue 3 page code from either a page-spec JSON or a natural language description.
ChenyCHENYU/Robot_Admin
A skill your agent uses when: analyzing Axure exported HTML prototype files or detailed design documents to extract page inventory, classify interaction patterns, and produce a structured page-spec…
ChenyCHENYU/Robot_Admin
A skill your agent uses when: registering new pages into the dynamic router system.
Works with
Categories
A skill your agent uses when: generating mock data for development without a backend. Mock Codegen is an agent skill from ChenyCHENYU/Robot_Admin. Use when: generating mock data for development without a backend.
Mock Codegen fits situations like: : generating mock data for development without a backend; explicitly requests it.
Run `npx skills add ChenyCHENYU/Robot_Admin --skill mock-codegen -a claude-code`. Or copy the skill folder (.github/skills/mock-codegen in ChenyCHENYU/Robot_Admin) into .claude/skills/mock-codegen in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ChenyCHENYU/Robot_Admin --skill mock-codegen -a codex`. Or copy the skill folder (.github/skills/mock-codegen in ChenyCHENYU/Robot_Admin) into .agents/skills/mock-codegen in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ChenyCHENYU/Robot_Admin --skill mock-codegen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mock-codegen, .gemini/skills/mock-codegen, .github/skills/mock-codegen and .opencode/skills/mock-codegen in your project.
SKILL.md names no scripts, command-line tools or credentials: Mock Codegen is instructions for the agent only.
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.
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.
Mock Codegen is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Mock Codegen: Jeecg Codegen New (jeecgboot/skills, 239 stars), Add Component (indielayer/ui, 222 stars), Cabloy Frontend Scaffold (cabloy/cabloy, 982 stars) and Fe Tools Template Recommender (MichealWayne/fe-tools, 207 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ChenyCHENYU (a GitHub user) maintains it in ChenyCHENYU/Robot_Admin, which has 1,020 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 8, 2026.
Source: ChenyCHENYU/Robot_Admin on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.