Yida Table Form logo

Yida Table Form

Organization
openyida
yida-table-form

宜搭表格形态批量表单提交页面开发。支持动态增删行、行内编辑验证、Excel 粘贴导入、草稿暂存、批量 saveFormData 提交。适用于需要一次性录入多条表单数据的场景。

Overview

Publisheropenyida
Repositoryopenyida
Skill nameyida-table-form
Stars
228
Forks
50
Bundled files
1
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.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

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

Installation

Install the Yida Table 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/openyida/openyida/tree/main/yida-skills/skills/yida-table-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/openyida/openyida.git /tmp/openyida
mkdir -p .claude/skills
cp -r /tmp/openyida/yida-skills/skills/yida-table-form .claude/skills/yida-table-form
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yida Table 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 Yida Table 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 Yida Table 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.

宜搭自定义页面表格表单提交技能

严格禁止 (NEVER DO)

  • 不要在前端做批量提交时使用串行(逐条等待),必须用 Promise.all 并发提交
  • 不要在提交前跳过行验证,必须先 validateRow 再提交
  • 不要硬编码 FORM_UUID,必须从 project/config.json 或用户提供的信息中获取
  • 不要在提交成功后保留草稿,必须调用 clearDraft() 清除 localStorage
  • 不要忽略提交失败的行,必须在 UI 上标红并提示用户修正后重新提交

严格要求 (MUST DO)

  • 批量提交前必须确认:执行批量提交前,必须向用户展示待提交数据的摘要(行数、关键字段),获得用户明确同意后再执行
  • 必须在 COLUMNS 配置区定义所有列,字段 ID 从表单 Schema 中提取
  • 必须实现草稿自动保存(localStorage),防止用户刷新丢失数据
  • 必须在提交结果中区分成功/失败数量,失败行保留可编辑状态
  • 批量提交必须使用 Promise.all 并发,不得串行等待

适用场景

用户意图触发条件
批量录入同类数据"批量添加"、"批量录入"、"Excel 导入"
行内编辑 + 批量保存"表格形式填写"、"多行同时编辑"
Excel 粘贴导入"从 Excel 粘贴"、"复制粘贴数据"

触发条件

正向触发:

  • "批量添加"、"批量录入"、"Excel 导入"
  • "表格形式填写"、"多行同时编辑"
  • "从 Excel 粘贴"、"复制粘贴数据"

⚠️ 表格表单在移动端体验差,移动端场景建议使用标准表单。

异常处理

异常场景处理方式
批量提交部分失败失败行在 UI 上标红,保留可编辑状态,提示用户修正后重新提交
提交前未验证必须先 validateRow 验证所有行,再执行批量提交
提交成功后草稿未清除必须调用 clearDraft() 清除 localStorage
串行提交导致超时必须使用 Promise.all 并发提交,不得串行等待
FORM_UUID 硬编码必须从 project/config.json 或用户提供的信息中获取,不得硬编码
fieldId 不存在先执行 yida-get-schema 获取真实 fieldId
草稿恢复失败提示用户 localStorage 可能被清空,重新录入数据
接口超时减少单次提交条数(建议 ≤50 条),分批提交
数据量过大建议分批录入,每批不超过 100 条

Agent 错误处理策略

当 Agent 执行本技能遇到错误时,必须遵循以下默认行为:

错误类型默认处理策略
代码生成失败停止执行,向用户展示错误信息,询问是否重试或调整需求
参数缺失(FORM_UUID/字段 ID 等)主动询问用户补充,或引导用户使用 yida-get-schema 获取
权限不足 / 登录态失效停止执行,提示用户执行 openyida auth status 检查登录态
批量提交部分失败展示失败行详情,保留可编辑状态,引导用户修正后重试
字段类型不支持停止执行,提示用户该字段类型暂不支持,建议调整表单设计
未知错误停止执行,完整展示错误信息,建议用户反馈问题

概述

在批量录入同类数据(如批量添加商品、批量录入考勤、批量创建任务)的场景下,标准表单页面每次只能提交一条记录,效率低下。本技能提供表格形式的批量表单提交方案,支持行内编辑、验证和批量提交。


何时使用

  • 批量录入同类数据(如:批量添加商品、批量录入考勤)
  • Excel 式数据编辑体验
  • 行内编辑 + 批量保存

核心数据结构

javascript
// 每行数据结构
{
  id: 'temp_' + Date.now(),   // 临时行 ID(提交后替换为 formInstId)
  fieldA: '',                  // 各字段值
  fieldB: '',
  _status: 'valid',            // 'valid' | 'invalid' | 'submitting' | 'submitted'
  _errors: {},                 // { fieldA: '必填', fieldB: '格式错误' }
}

实现内容

表格表单页面需要包含动态增删行、行内验证、Excel 粘贴导入、草稿暂存和批量提交;字段 ID 先从目标表单 Schema 获取,再写入列配置。

功能说明

动态增删行

  • 点击「+ 添加行」在表格末尾新增空行
  • 点击行末的 🗑 按钮删除该行(已提交成功的行不可删除)
  • 表格始终保留至少一行

Excel 粘贴导入

点击「📋 粘贴 Excel 数据」后,将从 Excel 复制的内容粘贴到剪贴板,系统自动按 Tab 分隔解析列,按换行分隔解析行,追加到现有数据后。

注意:列顺序需与 COLUMNS 定义一致。

行内验证

提交前自动验证所有行:

  • 必填字段为空 → 标红并显示错误信息
  • 验证失败的行背景变为浅红色
  • 全部通过后才发起提交请求

草稿暂存

每次修改单元格后自动将数据保存到 localStorage,key 为 yida_table_form_draft_{formUuid}。刷新页面后自动恢复草稿。提交全部成功后自动清除草稿。

批量提交

使用 Promise.all 并发提交所有行,每行独立调用 saveFormData:

  • 提交中的行显示 loading 状态
  • 提交成功的行背景变绿,显示 ✓
  • 提交失败的行背景变红,显示错误信息,可修正后重新提交

自定义配置

修改文件顶部的配置区即可适配不同表单:

javascript
var FORM_UUID = 'FORM-XXX';   // 替换为实际表单 UUID

var COLUMNS = [
  // type 支持:'text' | 'select' | 'date'
  { label: '字段名', field: 'fieldId_xxx', type: 'text', required: true },
  { label: '下拉字段', field: 'selectField_xxx', type: 'select', required: false,
    options: ['选项A', '选项B', '选项C'] },
];

注意事项

  • 本技能不读写 memory:表格表单的草稿数据通过 localStorage 在浏览器本地持久化,不依赖跨会话的 memory 状态

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Yida Table Form AI skill do?

宜搭表格形态批量表单提交页面开发。支持动态增删行、行内编辑验证、Excel 粘贴导入、草稿暂存、批量 saveFormData 提交。适用于需要一次性录入多条表单数据的场景。

Why use Yida Table Form on TypingMind?

Because you install it once and use it with any model. Yida Table 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 Yida Table Form in TypingMind?

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

Which AI models can use Yida Table 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 Yida Table Form?

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

Is the Yida Table Form AI skill free?

Yes. It is published on GitHub by openyida 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 👇