Agent skill · Workflow & Productivity

fa-form-builder

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

fantastic-admingithub.com/fantastic-adminGitHub ↗
claude-codeMIT
Install
npx skills add fantastic-admin/basic --skill fa-form-builder --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/fa-form-builder/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 3,352
Language: Vue
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 表单页面生成器 在 Fantastic-admin 框架中生成独立的 Router 表单页面,使用 `FaForm/FaFormItem` 承接 vee-validate + zod 表单验证。 **生成的文件:** - `apps/<app>/src/views/{path}/{name}/index.vue` — 表单页面(含验证、提交骨架、固定操作栏) --- ## 第一步:确认工作区(必须阻塞等待用户回复) 本项目是 monorepo 架构,`apps/` 目录下存放各应用。**在执行任何文件读写操作之前**,必须先确认目标应用: 1. 执行 `ls apps/` 列出所有可用应用 2. **立即向用户提问**,明确询问要在哪个应用中生成表单页面,并**停止等待回复** 3. 收到用户明确回复后,才能继续后续步骤 > **严格规则**:如果用户没有在请求中明确说明目标应用(例如"在 example 应用中"、"apps/core"),则必须提问,不得自行猜测或默认选择任何应用。 确认后,后续所有文件路径均以该应用目录为根。 --- ## 工作流程 ### Step 1:收集基本信息 向用户询问(可合并为一次提问): 1. **模块名**(英文,用于文件路径,如 `user`、`profile`、`setting`) 2. **模块中文名**(用于页面标题,如 `用户信息`、`个人资料`) 3. **存放路径**(在 `apps/<app>/src/views/` 下的子目录,如 `system`、`account`,留空则直接放在 `src/views/` 下) ### Step 2:收集字段信息 询问用户该表单有哪些字段,每个字段需要: - **字段名**(英文,如 `name`、`avatar`、`status`) - **中文标签**(如 `姓名`、`头像`、`状态`) - **字段类型**(见 references/templates.md 中的字段类型映射表) - **是否必填** 如果用户没有提供字段信息,使用默认字段 `title`(标题,string,必填)作为示例占位,并在生成后提示用户替换。 ### Step 3:判断布局 字段较多时单列会导致页面过长,双列更紧凑。根据字段数量和复杂度判断是否询问用户布局偏好: - **单列**:`max-w-600px`,`grid gap-6`(字段少、字段较长时适合) - **双列**:`max-w-1200px`,`grid grid-cols-1 gap-x-8 gap-y-6 items-start md:grid-cols-2`(字段多、字段较短时适合) ### Step 4:确认并生成 汇总信息,展示将要生成的文件,确认后写入。 生成完成后提示:如需配置路由,请使用 `fa-r

What's inside
Steps it walks through
  1. 第一步:确认工作区(必须阻塞等待用户回复)
  2. 工作流程
  3. Step 1:收集基本信息
  4. Step 2:收集字段信息
  5. Step 3:判断布局
  6. Step 4:确认并生成
  7. 命名规范
  8. 代码模板
Ships with 1 file
  • references/templates.md
More from basic
All skills →
About this skill
What does the fa-form-builder skill do?

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

How do I install it?

Run `npx skills add fantastic-admin/basic --skill fa-form-builder --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From fantastic-admin/basic, a repository with 3,352 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going