Agent skill

Yida Canvas Table Form

by openyida in openyida/openyida

自定义页面表格批量录入技能。使用 YidaCodeCanvas 组件和 antd Table、Input、Select、DatePicker、React hooks 实现草稿、行级校验、分批并发提交和行级错误保留。YidaCodeCanvas 组件内不能直接调用 this.utils.yida.;写入默认消费发布层注入的 window.OPENYIDAYIDAAPI,提示、跳转等根级工具消费…

MITAuto-check passedFrontend & Design

Install Yida Canvas Table Form

skills CLI
$ npx skills add openyida/openyida --skill yida-canvas-table-form -a claude-code

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

GitHub CLI
$ gh skill install openyida/openyida yida-canvas-table-form --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/openyida/openyida.git skills-src && mkdir -p .claude/skills && cp -r skills-src/yida-skills/skills/yida-canvas-table-form .claude/skills/yida-canvas-table-form && 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
yida-canvas-table-form
GitHub stars
221
Token cost
~1.3k tokens
SKILL.md length
201 words
Files
1
Skills in repo
59
Repo updated
First seen
Licence
MIT

At a glance

自定义页面表格批量录入技能。使用 YidaCodeCanvas 组件和 antd Table、Input、Select、DatePicker、React hooks 实现草稿、行级校验、分批并发提交和行级错误保留。YidaCodeCanvas 组件内不能直接调用 this.utils.yida.;写入默认消费发布层注入的 window.OPENYIDAYIDAAPI,提示、跳转等根级工具消费…

  • Works in 8 steps: YidaCodeCanvas 组件内没有平台 JSX 组件实例桥:禁止在… → 写入桥必须先验证:默认使用… → 未验证不得伪装闭环:桥未配置或未验证时,提交按钮禁用或进入清晰的“待接入”状态;不… → …
  • Tasks that involve React components
  • SKILL.md covers 核心定位, 路由边界, 致命规则(FATAL) and 数据桥契约, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Yida Canvas Table Form is an agent skill from openyida/openyida. 自定义页面表格批量录入技能。使用 YidaCodeCanvas 组件和 antd Table、Input、Select、DatePicker、React hooks 实现草稿、行级校验、分批并发提交和行级错误保留。YidaCodeCanvas 组件内不能直接调用 this.utils.yida.;写入默认消费发布层注入的 window.OPENYIDAYIDAAPI,提示、跳转等根级工具消费 window.OPENYIDAUTILS,也可走已验证连接器或同源业务桥,未验证时不得声称提交闭环。

Its SKILL.md is about 1.3k 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 Frontend & Design, covering React components. It works with Ant Design and React. The repository describes itself as: Your own personal YiDA AI assistant! The licence is MIT.

When your agent uses it

  • Tasks that involve React components

Example prompts

  • “/yida-canvas-table-form”

Workflow steps

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

  1. YidaCodeCanvas 组件内没有平台 JSX 组件实例桥:禁止在 YidaComp 源码中直接调用 this.utils.yida.*、this.$(...) 或 this.dataSourceMap;需要宜搭表单写入时消费发布层注入的…
  2. 写入桥必须先验证:默认使用 window.OPENYIDA_YIDA_API.saveFormData/updateFormData,也可使用已验证连接器代理或同源业务桥。必须确认目标…
  3. 未验证不得伪装闭环:桥未配置或未验证时,提交按钮禁用或进入清晰的“待接入”状态;不得模拟成功、生成假 formInstId 或宣称数据已写入宜搭。
  4. 提交前先验证并确认:先完成行级校验,再向用户展示待提交行数和关键字段摘要,获得确认后发起写入。
  5. 分批并发而非无限并发:按固定批次切分,批次内使用 Promise.all 并发,批次间顺序推进;不得逐行串行,也不得一次性无限并发。
  6. 失败行必须保留:每行保存 _status、_errors 和 _submitError;部分失败后只重试失败行,成功行不能重复提交。
  7. 真实交付要发布证据:创建或修改 .canvas.jsx / .canvas.tsx 页面源码后,只有 openyida publish 成功才能声明页面已发布。
  8. 页面表面跟随应用主题:YidaCodeCanvas 下生成页面的根画布使用 min-height: 100vh,背景使用 var(--pod-page-bg-color, var(--color-white, #fff));表格面板使用当前应用主题中的…

What it can do on your machine

Read from SKILL.md and the folder at commit 4932d0b. 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 (its code samples are javascript and bash).

    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

Yida Canvas Table Form loads about 1.3k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 201 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

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 openyida/openyida at commit 4932d0b, republished under its MIT licence (© openyida). 201 words, ~1,307 tokens.

Download SKILL.mdSave it as .claude/skills/yida-canvas-table-form/SKILL.md (or your agent's skills folder).
name
yida-canvas-table-form
description
自定义页面表格批量录入技能。使用 `YidaCodeCanvas` 组件和 antd Table、Input、Select、DatePicker、React hooks 实现草稿、行级校验、分批并发提交和行级错误保留。`YidaCodeCanvas` 组件内不能直接调用 this.utils.yida.*;写入默认消费发布层注入的 window.__OPENYIDA_YIDA_API__,提示、跳转等根级工具消费 window.__OPENYIDA_UTILS__,也可走已验证连接器或同源业务桥,未验证时不得声称提交闭环。

自定义页面表格批量录入

核心定位

本技能是“批量录入 / 表格填写 / Excel 式多行编辑”的默认实现链路:

  • .canvas.jsx / .canvas.tsx + YidaComp。
  • React hooks 管理行状态、草稿和提交流程。
  • antd Table、Input、Select、DatePicker 构建行内编辑。
  • 分批并发写入,每行独立记录成功或失败。
  • 写入能力由显式、已验证的数据桥提供。

yida-table-form 保留给已检测到的平台 JSX 组件页面或 native 页面:仅当目标页面已确认依赖平台实例桥,或存量平台源码已确认直接使用实例 this.utils.yida.saveFormData 时使用。新建或默认 YidaCodeCanvas 批量录入即使需要 saveFormData,也走本技能和 window.__OPENYIDA_YIDA_API__.saveFormData。

路由边界

用户意图选择
默认批量录入、表格填写、多行编辑yida-canvas-table-form
YidaCodeCanvas 组件 + antd Tableyida-canvas-table-form
已检测到平台 JSX 组件页面/native 页面yida-table-form
新建 Canvas 页面里需要保存/更新表单数据yida-canvas-table-form,消费 window.__OPENYIDA_YIDA_API__.saveFormData/updateFormData
存量平台 JSX/native 源码直接要求实例 this.utils.yida.saveFormDatayida-table-form
只需 CLI 批量写入数据,不开发页面yida-data-management
需要创建或调整表单字段yida-create-form-page

致命规则(FATAL)

  1. YidaCodeCanvas 组件内没有平台 JSX 组件实例桥:禁止在 YidaComp 源码中直接调用 this.utils.yida.*、this.$(...) 或 this.dataSourceMap;需要宜搭表单写入时消费发布层注入的 window.__OPENYIDA_YIDA_API__,提示、跳转、移动端判断等根级工具消费 window.__OPENYIDA_UTILS__。
  2. 写入桥必须先验证:默认使用 window.__OPENYIDA_YIDA_API__.saveFormData/updateFormData,也可使用已验证连接器代理或同源业务桥。必须确认目标 appType/formUuid、请求体、返回体和错误码;window.__OPENYIDA_UTILS__.yida 与 yida API 桥必须指向同一对象。
  3. 未验证不得伪装闭环:桥未配置或未验证时,提交按钮禁用或进入清晰的“待接入”状态;不得模拟成功、生成假 formInstId 或宣称数据已写入宜搭。
  4. 提交前先验证并确认:先完成行级校验,再向用户展示待提交行数和关键字段摘要,获得确认后发起写入。
  5. 分批并发而非无限并发:按固定批次切分,批次内使用 Promise.all 并发,批次间顺序推进;不得逐行串行,也不得一次性无限并发。
  6. 失败行必须保留:每行保存 _status、_errors 和 _submitError;部分失败后只重试失败行,成功行不能重复提交。
  7. 真实交付要发布证据:创建或修改 .canvas.jsx / .canvas.tsx 页面源码后,只有 openyida publish <source> <appType> <displayPageFormUuid> 成功才能声明页面已发布。
  8. 页面表面跟随应用主题:YidaCodeCanvas 下生成页面的根画布使用 min-height: 100vh,背景使用 var(--pod-page-bg-color, var(--color-white, #fff));表格面板使用当前应用主题中的 --pod-card-bg-color、--pod-card-border 和 --pod-card-border-radius,antd 主色读取 --color-brand1-6。

数据桥契约

推荐让运行环境、连接器适配层或页面装配代码显式注入:

javascript
const writeBridge = {
  verified: true,
  name: 'same-origin-form-write-v1',
  async saveRow(payload, context) {
    // context: { rowId, idempotencyKey }
    // 调用已验证的同源接口或连接器代理
    return { formInstId: '真实接口返回值' };
  },
};

页面只在满足以下条件时允许提交:

  • writeBridge.verified === true。
  • typeof writeBridge.saveRow === 'function'。
  • 目标表单字段 ID 已由 yida-get-schema 取证。
  • 写入返回值能确定该行成功,失败会抛出带可展示信息的错误。
  • 重试策略有幂等键,或后端能防止重复记录。

不要把 access token、密钥或连接器凭据写入页面源码。它们应保留在宜搭同源会话、连接器或后端服务侧。

行状态

javascript
{
  _rowId: 'row_...',
  _status: 'draft', // draft | invalid | submitting | submitted | failed
  _errors: {},
  _submitError: '',
  fieldId_name: '',
  selectField_status: '',
  dateField_dueAt: ''
}
  • 修改单元格后清除该字段错误,并把 failed / invalid 行恢复为 draft。
  • 草稿使用 localStorage,key 至少包含目标 formUuid,避免不同表单串稿。
  • 保存草稿时排除敏感字段;页面明确告知草稿只保存在当前浏览器。
  • 全部成功后清除草稿;部分失败时保留失败行和错误,成功行标记为 submitted。

分批并发模板

javascript
async function submitInBatches(rows, writeBridge, batchSize) {
  const results = [];
  for (let index = 0; index < rows.length; index += batchSize) {
    const batch = rows.slice(index, index + batchSize);
    const batchResults = await Promise.all(batch.map(async (row) => {
      try {
        const value = await writeBridge.saveRow(toPayload(row), {
          rowId: row._rowId,
          idempotencyKey: 'canvas-table:' + row._rowId,
        });
        return { rowId: row._rowId, ok: true, value };
      } catch (error) {
        return { rowId: row._rowId, ok: false, error: error.message || '提交失败' };
      }
    }));
    results.push(...batchResults);
  }
  return results;
}

每批建议 5-20 行,具体以已验证接口限流为准。不要对失败行自动无限重试。

开发流程

下面命令以仓库根为视角;如果 cwd 已是 <workspace>/project,把 project/pages/src/... 改成 pages/src/...。

bash
# 1. 取得真实字段 ID
openyida get-schema <appType> <formUuid> --field-map-json

# 2. 编写表格批量录入页面

# 3. 接入并验证 window.__OPENYIDA_YIDA_API__ / 连接器 / 数据桥
# 未验证前保持 writeBridge.verified !== true

# 4. 本地快检
openyida compile project/pages/src/table-form-batch-submit.canvas.jsx --json

# 5. 真实交付时发布
openyida publish project/pages/src/table-form-batch-submit.canvas.jsx <appType> <displayPageFormUuid>

验收清单

  • 使用 .canvas.jsx / .canvas.tsx、YidaComp、hooks 和 antd 表格控件。
  • 源码不含 this.utils.yida.*、this.$、this.dataSourceMap。
  • 字段 ID 来自真实 Schema,不按 label 猜测。
  • 刷新可恢复草稿,全部成功后草稿被清除。
  • 必填、类型、范围等错误显示在对应行和单元格。
  • 提交前显示行数与关键字段摘要并要求确认。
  • 分批并发受控,成功/失败数量可见。
  • 部分失败后失败行可编辑、可单独重试,成功行不会重复写入。
  • 未验证写入桥时按钮禁用并显示未闭环原因。
  • 页面根画布使用 min-height: 100vh 并绑定 --pod-page-bg-color,与原生页面共用基础底色,隐藏导航不自动透明,表格面板和 antd 主色直接使用当前应用主题变量。
  • 真实接口验证与页面发布都有证据后,才声明完整交付。

完成证据

  • 本地样例:compileCanvasLocal 成功,依赖清单包含 react、antd、dayjs。
  • 写入闭环:已验证数据桥真实返回逐行写入结果,部分失败与重试路径经过验证。
  • 页面交付:目标 .canvas.jsx 已成功发布。
  • 缺少任一远程证据时,明确报告“本地页面已完成,写入桥/远程发布尚未验证”。

© openyida, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in yida-skills/skills/yida-canvas-table-form of openyida/openyida.

Open the folder on GitHubat commit 4932d0b

Compare with similar skills

Yida Canvas Table Form 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.

Yida Canvas Table Form compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Yida Canvas Table Form this skillopenyida/openyida221—~1.3kAutomated safety check: PassMIT
Feature SyncNG-ZORRO/ng-zorro-antd9.2k—~840Automated safety check: PassMIT
South Admin CRUD Generatorsouthliu/south-admin-react580—~1.7kAutomated safety check: PassMIT
LobeHub React Component Guidelobehub/lobehub83k—~1.7kAutomated safety check: PassCustom licence
Frontendstreamband/hydra-srt147—~582Automated safety check: PassApache-2.0
Faasjs React Ant Designfaasjs/faasjs121—~693Automated safety check: PassMIT

Similar skills

  • Feature Sync

    NG-ZORRO/ng-zorro-antd

    Sync an Ant Design React component or feature into NG-ZORRO.

    9.2k GitHub stars~840 tokensUpdated today
    Frontend & DesignAuto-check passed
  • South Admin CRUD Generator

    southliu/south-admin-react

    Generates a full CRUD page - page component, data model and API client - from the south-admin-react project's own VS Code snippet templates.

    580 GitHub stars~1.7k tokensUpdated 19 days ago
    Frontend & DesignAuto-check passed
  • Sets out how to write React components in LobeHub: which styling approach to use, which component libraries to prefer and in what order.

    83k GitHub stars~1.7k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Frontend

    streamband/hydra-srt

    A skill your agent uses for frontend work in webapp (React/TypeScript, UI implementation, tests, and refactors).

    147 GitHub stars~582 tokensUpdated 23 days ago
    Frontend & DesignAuto-check passed
  • A skill your agent uses when building or reviewing FaasJS React UI, especially @faasjs/ant-design pages, useFaas, useFaasStream, faas requests, CRUD screens, Table faasData, Description faasData…

    121 GitHub stars~693 tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 40 repos~769 tokens
    Frontend & DesignAuto-check passed

More from openyida/openyida

All 59 skills in this repo
  • Yida Canvas Custom Page

    openyida/openyida

    宜搭自定义页面开发规范,使用 YidaCodeCanvas 组件实现现代 React18 自定义页面。用于官网、看板、工作台、列表、详情、门户壳、可视化、hooks 交互、表单入口,以及需要门户组件、数据管理视图、成员、部门或上传组件的场景;发布层自动注入 yida/utils window 桥。

    221 GitHub stars~4.3k tokensUpdated today
    Auto-check passed
  • Openyida Release

    openyida/openyida

    快速发布 OpenYida npm 正式版或测试版。用户说“发布正式版”“发布测试版”“发 beta”或要求按当天日期生成版本 tag 时使用;不用于宜搭应用或自定义页面发布。

    221 GitHub stars~520 tokensUpdated today
    Auto-check passed
  • Yida Design Plan

    openyida/openyida

    Plan 模式的视觉设计分支。基于需求选择视觉方向,再结合业务页面规划维护 build-plan.json 的 visualStyle,供 CLI 派生 design.md。

    221 GitHub stars~756 tokensUpdated today
    Auto-check passed
  • Prevent stale local OpenYida custom page source from overwriting live designer edits.

    221 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Codemap

    openyida/openyida

    Generate, update, or drift-check agent-facing CodeMaps as progressive code terrain indexes for projects, features, capabilities, functions, modules, or bug chains.

    221 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Sdd Riper One Light

    openyida/openyida

    面向 GPT-5.5 等强模型和熟练用户的轻量 AI Agent Harness / checkpoint-driven coding skill。默认用户已经把任务切到基本可执行的最小混沌单元;模型自行分解、探索与推进,人类通过最终目标、最小 spec、复述、checkpoint、证据验证与回写来低干扰控盘。

    221 GitHub stars~1.5k tokensUpdated today
    Auto-check passed

Works with

Questions about Yida Canvas Table Form

What does Yida Canvas Table Form do?

自定义页面表格批量录入技能。使用 YidaCodeCanvas 组件和 antd Table、Input、Select、DatePicker、React hooks 实现草稿、行级校验、分批并发提交和行级错误保留。YidaCodeCanvas 组件内不能直接调用 this.utils.yida.;写入默认消费发布层注入的 window.OPENYIDAYIDAAPI,提示、跳转等根级工具消费…. Yida Canvas Table Form is an agent skill from openyida/openyida.

When should I use Yida Canvas Table Form?

Yida Canvas Table Form fits situations like: tasks that involve React components.

How do I install Yida Canvas Table Form in Claude Code?

Run `npx skills add openyida/openyida --skill yida-canvas-table-form -a claude-code`. Or copy the skill folder (yida-skills/skills/yida-canvas-table-form in openyida/openyida) into .claude/skills/yida-canvas-table-form in your project. Claude Code loads it when a task matches its description.

How do I install Yida Canvas Table Form in Codex?

Run `npx skills add openyida/openyida --skill yida-canvas-table-form -a codex`. Or copy the skill folder (yida-skills/skills/yida-canvas-table-form in openyida/openyida) into .agents/skills/yida-canvas-table-form in your project. Codex loads it when a task matches its description.

Can I use Yida Canvas Table Form 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 openyida/openyida --skill yida-canvas-table-form -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yida-canvas-table-form, .gemini/skills/yida-canvas-table-form, .github/skills/yida-canvas-table-form and .opencode/skills/yida-canvas-table-form in your project.

What does Yida Canvas Table Form need to run?

SKILL.md names no scripts, command-line tools or credentials: Yida Canvas Table Form is instructions for the agent only.

Does Yida Canvas Table Form 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 Yida Canvas Table Form 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 Yida Canvas Table Form use?

Yida Canvas Table Form 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 Yida Canvas Table Form use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Yida Canvas Table Form?

Skills that share tags, products or a category with Yida Canvas Table Form: Feature Sync (NG-ZORRO/ng-zorro-antd, 9.2k stars), South Admin CRUD Generator (southliu/south-admin-react, 580 stars), LobeHub React Component Guide (lobehub/lobehub, 83k stars) and Frontend (streamband/hydra-srt, 147 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Yida Canvas Table Form?

openyida (a GitHub organization) maintains it in openyida/openyida, which has 221 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on October 10, 2026.

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