yida-business-rule

yida-business-rule is a skill for Claude Code, Codex from openyida/openyida. It costs 61 tokens per session (1,857 once invoked), scanned A, original, MIT.

A guide for configuring Yida form business rules, including formulas that insert, update, delete, or upsert records across forms. Yida is a form-based business application platform, and an upsert updates a matching record or creates one when no match exists.

In plain words
What is it for?
Use it when a record is submitted, edited, or deleted and related records in another form must be inserted, updated, deleted, or upserted. It covers the required formula structure and the correct setup path in the form designer.
Why use it?
It explains how to connect form events to changes in another form without using integration automation. It also helps avoid invalid formulas caused by typing field references instead of inserting the platform's internal tokens.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when a record is submitted, edited, or deleted and related records in another form must be inserted, updated, deleted, or upserted. It covers the required formula structure and the correct setup path in the form designer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openyida/openyida/yida-business-rule
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add openyida/openyida --skill yida-business-rule
Clone the repo
git clone --depth 1 https://github.com/openyida/openyida

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for yida-business-rule

README.md
[![agentmods](https://agentmods.dev/badge/skills/openyida/openyida/yida-business-rule/github.svg)](https://agentmods.dev/skills/openyida/openyida/yida-business-rule)
Your own site
<a href="https://agentmods.dev/skills/openyida/openyida/yida-business-rule"><img src="https://agentmods.dev/badge/skills/openyida/openyida/yida-business-rule/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for yida-business-rule

Your own site · 80×15
<a href="https://agentmods.dev/skills/openyida/openyida/yida-business-rule"><img src="https://agentmods.dev/badge/skills/openyida/openyida/yida-business-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,857 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.01857
Opus 5.5 $0.00024 $0.00743
Sonnet 5.5 $0.00012 $0.00371
Haiku 4.5 $0.00006 $0.00186

Measured 1mo ago against content hash 7b68eb7f03da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

yida-business-rule scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

yida-skills/skills/yida-business-rule/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

yida-business-rule — 业务关联规则高级函数

适用范围

业务关联规则是宜搭表单设置里的旧式/低频跨表联动能力。用户明确提到以下意图时使用本技能:

  • "业务关联规则"、"表单事件里的公式执行"
  • "高级函数"、"INSERT"、"UPDATE"、"DELETE"、"UPSERT"
  • "要在表单设置里配 upsert/update/delete/insert"
  • 明确不想用集成自动化,而要用公式函数做跨表增删改

配置入口

在表单设计器里进入:

表单设置 → 表单事件 → 公式执行 → 添加业务关联规则

业务关联规则弹窗包含三个事件输入框:

事件 触发时机
单据提交 新增记录提交成功后
单据删除 删除记录成功后
单据编辑 编辑记录提交成功后

点击事件输入框会打开「公式执行」编辑器。配置完成后必须依次确认:公式弹窗 → 业务关联规则弹窗 → 保存表单。

关键原则:必须插入令牌

编写前通过 use_skill 加载 yida-formula,查看“写配置前先处理这些易错点”,共用函数和字段选择方法。业务动作保留目标表、当前数据、事件及完整规则;条件中的 AND/EQ 等按该动作的查询条件含义处理。通用表达式试算不执行这些写数据动作;保存回读与实际新增、修改、删除结果分别说明。

业务关联公式不是普通字段公式。普通字段公式引用字段用 #{fieldId};业务关联规则引用目标表、目标字段、当前表字段时,必须在公式编辑器左侧列表点击插入令牌。

不要直接手敲中文表单名或字段名。实际验证中,手敲下面这种文本会报非法标识符:

UPSERT(Upsert目标,EQ(Upsert目标.键,"x"),"",Upsert目标.键,"x")

正确方式是在编辑器中输入函数名、括号、逗号、字符串常量,然后点击左侧字段列表插入 Upsert目标、Upsert目标.键 等令牌。最终输入框看起来可能和手敲文本相似,但内部结构不同。

高级函数签名

函数 格式 说明
INSERT INSERT(目标表, 目标列1, 目标值1, 目标列2, 目标值2, ...) 向目标表插入新实例
UPDATE UPDATE(目标表, 主条件, 子条件, 目标列1, 目标值1, ...) 更新目标表中满足条件的数据
UPSERT UPSERT(目标表, 主条件, 子条件, 目标列1, 目标值1, ...) 有匹配数据则更新,无匹配数据则插入
DELETE DELETE(目标表, 主条件, 子条件) 删除目标表中满足条件的数据

子条件 用于定位目标表某条数据下的子表单明细。不操作子表单时必须写 "",不能省略。

UPSERT 模板

普通主表字段 upsert:

UPSERT(目标表, EQ(目标表.业务键, 当前表业务键), "", 目标表.业务键, 当前表业务键, 目标表.目标字段, 当前表来源字段)

库存类示例:

UPSERT(存货表, EQ(存货表.商品名, 商品名), "", 存货表.商品名, 商品名, 存货表.存货量, 存货表.存货量 + 进货量)

固定值探测示例:

UPSERT(Upsert目标, EQ(Upsert目标.键, "_openyida_upsert_probe"), "", Upsert目标.键, "_openyida_upsert_probe", Upsert目标.备注, "configured from form settings")

以上示例中的表单名和字段名只是可读展示。真实配置时,所有表单和字段引用都要从左侧列表点击插入令牌。

条件规则

  • 主条件、子条件 必须由逻辑函数构造,常见为 EQ()、AND()、OR()。
  • 除 AND()、OR() 外,逻辑函数第一个参数必须是目标表组件,例如 EQ(存货表.商品名, 商品名)。
  • 不要把当前表字段写在 EQ() 第一个参数,也不要在第一个参数里嵌套其他函数。
  • 更新普通组件时,目标列 必须是目标表普通组件。
  • 更新子表单明细时,目标列 必须是对应明细下的组件。
  • 同一个高级函数里不要同时更新普通组件和明细组件;需要拆成多条规则或多个函数。

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +2 lines 7b68eb7f03da
  2. 3mo ago First seen · 127 lines · 61 tokens per session scan A 2ac5eb6614fa

Subscribe to this mod's changes

yida-business-rule is a skill published in the GitHub repository openyida/openyida (234 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 1,857 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

yida-business-rule compared with skills from other repositories

yida-business-rule next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
yida-business-ruleopenyida/openyidaSkill234todayMITA61Claude Code, Codex
newclacky-ai/openclackySkill1.2k3d agoMITA10Claude Code
channel-managerclacky-ai/openclackySkill1.2k3d agoMITB195Claude Code
webflow-mcp:cms-best-practiceswebflow/webflow-skillsSkill1376d agoMITA40Cursor
webflow-mcp:cms-collection-setupwebflow/webflow-skillsSkill1376d agoMITA47Cursor
a0-developmentagent0ai/agent-zeroSkill20kyesterdaynoneA24Claude Code, Codex
lark-skill-makerseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA30Claude Code, Codex