Codex Rules Reference
code-yeongyu/oh-my-openagent
Explains how the Codex Rules plugin injects project instructions and file-specific rules into a session, which rule files it reads and which settings control it.
宜搭表单业务关联规则与高级函数配置。用于在表单设置中配置业务关联规则,或使用 INSERT、UPDATE、DELETE、UPSERT 高级函数实现跨表增删改。适用于需要表单间数据联动的场景。
$ npx skills add openyida/openyida --skill yida-business-rule -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install openyida/openyida yida-business-rule --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/openyida/openyida.git skills-src && mkdir -p .claude/skills && cp -r skills-src/yida-skills/skills/yida-business-rule .claude/skills/yida-business-rule && rm -rf skills-srcUse ~/.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/
Install the "yida-business-rule" agent skill from https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-business-rule into .claude/skills/yida-business-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yida-business-rule", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-business-ruleType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add openyida/openyida --skill yida-business-rule -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install openyida/openyida yida-business-rule --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openyida/openyida.git skills-src && mkdir -p .agents/skills && cp -r skills-src/yida-skills/skills/yida-business-rule .agents/skills/yida-business-rule && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "yida-business-rule" agent skill from https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-business-rule into .agents/skills/yida-business-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yida-business-rule", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add openyida/openyida --skill yida-business-rule -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install openyida/openyida yida-business-rule --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openyida/openyida.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/yida-skills/skills/yida-business-rule .cursor/skills/yida-business-rule && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "yida-business-rule" agent skill from https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-business-rule into .cursor/skills/yida-business-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yida-business-rule", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/openyida/openyida.git --path yida-skills/skills/yida-business-rule--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add openyida/openyida --skill yida-business-rule -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install openyida/openyida yida-business-rule --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openyida/openyida.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/yida-skills/skills/yida-business-rule .gemini/skills/yida-business-rule && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "yida-business-rule" agent skill from https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-business-rule into .gemini/skills/yida-business-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yida-business-rule", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install openyida/openyida yida-business-ruleInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add openyida/openyida --skill yida-business-rule -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/openyida/openyida.git skills-src && mkdir -p .github/skills && cp -r skills-src/yida-skills/skills/yida-business-rule .github/skills/yida-business-rule && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "yida-business-rule" agent skill from https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-business-rule into .github/skills/yida-business-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yida-business-rule", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add openyida/openyida --skill yida-business-rule -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install openyida/openyida yida-business-rule --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openyida/openyida.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/yida-skills/skills/yida-business-rule .opencode/skills/yida-business-rule && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "yida-business-rule" agent skill from https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-business-rule into .opencode/skills/yida-business-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "yida-business-rule", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
yida-business-rule宜搭表单业务关联规则与高级函数配置。用于在表单设置中配置业务关联规则,或使用 INSERT、UPDATE、DELETE、UPSERT 高级函数实现跨表增删改。适用于需要表单间数据联动的场景。
Yida Business Rule is an agent skill from openyida/openyida. 宜搭表单业务关联规则与高级函数配置。用于在表单设置中配置业务关联规则,或使用 INSERT、UPDATE、DELETE、UPSERT 高级函数实现跨表增删改。适用于需要表单间数据联动的场景。
Its SKILL.md is about 770 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Your own personal YiDA AI assistant! The licence is MIT.
9 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 4932d0b. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Yida Business Rule loads about 768 tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 197 words of instructions outside code blocks.
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.
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.
The full file from openyida/openyida at commit 4932d0b, republished under its MIT licence (© openyida). 197 words, ~768 tokens.
.claude/skills/yida-business-rule/SKILL.md (or your agent's skills folder).业务关联规则是宜搭表单设置里的旧式/低频跨表联动能力。用户明确提到以下意图时使用本技能:
在表单设计器里进入:
表单设置 → 表单事件 → 公式执行 → 添加业务关联规则业务关联规则弹窗包含三个事件输入框:
| 事件 | 触发时机 |
|---|---|
单据提交 | 新增记录提交成功后 |
单据删除 | 删除记录成功后 |
单据编辑 | 编辑记录提交成功后 |
点击事件输入框会打开「公式执行」编辑器。配置完成后必须依次确认:公式弹窗 → 业务关联规则弹窗 → 保存表单。
业务关联公式不是普通字段公式。普通字段公式引用字段用 #{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(目标表, 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() 第一个参数,也不要在第一个参数里嵌套其他函数。目标列 必须是目标表普通组件。目标列 必须是对应明细下的组件。openyida get-schema <appType> <formUuid> 查清目标字段和来源字段,避免点错。表单设置 → 表单事件 → 公式执行 → 添加业务关联规则。单据编辑。| 函数 | 目标表类型 | 用量限制 |
|---|---|---|
INSERT | 主表 | 批量导入无条数限制,建议单次不超过 1000 条 |
INSERT | 子表单插入主表 | 免费版 ≤50 条;轻享/专业/专属版 ≤500 条 |
UPDATE | 主表 | 单次最多更新 100 条,超出会报错 |
UPDATE | 子表单 | 免费版 ≤50 条;轻享/专业/专属版 ≤500 条 |
UPSERT | 主表 | 单次最多 100 条,超出会报错 |
UPSERT | 子表单 | 免费版 ≤50 条;轻享/专业/专属版 ≤500 条 |
DELETE | 主表 | 单次最多删除 100 条 |
DELETE | 子表单 | 轻享/专业/专属版 ≤500 条 |
| 错误 | 原因 | 处理 |
|---|---|---|
该标识符不合法 | 手敲了表单名/字段名 | 从左侧列表点击插入令牌 |
Unexpected end of input | 公式未闭合或必填参数缺失 | 检查括号、逗号、子条件 |
| 规则未触发 | 配在错误事件或未保存表单 | 检查 单据提交/删除/编辑 和保存结果 |
| 更新结果过多 | 条件不够精确或超出限制 | 收紧 主条件,必要时改用集成自动化 |
© openyida, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in yida-skills/skills/yida-business-rule of openyida/openyida.
Open the folder on GitHubat commit 4932d0b
Yida Business Rule 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Yida Business Rule this skillopenyida/openyida | 221 | — | ~768 | Automated safety check: Pass | MIT | |
| Codex Rules Referencecode-yeongyu/oh-my-openagent | 70k | — | ~269 | Automated safety check: Pass | Custom licence | |
| Rules Distillationaffaan-m/ECC | 277k | 2 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Hookify Rulesaffaan-m/ECC | 276k | — | ~1.2k | Automated safety check: Notes | MIT | |
| Hookify Rulesaffaan-m/ECC | 276k | — | ~605 | Automated safety check: Notes | MIT | |
| Rules Distillaffaan-m/ECC | 276k | — | ~1.5k | Automated safety check: Pass | MIT |
code-yeongyu/oh-my-openagent
Explains how the Codex Rules plugin injects project instructions and file-specific rules into a session, which rule files it reads and which settings control it.
affaan-m/ECC
Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.
affaan-m/ECC
Create and configure hookify rules — markdown files with YAML frontmatter that match bash, file, prompt, or stop events by regex or conditions and show warn/block messages to the agent.
affaan-m/ECC
当用户要求创建hookify规则、编写hook规则、配置hookify、添加hookify规则或需要关于hookify规则语法和模式的指导时,应使用此技能。
affaan-m/ECC
スキルをスキャンしてドメイン横断的な原則を抽出し、ルールに蒸留する——既存のルールファイルへの追記、修正、または新規作成
affaan-m/ECC
扫描技能以提取跨领域原则并将其提炼为规则——追加、修订或创建新的规则文件
openyida/openyida
宜搭自定义页面开发规范,使用 YidaCodeCanvas 组件实现现代 React18 自定义页面。用于官网、看板、工作台、列表、详情、门户壳、可视化、hooks 交互、表单入口,以及需要门户组件、数据管理视图、成员、部门或上传组件的场景;发布层自动注入 yida/utils window 桥。
openyida/openyida
快速发布 OpenYida npm 正式版或测试版。用户说“发布正式版”“发布测试版”“发 beta”或要求按当天日期生成版本 tag 时使用;不用于宜搭应用或自定义页面发布。
openyida/openyida
Plan 模式的视觉设计分支。基于需求选择视觉方向,再结合业务页面规划维护 build-plan.json 的 visualStyle,供 CLI 派生 design.md。
openyida/openyida
Prevent stale local OpenYida custom page source from overwriting live designer edits.
openyida/openyida
Generate, update, or drift-check agent-facing CodeMaps as progressive code terrain indexes for projects, features, capabilities, functions, modules, or bug chains.
openyida/openyida
面向 GPT-5.5 等强模型和熟练用户的轻量 AI Agent Harness / checkpoint-driven coding skill。默认用户已经把任务切到基本可执行的最小混沌单元;模型自行分解、探索与推进,人类通过最终目标、最小 spec、复述、checkpoint、证据验证与回写来低干扰控盘。
宜搭表单业务关联规则与高级函数配置。用于在表单设置中配置业务关联规则,或使用 INSERT、UPDATE、DELETE、UPSERT 高级函数实现跨表增删改。适用于需要表单间数据联动的场景。. Yida Business Rule is an agent skill from openyida/openyida.
Run `npx skills add openyida/openyida --skill yida-business-rule -a claude-code`. Or copy the skill folder (yida-skills/skills/yida-business-rule in openyida/openyida) into .claude/skills/yida-business-rule in your project. Claude Code loads it when a task matches its description.
Run `npx skills add openyida/openyida --skill yida-business-rule -a codex`. Or copy the skill folder (yida-skills/skills/yida-business-rule in openyida/openyida) into .agents/skills/yida-business-rule in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openyida/openyida --skill yida-business-rule -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-business-rule, .gemini/skills/yida-business-rule, .github/skills/yida-business-rule and .opencode/skills/yida-business-rule in your project.
SKILL.md names no scripts, command-line tools or credentials: Yida Business Rule is instructions for the agent only.
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.
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.
Yida Business Rule is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 768 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Yida Business Rule: Codex Rules Reference (code-yeongyu/oh-my-openagent, 70k stars), Rules Distillation (affaan-m/ECC, 277k stars), Hookify Rules (affaan-m/ECC, 276k stars) and Hookify Rules (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.