yida-formula SKILL.md skillA
yida-formula from openyida/openyida is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add openyida/openyida/yida-formula@git:20261019.be724c8Pins git:20261019.be724c8 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-formula/SKILL.md- Versions recorded
- 10
- Latest version
- git:20261019.be724c8, committed Oct 19, 2026
- First version recorded
- Apr 7, 2026
- Size
- 18,200 bytes
- Repository stars
- 231
- License
- MIT
宜搭公式编写与配置指南,包含常用函数速查、语法规则、字段 Schema 配置和完整嵌套示例。适用于自动计算、明细汇总、默认值、提交校验、节点筛选和报表计算;支持检查公式错误、用样例核对计算结果。.
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
# 配置宜搭公式
先说明想得到什么结果,例如“单价乘数量,保留两位小数”“提交时提醒编号重复”“按上一步的金额筛选记录”。再读取已有配置,确定输入数据和结果存放位置。
公式写法、嵌套、字段引用、空值和类型转换统一在这里维护。对应的业务技能提供真实字段、输入数据和结果保存位置。同样的表达式与执行方式共用规则;需要适配哪些差异,由实际输入、保存结构和执行调用决定,不按页面名称另分一套公式能力。
## 先取得真实表单和字段 ID
配置前读取目标表单的 Schema 或创建结果,使用其中返回的真实标识:
| 标识 | 从哪里取得、用在哪里 |
| --- | --- |
| 表单 ID `formUuid` | 使用目标表单真实的 `FORM-...`,用于 CLI 的 FORM 参数;从已有应用页面、资源查询或创建结果取得 |
| 字段 ID `fieldId` | 使用目标表单组件的 `props.fieldId`,公式引用写成 `#{真实fieldId}`;字段映射中的 `fieldId` 也来自这里 |
```bash
openyida get-schema APP_XXX FORM_XXX --field-map-json
```
本文的 `APP_XXX`、`FORM_XXX`、`numberField_price` 等都是示例占位符,执行和保存前全部替换为实际值。字段显示名称、组件树节点的 `id`、自己拼出的前缀都不能代替 `props.fieldId`。新字段先创建,再读取返回的真实 ID;字段缺失或归属不清时,先定位并确认目标表单和子表,再继续配置。`UUID()` 只生成业务值,不生成宜搭的表单或字段 ID。
本地检查字段引用时传入完整真实 Schema:`formula check formula.txt --schema schema.json --strict`;没有 Schema 时,检查结果不能证明字段存在。普通子表字段也引用它自身的真实 `fieldId`,组件子属性则保留设计器提供的有效路径。
## 公式函数名按列表原样填写
宜搭公式中的函数名必须逐字照抄可用函数列表,保持大小写不变。例如 `SUM`、`ROUND`、`UserBuilder`;`sum`、`Round`、`USERBUILDER` 都不等同于这些名称。只使用目标配置提供的公式函数,不自行改名、缩写、翻译或新增函数,也不照搬其他工具中的同名函数。需要复杂计算时,组合列表中已有的函数,并按其参数说明填写。
…Read the whole file at its exact version.
How to install
mdr add openyida/openyida/yida-formula@sha256:ac0a97095760589cThe line at the top of this page pins the label git:20261019.be724c8, 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.
[](https://markdownregistry.com/a/art_7oo47qt767krmgne)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 10 versions of this file, between Apr 7, 2026 and Oct 19, 2026, about one every 22 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261019.be724c8 latest | 2026-10-19 | be724c8 | 18,200 B | A | view · diff |
| git:20261019.99cf015 | 2026-10-19 | 99cf015 | 14,358 B | A | view · diff |
| git:20261019.f4860b5 | 2026-10-19 | f4860b5 | 12,752 B | A | view · diff |
| git:20261018.e0d7221 | 2026-10-18 | e0d7221 | 8,236 B | A | view · diff |
| git:20261018.9a88d90 | 2026-10-18 | 9a88d90 | 8,078 B | A | view · diff |
| git:20260717.d0ccc71 | 2026-07-17 | d0ccc71 | 15,994 B | A | view · diff |
| git:20260702.ac3bada | 2026-07-02 | ac3bada | 17,135 B | A | view · diff |
| git:20260601.bf2d167 | 2026-06-01 | bf2d167 | 17,995 B | A | view · diff |
| git:20260519.a27e387 | 2026-05-19 | a27e387 | 17,617 B | A | view · diff |
| git:20260407.21dc6f2 | 2026-04-07 | 21dc6f2 | 17,299 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (18200 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
openyida/openyida · 231 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_7oo47qt767krmgne GET https://markdownregistry.com/api/v1/resolve?ref=openyida/openyida/yida-formula GET https://markdownregistry.com/api/v1/blob/ac0a97095760589c0ba55b0367bf4d61474e0c1b9ec392c3cbb51c72f1b8bf24
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.