yida-business-rule SKILL.md skillA

yida-business-rule from openyida/openyida is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add openyida/openyida/yida-business-rule@git:20261018.e0d7221

Pins git:20261018.e0d7221 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
openyida/openyida
Path
yida-skills/skills/yida-business-rule/SKILL.md
Versions recorded
6
Latest version
git:20261018.e0d7221, committed Oct 18, 2026
First version recorded
May 19, 2026
Size
6,623 bytes
Repository stars
231
License
MIT

宜搭表单业务关联规则与高级函数配置。用于在表单设置中配置业务关联规则,或使用 INSERT、UPDATE、DELETE、UPSERT 高级函数实现跨表增删改。适用于需要表单间数据联动的场景。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

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

## 适用范围

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

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

## 配置入口

在表单设计器里进入:

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

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

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

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

## 关键原则:必须插入令牌

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

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

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

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

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

## 高级函数签名

| 函数 | 格式 | 说明 |
|------|------|------|
| `INSERT` | `INSERT(目标表, 目标列1, 目标值1, 目标列2, 目标值2, ...)` | 向目标表插入新实例 |
| `UPDATE` | `UPDATE(目标表, 主条件, 子条件, 目标列1, 目标值1, ...)` | 更新目标表中满足条件的数据 |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add openyida/openyida/yida-business-rule@sha256:7b68eb7f03dae283

The line at the top of this page pins the label git:20261018.e0d7221, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_5augku6v5pl3qerg.svg)](https://markdownregistry.com/a/art_5augku6v5pl3qerg)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 6 versions of this file, between May 19, 2026 and Oct 18, 2026, about one every 30 days.

versioncommittedcommitsizeaudit
git:20261018.e0d7221 latest2026-10-18 e0d7221 6,623 BA view · diff
git:20261018.9a88d902026-10-18 9a88d90 6,622 BA view · diff
git:20260717.d0ccc712026-07-17 d0ccc71 6,226 BA view · diff
git:20260702.ac3bada2026-07-02 ac3bada 6,689 BA view · diff
git:20260519.93b0f242026-05-19 93b0f24 6,817 BA view · diff
git:20260519.a27e3872026-05-19 a27e387 6,714 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6623 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

openyida/openyida · 231 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_5augku6v5pl3qerg
GET https://markdownregistry.com/api/v1/resolve?ref=openyida/openyida/yida-business-rule
GET https://markdownregistry.com/api/v1/blob/7b68eb7f03dae2830a4c2091d593f2a146e52bd222c5b8016c1c1ad90471c279

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from openyida/openyida

codemap SKILL.md skill
openyida/openyida · .agents/skills/codemap/SKILL.md · Generate, update, or drift-check agent-facing CodeMaps as progressive code terrain indexes for projects, features…
v0.1.0 · audit A · 231 stars
karpathy-guidelines SKILL.md skill
openyida/openyida · .agents/skills/karpathy-guidelines/SKILL.md · Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
git:20260728.2c22517 · audit A · 231 stars
openyida-cross-platform-release-guard SKILL.md skill
openyida/openyida · .agents/skills/openyida-cross-platform-release-guard/SKILL.md · OpenYida 跨端发布风险守卫。当改动涉及浏览器/URL 拉起(openyida login、resolveBrowserLauncher、openBrowser、spawn 打开浏览器),或用户明确要求检查…
git:20261103.e9b68b8 · audit A · 231 stars
openyida-release SKILL.md skill
openyida/openyida · .agents/skills/openyida-release/SKILL.md · 快速发布 OpenYida npm 正式版或测试版。用户说“发布正式版”“发布测试版”“发 beta”或要求按当天日期生成版本 tag 时使用;不用于宜搭应用或自定义页面发布。
git:20260908.580e115 · audit A · 231 stars
sdd-riper-one-light SKILL.md skill
openyida/openyida · .agents/skills/sdd-riper-one-light/SKILL.md · 面向 GPT-5.5 等强模型和熟练用户的轻量 AI Agent Harness / checkpoint-driven coding skill。默认用户已经把任务切到基本可执行的最小混沌单元;模型自行分解、探索与推进,人类通过最终目标、…
v0.12.0 · audit A · 231 stars
skill-optimization-guide SKILL.md skill
openyida/openyida · .agents/skills/skill-optimization-guide/SKILL.md · 当需要优化一个已有 skill 文档时触发。读取目标 skill 全部文件,按四步流程重写,产出结构清晰、入口薄、描述直白的 skill 文档集。
git:20260805.afde623 · audit A · 231 stars
AGENTS.md AGENTS.md file
openyida/openyida · AGENTS.md
git:20261103.c25c160 · audit B · 231 stars
CLAUDE.md CLAUDE.md file
openyida/openyida · CLAUDE.md
git:20260827.65ec899 · audit A · 231 stars
openyida SKILL.md skill
openyida/openyida · yida-skills/SKILL.md · 宜搭应用开发总入口技能。通过具备代码生成能力的智能体(千问办公/Claude/Open Code 等)+ AI 宜搭,实现一句话搭建或修改完整应用。 当用户提到“宜搭”、“yida”、“AI…
git:20261105.1682d49 · audit A · 231 stars
yida-agent-center SKILL.md skill
openyida/openyida · yida-skills/skills/yida-agent-center/SKILL.md · 宜搭代理中心管理。查询、新增、编辑、撤销在职流程代理和离职代理,支持代处理流程、代提交流程、全部或部分流程范围。适用于设置流程审批的代理人。
git:20260702.ac3bada · audit A · 231 stars
yida-aggregate-table SKILL.md skill
openyida/openyida · yida-skills/skills/yida-aggregate-table/SKILL.md · 宜搭聚合表(virtualView)管理。用于列出、创建空聚合表、读取/预览设计配置、保存草稿、发布配置和查询构建状态;严格区分 stash 与 live revision,并在写入前校验固定前端已确认的六数组契约。
git:20260827.a7807b7 · audit A · 231 stars
yida-app-lifecycle SKILL.md skill
openyida/openyida · yida-skills/skills/yida-app-lifecycle/SKILL.md · 宜搭应用启用与停用。仅当用户明确要求启用、停用、上线或下线某个已有应用时使用;不用于创建应用、发布页面或发布到钉钉应用中心。
git:20260808.b50cd3d · audit A · 231 stars

Every file in openyida/openyida

Browse by kind, by grade A, or by owner.