← 返回 Skills 市场
291
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install math-formula-calculator
功能描述
数学公式计算专家 - Excel 公式解析、分步计算、边界验证。专用于招投标价格分计算、复杂公式求解。
使用说明 (SKILL.md)
数学公式计算专家
🎯 核心功能
1️⃣ Excel 公式解析
支持的函数:
- 逻辑函数:IF, AND, OR, NOT, IFERROR
- 数学函数:MAX, MIN, ROUND, ABS, SUM, AVERAGE
- 比较运算:>, \x3C, >=, \x3C=, =, \x3C>
解析能力:
- 识别外层/中间层/内层函数
- 识别变量与常量
- 识别运算符优先级
2️⃣ 分步计算
计算流程:
第 1 步:公式原文抄录 → 不修改任何字符
第 2 步:公式结构拆解 → 识别函数层级
第 3 步:变量代入 → 明确每个变量的值
第 4 步:由内向外计算 → 先计算最内层函数
第 5 步:记录中间结果 → 每步保留计算过程
第 6 步:最终结果 → 四舍五入 (如需)
示例:
=ROUND(IF(B2\x3CE2,MAX(0,F2-ABS(B2-E2)/E2*100*0.6),IF(B2=E2,F2,MAX(0,F2-ABS(B2-E2)/E2*100*0.9))),2)
变量:
B2 = 207 (报价)
E2 = 176.89445 (基准价)
F2 = 30 (基准分)
计算步骤:
1. B2 \x3C E2? → 207 \x3C 176.89445? → FALSE
2. 进入 ELSE 分支:MAX(0, F2-ABS(B2-E2)/E2*100*0.9)
3. ABS(B2-E2) = ABS(207-176.89445) = 30.10555
4. ABS(...)/E2 = 30.10555/176.89445 = 0.1702
5. ...*100 = 0.1702*100 = 17.02
6. ...*0.9 = 17.02*0.9 = 15.32
7. F2-... = 30-15.32 = 14.68
8. MAX(0, 14.68) = 14.68
9. ROUND(14.68, 2) = 14.68
结果:14.68 分
3️⃣ 边界验证
验证项目:
- ✅ 除零检查:分母是否为 0
- ✅ 负数检查:结果是否可能为负
- ✅ 溢出检查:结果是否超出合理范围
- ✅ 临界值测试:测试边界条件
验证流程:
1. 识别公式中所有分母 → 检查是否为 0 风险
2. 识别 MAX/MIN 函数 → 确认边界处理
3. 代入极端值测试 → 最大值/最小值/临界值
4. 检查结果合理性 → 是否在预期范围内
4️⃣ 招投标价格分计算
支持的评标方法:
- 综合评分法
- 最低评标价法
- 竞争性谈判
价格分公式模板:
' 基准价法 (报价>基准价)
=30-ABS(报价 - 基准价)/基准价*100*0.9
' 基准价法 (报价\x3C基准价)
=30-ABS(报价 - 基准价)/基准价*100*0.6
' 完整版 (含边界处理)
=MAX(0,30-ABS(报价 - 基准价)/基准价*100*系数)
🔧 使用方式
场景 1: Excel 公式解析
用户:解析这个公式 =ROUND(IF(B2\x3CE2,MAX(0,F2-ABS(B2-E2)/E2*100*0.6),...),2)
数学公式计算专家:
1. 外层函数:ROUND(..., 2) → 保留 2 位小数
2. 中间函数:IF(条件,真值,假值)
3. 条件:B2 \x3C E2
4. 真值:MAX(0, F2-ABS(B2-E2)/E2*100*0.6)
5. 假值:IF(B2=E2, F2, MAX(0, F2-ABS(B2-E2)/E2*100*0.9))
...
场景 2: 分步计算
用户:计算价格分,报价 207 万,基准价 176.89 万,基准分 30 分
数学公式计算专家:
已知:
- 报价 = 207 万
- 基准价 = 176.89 万
- 基准分 = 30 分
- 报价 > 基准价,系数用 0.9
计算:
1. 差额 = |207 - 176.89| = 30.11
2. 比例 = 30.11 / 176.89 = 0.1702
3. 扣分 = 0.1702 × 100 × 0.9 = 15.32
4. 价格分 = 30 - 15.32 = 14.68 分
结果:14.68 分
场景 3: 边界验证
用户:验证这个公式是否有边界问题
数学公式计算专家:
检查项目:
1. ✅ 分母 E2 (基准价) → 应>0,正常
2. ✅ MAX(0, ...) → 已处理负数情况
3. ✅ ROUND(..., 2) → 已处理精度
4. ⚠️ 建议:添加 IFERROR 处理异常
改进建议:
=IFERROR(ROUND(IF(...),2), 0)
📊 常见错误与避免
错误 1: 分母混淆
❌ 错误:ABS(报价 - 基准价) / 报价
✅ 正确:ABS(报价 - 基准价) / 基准价
记忆方法: 比例计算始终以"基准"为分母
错误 2: 系数混淆
❌ 错误:报价\x3C基准价用 0.9,报价>基准价用 0.6 ✅ 正确:报价\x3C基准价用 0.6(鼓励低价),报价>基准价用 0.9(惩罚高价)
记忆方法: 低价扣分少 (0.6),高价扣分多 (0.9)
错误 3: 忽略边界
❌ 错误:30 - ABS(...)*100*系数 (可能为负)
✅ 正确:MAX(0, 30 - ABS(...)*100*系数)
记忆方法: 分数不能为负,必须用 MAX(0,...)
🎯 工作流程 SOP
标准作业程序
┌─────────────────────────────────────────────────────────────┐
│ 数学公式计算 SOP │
├─────────────────────────────────────────────────────────────┤
│ │
│ 1. 公式原文抄录 │
│ ↓ │
│ 2. 公式结构拆解 (识别函数层级) │
│ ↓ │
│ 3. 变量代入 (明确每个变量的值) │
│ ↓ │
│ 4. 由内向外计算 (先最内层) │
│ ↓ │
│ 5. 记录中间结果 (每步保留) │
│ ↓ │
│ 6. 边界验证 (除零/负数/溢出) │
│ ↓ │
│ 7. 结果校验 (合理性检查) │
│ ↓ │
│ 8. 用户确认 (输出前请用户验证) │
│ │
└─────────────────────────────────────────────────────────────┘
📚 学习资源
Excel 公式教程
- Microsoft Excel 官方文档
- Excel 函数大全
- Excel 公式与函数指南
数学基础
- 代数运算规则
- 绝对值计算
- 百分比与加权
招投标知识
- 《政府采购法》
- 《招标投标法》
- 评标办法与标准
⚠️ 注意事项
- 公式原文优先: 不修改用户提供的任何字符
- 分步验证: 每步计算都要记录中间结果
- 边界检查: 必须验证除零、负数、溢出风险
- 用户确认: 输出前请用户确认公式理解是否正确
- 持续改进: 遇到错误要记录到 LEARNINGS.md
版本: 1.0.0
创建时间: 2026-03-10
状态: ✅ 已创建
安全使用建议
This skill appears coherent and low-risk: it is an instruction-only helper for parsing and computing Excel-like formulas and does not ask for credentials or install code. Before relying on results for important decisions, (1) verify numeric outputs with your own checks or a trusted calculator, (2) test edge cases (zero denominators, extreme values) as the skill itself recommends, and (3) avoid pasting any sensitive data into the formulas you submit. If you later follow README's manual install instructions (git clone or running code snippets locally), review any downloaded code before executing it on your machine.
功能分析
Type: OpenClaw Skill
Name: math-formula-calculator
Version: 1.0.0
The skill bundle is a legitimate tool designed for parsing and calculating complex Excel formulas, specifically tailored for bidding and tendering price evaluations. The instructions in SKILL.md and README.md focus entirely on mathematical logic, step-by-step calculation procedures, and boundary validation (e.g., division by zero checks) without any evidence of data exfiltration, malicious execution, or prompt injection attacks.
能力评估
Purpose & Capability
The name/description (Excel formula parsing, step-by-step calculation, boundary checks for bidding scores) aligns with the content of SKILL.md and README. There are no unexpected credentials, binaries, or config paths required.
Instruction Scope
SKILL.md contains only formula-parsing, stepwise arithmetic and validation guidance. It does not instruct reading unrelated files, accessing environment variables, nor transmitting data to external endpoints. It explicitly recommends user confirmation before final output.
Install Mechanism
No install spec and no code files — instruction-only. README mentions optional manual install commands (npx/git clone) for a hypothetical repo, but the distributed skill itself writes nothing to disk and does not download or execute remote code.
Credentials
No environment variables, credentials, or config paths are requested. The README/skill examples include a small JS function snippet for illustration only; no secrets or unrelated service tokens are required.
Persistence & Privilege
Skill flags: always=false, user-invocable=true, disable-model-invocation=false (normal). The skill does not request persistent or elevated privileges and does not modify other skills or system settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install math-formula-calculator - 安装完成后,直接呼叫该 Skill 的名称或使用
/math-formula-calculator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of math-formula-calculator skill.
- Supports Excel formula parsing, including logic and math functions, operator precedence, and variable recognition.
- Implements step-by-step calculation process with detailed intermediate results.
- Provides boundary validation for formulas, checking division by zero, negative values, overflows, and edge conditions.
- Includes templates and workflows for bid evaluation price calculations.
- Offers common error prevention guidelines and SOP for structured formula analysis.
元数据
常见问题
数字公式计算器-招投标价格 是什么?
数学公式计算专家 - Excel 公式解析、分步计算、边界验证。专用于招投标价格分计算、复杂公式求解。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 291 次。
如何安装 数字公式计算器-招投标价格?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install math-formula-calculator」即可一键安装,无需额外配置。
数字公式计算器-招投标价格 是免费的吗?
是的,数字公式计算器-招投标价格 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
数字公式计算器-招投标价格 支持哪些平台?
数字公式计算器-招投标价格 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 数字公式计算器-招投标价格?
由 gipsy12(@gipsy12)开发并维护,当前版本 v1.0.0。
推荐 Skills