Agent skill

Fa Crud Page Generator

by fantastic-admin in fantastic-admin/basic

为 Fantastic-admin 框架生成完整的 CRUD 业务模块,遵循框架标准模块结构和内建 Fa 组件体系,使用 FaForm/FaFormItem 生成新增/编辑表单,产出列表页、详情/编辑页、DetailForm 表单组件、API 模块、fake mock 数据、可选路由。用户说:'帮我做一个商品管理页面'、'搭一个用户列表,能搜索分页新增编辑删除'、'生成订单模块'、'新建 XX…

MITAuto-check passedFrontend & Design

Install Fa Crud Page Generator

skills CLI
$ npx skills add fantastic-admin/basic --skill fa-crud-page-generator -a claude-code

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

GitHub CLI
$ gh skill install fantastic-admin/basic fa-crud-page-generator --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/fantastic-admin/basic.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/fa-crud-page-generator .claude/skills/fa-crud-page-generator && 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
fa-crud-page-generator
GitHub stars
3.4k
Token cost
~1.1k tokens
SKILL.md length
279 words
Files
2 (incl. references)
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

为 Fantastic-admin 框架生成完整的 CRUD 业务模块,遵循框架标准模块结构和内建 Fa 组件体系,使用 FaForm/FaFormItem 生成新增/编辑表单,产出列表页、详情/编辑页、DetailForm 表单组件、API 模块、fake mock 数据、可选路由。用户说:'帮我做一个商品管理页面'、'搭一个用户列表,能搜索分页新增编辑删除'、'生成订单模块'、'新建 XX…

  • Works in 3 steps: 如果用户已经明确写了 apps/、admin 应用、pro 应用… → 如果没有明确目标应用,先执行 ls apps/… → 后续所有路径都以 apps//src/ 为根。
  • Frontend & Design work in your project
  • SKILL.md covers 先确认应用, 信息收集, 命名规范 and 代码生成规则, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Fa Crud Page Generator is an agent skill from fantastic-admin/basic. 为 Fantastic-admin 框架生成完整的 CRUD 业务模块,遵循框架标准模块结构和内建 Fa 组件体系,使用 FaForm/FaFormItem 生成新增/编辑表单,产出列表页、详情/编辑页、DetailForm 表单组件、API 模块、fake mock 数据、可选路由。用户说:'帮我做一个商品管理页面'、'搭一个用户列表,能搜索分页新增编辑删除'、'生成订单模块'、'新建 XX 管理模块'、'快速搭一个标准模块/CRUD 页面' 时,即使没有明确说 CRUD,也应触发此技能。

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/templates.md`).

It sits in Frontend & Design. It works with Vue.js and shadcn/ui. The repository describes itself as: ⭐⭐⭐⭐⭐ 面向 AI 编程的管理系统框架,兼容PC、移动端。AI-oriented management system framework, compatible with PC and mobile device. The licence is MIT.

When your agent uses it

  • Frontend & Design work in your project

Example prompts

  • “帮我做一个商品管理页面”
  • “搭一个用户列表,能搜索分页新增编辑删除”
  • “生成订单模块”
  • “/fa-crud-page-generator”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 如果用户已经明确写了 apps/、admin 应用、pro 应用 等目标应用,直接使用该应用。
  2. 如果没有明确目标应用,先执行 ls apps/ 查看可用应用,然后询问用户要生成到哪个应用,并等待回复。
  3. 后续所有路径都以 apps//src/ 为根。

What it can do on your machine

Read from SKILL.md and the folder at commit 1b5961e. 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

Fa Crud Page Generator loads about 1.1k tokens when it runs, and up to ~6.1k if it reads all its reference files. Until then it costs about 68 tokens; SKILL.md has 279 words of instructions outside code blocks.

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

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 fantastic-admin/basic at commit 1b5961e, republished under its MIT licence (© fantastic-admin). 279 words, ~1,139 tokens.

Download SKILL.mdSave it as .claude/skills/fa-crud-page-generator/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
fa-crud-page-generator
description
为 Fantastic-admin 框架生成完整的 CRUD 业务模块,遵循框架标准模块结构和内建 Fa* 组件体系,使用 FaForm/FaFormItem 生成新增/编辑表单,产出列表页、详情/编辑页、DetailForm 表单组件、API 模块、fake mock 数据、可选路由。用户说:'帮我做一个商品管理页面'、'搭一个用户列表,能搜索分页新增编辑删除'、'生成订单模块'、'新建 XX 管理模块'、'快速搭一个标准模块/CRUD 页面' 时,即使没有明确说 CRUD,也应触发此技能。

CRUD 页面生成器

在 Fantastic-admin 框架中生成标准 CRUD 业务模块。生成时遵循框架当前标准模块结构: 列表页、独立详情页、DetailForm 表单组件、API 模块、fake mock、可选路由和 route i18n 要一次性配套生成。

优先复刻框架现有写法,而不是重新发明页面结构:列表页用 FaSearchBar + FaTable + FaPagination,详情表单抽成 components/DetailForm/index.vue,独立详情页用 FaFixedBar 固定顶部标题和底部提交区。

生成文件清单:

  • apps/<app>/src/views/{path}/{module}/list.vue — 列表页
  • apps/<app>/src/views/{path}/{module}/detail.vue — 独立详情页,仅 router 模式需要
  • apps/<app>/src/views/{path}/{module}/components/DetailForm/index.vue — 新增/编辑表单
  • apps/<app>/src/api/modules/{fileName}.ts — API 模块
  • apps/<app>/src/api/fake_modules/{fileName}.fake.ts — fake mock 数据,可选
  • apps/<app>/src/router/modules/{routeFileName}.ts — 前端路由,可选
  • apps/<app>/src/locales/lang/route/{locale}.json — 路由标题 i18n,可选

先确认应用

本项目是 pnpm monorepo。开始写文件前先确认目标应用:

  1. 如果用户已经明确写了 apps/<app>、admin 应用、pro 应用 等目标应用,直接使用该应用。
  2. 如果没有明确目标应用,先执行 ls apps/ 查看可用应用,然后询问用户要生成到哪个应用,并等待回复。
  3. 后续所有路径都以 apps/<app>/src/ 为根。

不要默认猜测应用;生成到错误应用的返工成本很高。


信息收集

尽量一次性收集会影响文件结构的信息:

  • 模块名:英文,用于目录、API 文件和路由,如 product、order、systemUser
  • 模块中文名:用于标题和提示,如 商品、订单、用户
  • 存放路径:位于 src/views/ 下的子路径,如 mall、system/user,可为空
  • 字段清单:字段名、中文标签、类型、是否列表显示、是否搜索、是否表单显示、是否必填
  • 详情展示模式:router、modal、drawer,默认 router
  • 是否启用批量删除:默认启用
  • 是否支持列表高度自适应:默认生成 tableAutoHeight 代码
  • 是否生成 fake mock:开发阶段默认推荐生成
  • 是否生成路由和 route i18n:仅当前端路由由本地配置维护时生成

如果用户只给出模块名和很少字段,使用一个最小可运行字段: title(标题,string,列表/搜索/表单显示,必填),并在完成后提醒用户继续替换业务字段。


命名规范

给定模块名 name 和路径 path(相对于 apps/<app>/src/views/):

用途规则示例(path 为空,name=product)
视图目录src/views/{path}/{snake_case(name)}/src/views/product/
API 文件名path 参与业务命名时使用 camelCase;普通模块用 camelCase(name)product
fake 文件名与 API 文件名一致,放到 src/api/fake_modules/product.fake.ts
列表组件名PascalCase({path}-{name}-list)ProductList
详情组件名PascalCase({path}-{name}-detail)ProductDetail
路由 namecamelCase(name)List / camelCase(name)DetailproductList
API URL 前缀snake_case(path/name),无前导斜杠product

snake_case 用下划线连接多个单词,如 productCategory -> product_category。


代码生成规则

详细模板见 references/templates.md。生成时按这些规则填充模板:

  • list.vue 使用 <script setup lang="ts">,导入 type { TableColumn } from '@fantastic-admin/components'。
  • 表格列使用 computed<TableColumn<Item>[]>(...) 定义,页面模板使用 FaTable 的 :columns 与 #cell-xxx 插槽。
  • 搜索区使用 FaSearchBar + FaLabel,按钮保持“重置 / 筛选 / 展开收起”的顺序。
  • 工具栏通过 FaTable 的 #toolbar 插槽放“新增”和批量操作。
  • 行操作用 FaButton size="icon-sm" 编辑按钮和 FaDropdown 删除菜单。
  • 删除确认统一使用 useFaModal().confirm,提示成功统一使用 useFaToast().success。
  • router 模式在列表页通过 eventBus.on('get-data-list') 接收详情页提交后的刷新事件;卸载时 eventBus.off('get-data-list')。
  • modal / drawer 模式通过 useFaModal().create 或 useFaDrawer().create 渲染 DetailForm,confirm 时调用表单暴露的 submit();仅当返回 true 时刷新列表并关闭。
  • DetailForm 使用 FaForm/FaFormItem,表单对象使用 const model = ref<...>({...}),通过 useTemplateRef<FormExpose>('formRef') 获取表单引用,并只 defineExpose({ submit }) 给外部调用。
  • submit() 必须返回 Promise<boolean>:校验失败返回 false,新增/编辑成功后提示并返回 true。父级页面、modal、drawer 都必须检查返回值,避免校验失败时关闭页面或弹窗。
  • fake mock 文件放在 apps/<app>/src/api/fake_modules/,不是 api/modules/。
  • API 模块开启 mock 时在每个请求配置中设置 fake: true;不生成 fake 时去掉 fake: true。

路由生成

如果用户选择生成路由,优先调用或参考 fa-route-generator,并遵循最新标准模块路由模式:

  • 父级路由指向 Layout,meta.title 使用 $t('route.<module>.root'),设置合适图标。
  • 列表子路由 path: '',name: '<module>List',组件指向 list.vue。
  • 当父级路由只作为菜单入口、列表页作为默认子页时,列表路由使用 meta.menu: false 和 breadcrumb: false;业务模块如需列表作为独立菜单项,可按用户需求保留菜单。
  • router 模式详情路由为 detail/:id?,meta.menu: false,activeMenu 指向列表/父菜单路径。
  • 为避免列表和详情标签页状态混乱,列表路由设置 keepAlive: '<module>Detail',详情路由设置 keepAlive: true 与 noKeepAlive: '<module>List'。
  • route i18n 至少同步 zh-cn、zh-tw、en 三份 src/locales/lang/route/*.json。

生成前后检查

写文件前展示将生成/修改的文件列表,确认不会覆盖用户已有业务文件。若目标文件已存在,先读取并说明将如何合并。

完成后简要说明:

  • 已生成哪些文件;
  • 若未生成路由,提示可继续用 fa-route-generator 添加;
  • 若生成 fake mock,说明请求已配置 fake: true;
  • 若字段是枚举、状态、日期、上传等复杂类型,提醒用户按业务替换控件和 mock 取值。

不要修改 packages/components/ 内建组件;确实需要改内建组件时先征得用户确认。

© fantastic-admin, 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 1 other file (references) in skills/fa-crud-page-generator of fantastic-admin/basic.

  • SKILL.md
  • references/templates.md

Open the folder on GitHubat commit 1b5961e

Compare with similar skills

Fa Crud Page Generator 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.

Fa Crud Page Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fa Crud Page Generator this skillfantastic-admin/basic3.4k—~1.1kAutomated safety check: PassMIT
UithingBayBreezy/ui-thing729—~1.3kAutomated safety check: PassCustom licence
Tailwind To Stylexshadcn-labs/shadcn-cssinjs124—~2.7kAutomated safety check: PassMIT
UI UX Pro MaxOhh-889/skyroc79526 repos~3.6kAutomated safety check: NotesMIT
Atlaspacifio/ui154—~2.5kAutomated safety check: PassMIT
Shadcn Vuehirotaka/pragmatic-nuxt170—~3.9kAutomated safety check: PassMIT

Similar skills

  • Uithing

    BayBreezy/ui-thing

    Manages UI Thing components, prose, blocks, themes, shortcuts, docs, and MCP-driven workflows in Nuxt projects and in the UI Thing source repo.

    729 GitHub stars~1.3k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Tailwind To Stylex

    shadcn-labs/shadcn-cssinjs

    Migrate TailwindCSS to StyleX. An agent skill from shadcn-labs/shadcn-cssinjs.

    124 GitHub stars~2.7k tokensUpdated 29 days ago
    Frontend & DesignAuto-check passed
  • UI UX Pro Max

    Ohh-889/skyroc

    UI/UX design intelligence. An agent skill from Ohh-889/skyroc.

    795 GitHub starsUsed in 26 repos~3.6k tokens
    Frontend & DesignAuto-check: notes
  • Atlas

    pacifio/ui

    Atlas — a design language and UI guide system for agent interfaces.

    154 GitHub stars~2.5k tokensUpdated 5 mo ago
    Frontend & DesignAuto-check passed
  • Shadcn Vue

    hirotaka/pragmatic-nuxt

    Manages shadcn-vue components and projects — adding, searching, fixing, debugging, styling, and composing UI.

    170 GitHub stars~3.9k tokensUpdated 5 days ago
    Frontend & DesignAuto-check passed
  • Shadcn Vue Skilld

    skilld-dev/vue-ecosystem-skills

    A skill your agent uses when adding, configuring, or debugging shadcn-vue in a Vue or Nuxt project.

    181 GitHub stars~1.2k tokensUpdated 18 days ago
    Frontend & DesignAuto-check passed

More from fantastic-admin/basic

All 9 skills in this repo
  • Fa Route Generator

    fantastic-admin/basic

    管理 Vue Router 路由配置,用于 Fantastic-admin 框架。当用户提到以下任何需求时必须使用此技能:新建页面需要加路由、详情页不想显示在菜单里、新增页和编辑页老是开两个标签、从列表跳详情返回后状态丢失、给菜单项加 NEW 标签或红点、路由需要权限控制、配置页面保活、修改路由 meta、添加面包屑配置。即使用户只是说"加个路由"或"新建了一个页面",也应触发此技能。

    3.4k GitHub stars~565 tokensUpdated 11 days ago
    Auto-check passed
  • Fa Slot Creator

    fantastic-admin/basic

    在 Fantastic-admin 框架中创建插槽,向布局的任意位置注入自定义内容。当用户提到以下任何需求时必须使用此技能:在头部/侧边栏/工具栏/标签栏加东西、logo 旁边加内容、侧边栏底部加用户信息、加个悬浮按钮、在导航菜单右侧加自定义组件、想在框架布局某个区域插入内容、在页面顶部或底部插入全局横幅/公告/版权栏。即使用户只是说"在顶部加个…

    3.4k GitHub stars~565 tokensUpdated 11 days ago
    Auto-check passed
  • Fa Theme Customizer

    fantastic-admin/basic

    为 Fantastic-admin 框架创建和定制主题配色方案,始终同时生成明色(light)和暗色(dark)两套主题。当用户提到以下任何需求时必须使用此技能:换主题颜色、换配色、做一个 XX 风格的主题、主题太单调了、品牌色是 XXX 帮我生成主题、把 tweakcn…

    3.4k GitHub stars~1.3k tokensUpdated 11 days ago
    Auto-check passed
  • Fa Feedback

    fantastic-admin/basic

    当用户在使用 fa- 系列技能(如 fa-framework-settings、fa-slot-creator、fa-form-builder、fa-route-generator、fa-store-generator、fa-page-optimizer、fa-theme-customizer 等)时,在同一个目标上经历了 3…

    3.4k GitHub stars~610 tokensUpdated 11 days ago
    Auto-check passed
  • Fa Page Optimizer

    fantastic-admin/basic

    优化 Vue 页面,用 Fantastic-admin 框架内建组件(packages/components/)替换自定义实现和原生 HTML。当用户说:'帮我优化这个页面'、'把这些原生 HTML 换成框架组件'、'用 FaCard/FaModal/FaButton 重构一下'、'这个页面太乱了'、'统一一下 UI…

    3.4k GitHub stars~431 tokensUpdated 11 days ago
    Auto-check passed
  • Fa Form Builder

    fantastic-admin/basic

    为 Fantastic-admin 框架生成独立的表单页面,使用 FaForm/FaFormItem + vee-validate + zod 验证,表单 model 使用 ref,全部使用框架内建 Fa 组件。当用户说:'帮我做一个用户信息填写页'、'我只需要一个提交表单,不需要列表'、'做个设置页面,有几个输入框和保存按钮'、'生成一个注册/编辑/配置表单页'、'只要表单页,不需要增删改查'…

    3.4k GitHub stars~670 tokensUpdated 11 days ago
    Auto-check passed

Works with

Questions about Fa Crud Page Generator

What does Fa Crud Page Generator do?

为 Fantastic-admin 框架生成完整的 CRUD 业务模块,遵循框架标准模块结构和内建 Fa 组件体系,使用 FaForm/FaFormItem 生成新增/编辑表单,产出列表页、详情/编辑页、DetailForm 表单组件、API 模块、fake mock 数据、可选路由。用户说:'帮我做一个商品管理页面'、'搭一个用户列表,能搜索分页新增编辑删除'、'生成订单模块'、'新建 XX…. Fa Crud Page Generator is an agent skill from fantastic-admin/basic.

When should I use Fa Crud Page Generator?

Fa Crud Page Generator fits situations like: frontend & Design work in your project.

How do I install Fa Crud Page Generator in Claude Code?

Run `npx skills add fantastic-admin/basic --skill fa-crud-page-generator -a claude-code`. Or copy the skill folder (skills/fa-crud-page-generator in fantastic-admin/basic) into .claude/skills/fa-crud-page-generator in your project. Claude Code loads it when a task matches its description.

How do I install Fa Crud Page Generator in Codex?

Run `npx skills add fantastic-admin/basic --skill fa-crud-page-generator -a codex`. Or copy the skill folder (skills/fa-crud-page-generator in fantastic-admin/basic) into .agents/skills/fa-crud-page-generator in your project. Codex loads it when a task matches its description.

Can I use Fa Crud Page Generator 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 fantastic-admin/basic --skill fa-crud-page-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fa-crud-page-generator, .gemini/skills/fa-crud-page-generator, .github/skills/fa-crud-page-generator and .opencode/skills/fa-crud-page-generator in your project.

What does Fa Crud Page Generator need to run?

SKILL.md names no scripts, command-line tools or credentials: Fa Crud Page Generator is instructions for the agent only.

Does Fa Crud Page Generator 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 Fa Crud Page Generator 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 Fa Crud Page Generator use?

Fa Crud Page Generator 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 Fa Crud Page Generator use?

About 1.1k 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. Its references folder adds about 4.9k tokens, read only when the agent opens those files.

What are the alternatives to Fa Crud Page Generator?

Skills that share tags, products or a category with Fa Crud Page Generator: Uithing (BayBreezy/ui-thing, 729 stars), Tailwind To Stylex (shadcn-labs/shadcn-cssinjs, 124 stars), UI UX Pro Max (Ohh-889/skyroc, 795 stars) and Atlas (pacifio/ui, 154 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fa Crud Page Generator?

fantastic-admin (a GitHub organization) maintains it in fantastic-admin/basic, which has 3,414 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on September 29, 2026.

Source: fantastic-admin/basic on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.