Form logo

Form

Organization
lightpointventures
form

当用户想做表单、联系表单、注册表单、问卷调查、报名页时使用 — 生成带验证的表单页面

Overview

Publisherlightpointventures
Repositoryclaude-code-starter
Skill nameform
Stars
36
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by lightpointventures on GitHub. Read the source before you install it.

Installation

Install the Form AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/lightpointventures/claude-code-starter/tree/main/skills/form
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lightpointventures/claude-code-starter.git /tmp/claude-code-starter
mkdir -p .claude/skills
cp -r /tmp/claude-code-starter/skills/form .claude/skills/form
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Form in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Form on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Form is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

生成表单

帮用户快速生成一个带验证的、可直接使用的表单。

步骤

1. 确定表单类型

如果用户已经说了,直接开始。否则问:

你需要什么类型的表单?常见的有:

  • 联系表单(姓名、邮箱、留言)
  • 注册/登录表单
  • 问卷调查
  • 报名表
  • 订单表单
  • 多步骤向导(如注册流程:基本信息 > 偏好设置 > 确认提交) 也可以直接告诉我需要哪些字段。

2. 确认字段

根据表单类型列出默认字段,让用户确认:

这个表单包含以下字段: (列出字段名、类型、是否必填) 需要增减字段吗?

支持的字段类型:

  • 文本输入、密码、邮箱、电话、数字
  • 下拉选择、单选/多选、开关切换
  • 日期选择、时间选择
  • 文件上传(支持拖拽、文件类型限制、大小限制、多文件)
  • 富文本编辑器、颜色选择器
  • 条件字段(根据其他字段的值动态显示/隐藏,例:选择"其他"时出现补充说明输入框)

3. 生成表单

检测项目技术栈,生成对应的表单代码:

  • 字段组件 — 根据上一步确认的类型生成对应组件
  • 实时验证 — 必填检查、格式验证(邮箱、手机号)、长度限制、自定义规则
  • 错误提示 — 每个字段下方显示具体错误信息,提交时滚动到第一个错误字段
  • 提交处理 — loading 状态、防重复提交、成功提示、错误处理
  • 样式 — 整洁的布局,移动端友好

多步骤向导额外包含:

  • 步骤指示器(当前步骤高亮)
  • 上一步/下一步按钮,每步独立验证
  • 最后一步显示所有填写内容的确认摘要

无障碍要求(所有表单必须满足):

  • 每个输入框关联 label(使用 for/id 或嵌套)
  • 错误信息使用 aria-describedby 关联到对应字段
  • 必填字段标注 aria-required="true"
  • 支持纯键盘操作:Tab 切换字段、Enter 提交、Escape 关闭弹窗
  • 焦点管理:页面加载后聚焦第一个字段,提交失败后聚焦第一个错误字段

4. 确认

表单已生成。需要调整字段、样式或验证规则吗?

完成后提示:

用 /api 生成表单提交的后端接口。用 /email 配置表单提交后发送通知邮件。

遇到问题

  • 验证不生效 — 检查是否在 submit handler 中调用了验证函数;确认验证规则绑定到了正确的字段 name/id
  • 提交后页面刷新导致数据丢失 — form 的 onSubmit 中需要 e.preventDefault();如果用 action 属性提交,改为 JS 异步提交
  • 文件上传失败 — 确认 form 标签有 enctype="multipart/form-data";检查后端接收文件的大小限制配置
  • 手机端键盘遮挡输入框 — 输入框获取焦点时用 scrollIntoView() 滚动到可见区域;避免 fixed 定位的提交按钮遮挡底部字段
  • 多步骤表单切换步骤后数据丢失 — 确保每步的数据存在父组件 state 中,而不是各步骤的局部 state

Frequently asked questions

What does the Form AI skill do?

当用户想做表单、联系表单、注册表单、问卷调查、报名页时使用 — 生成带验证的表单页面

Why use Form on TypingMind?

Because you install it once and use it with any model. Form is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Form in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lightpointventures/claude-code-starter/tree/main/skills/form. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Form?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Form?

As many as you like. As long as a model supports skills, you can use Form with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Form AI skill free?

Yes. It is published on GitHub by lightpointventures under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇