← 返回 Skills 市场
Cn Excel Formula
作者
freedompixels
· GitHub ↗
· v1.2.0
· MIT-0
172
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install cn-excel-formula
功能描述
Excel公式助手。自然语言描述需求,自动生成Excel公式。支持VLOOKUP、条件统计、日期计算、文本处理等200+常用公式。附带公式解释和示例数据。
使用说明 (SKILL.md)
Excel公式助手
功能
- 自然语言描述 → 自动生成Excel公式
- 公式中文解释(每个参数都有说明)
- 200+常用公式模板库
- 常见错误排查
- 公式优化建议
使用方法
生成公式
# 自然语言描述
python scripts/excel_formula.py generate "查找A列中与D2匹配的B列值"
# 输出:=VLOOKUP(D2, A:B, 2, FALSE)
# 带条件的求和
python scripts/excel_formula.py generate "求A列大于100且B列为'完成'的C列之和"
# 输出:=SUMIFS(C:C, A:A, ">100", B:B, "完成")
解释公式
python scripts/excel_formula.py explain "=VLOOKUP(D2,A:B,2,FALSE)"
# 输出中文解释
常用公式库
# 列出某类别公式
python scripts/excel_formula.py list --category lookup
python scripts/excel_formula.py list --category date
python scripts/excel_formula.py list --category text
错误排查
python scripts/excel_formula.py diagnose "=VLOOKUP(D2,A:B,2,FALSE)" --error "#N/A"
# 输出可能原因和修复方法
支持的公式类别
| 类别 | 常用公式 |
|---|---|
| 查找引用 | VLOOKUP, HLOOKUP, INDEX+MATCH, XLOOKUP, INDIRECT |
| 条件统计 | SUMIFS, COUNTIFS, AVERAGEIFS, MAXIFS, MINIFS |
| 日期时间 | DATE, DATEDIF, EDATE, EOMONTH, NETWORKDAYS |
| 文本处理 | LEFT, RIGHT, MID, FIND, SUBSTITUTE, CONCATENATE |
| 逻辑判断 | IF, IFS, SWITCH, AND, OR, IFERROR |
| 数学计算 | ROUND, ROUNDUP, ROUNDDOWN, MOD, INT, ABS |
| 数据清洗 | TRIM, CLEAN, UPPER, LOWER, PROPER, TEXT |
| 数组公式 | UNIQUE, FILTER, SORT, SEQUENCE, TRANSPOSE |
典型场景
- 数据查找:根据姓名查工资、根据编号查详情
- 条件汇总:按部门/月份/状态分类统计
- 日期计算:工龄、合同到期、项目倒计时
- 文本提取:从身份证提取生日、提取邮箱域名
- 错误处理:#N/A、#VALUE!、#REF! 排查修复
安全使用建议
This skill appears coherent and limited to generating and explaining Excel formulas. Consider these practical precautions before installing: 1) If you supply OPENAI_API_KEY, prompts and input will be sent to OpenAI — avoid sending sensitive spreadsheet contents. 2) Review the included scripts/excel_formula.py locally (it's small and readable) before running. 3) Installing openpyxl via pip is normal; run installs in a virtualenv if you want to isolate dependencies. 4) If you need higher assurance, run the CLI in a sandbox or inspect the full file to confirm there are no hidden network calls beyond the optional OpenAI usage.
功能分析
Type: OpenClaw Skill
Name: cn-excel-formula
Version: 1.2.0
The skill is a legitimate Excel formula assistant that provides formula generation, explanation, and error diagnosis. The code in `scripts/excel_formula.py` uses predefined templates and optional OpenAI API calls (requiring a user-provided key) to process natural language requests. There are no signs of data exfiltration, malicious command execution, or prompt injection attacks; the logic is transparent and strictly aligned with the stated purpose.
能力标签
能力评估
Purpose & Capability
Name/description (Excel formula assistant) matches the included functionality: a local Python script with a formula template library, CLI usage examples, and optional AI-assisted generation. There are no unrelated environment variables, binaries, or services requested.
Instruction Scope
SKILL.md instructs installing openpyxl and running the included script to generate/explain/list/diagnose formulas. The instructions reference only the script and optional OPENAI_API_KEY for AI enhancement; they do not request unrelated system files, credentials, or external endpoints beyond OpenAI when explicitly enabled.
Install Mechanism
There is no heavy install spec in the registry. SKILL.md suggests 'pip install openpyxl', which is appropriate for a Python Excel helper and proportional to the tool's functionality. No downloads from untrusted URLs or archive extraction are present.
Credentials
No required environment variables or credentials are declared. SKILL.md documents an optional OPENAI_API_KEY to enable AI-based formula generation; the script reads this env var only if AI mode is used. That optional credential is proportionate to the stated AI enhancement feature.
Persistence & Privilege
The skill is not always-enabled (always:false), is user-invocable, and does not request elevated or persistent privileges. It does not modify other skills or system-wide agent settings based on the provided files and instructions.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cn-excel-formula - 安装完成后,直接呼叫该 Skill 的名称或使用
/cn-excel-formula触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
- 添加 version: "1.2.0" 字段,标明当前技能版本。
- 其余内容无变动,仅为元数据补充,功能和用法未修改。
v1.1.0
v1.1.0: 修复SKILL.md格式
元数据
常见问题
Cn Excel Formula 是什么?
Excel公式助手。自然语言描述需求,自动生成Excel公式。支持VLOOKUP、条件统计、日期计算、文本处理等200+常用公式。附带公式解释和示例数据。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 172 次。
如何安装 Cn Excel Formula?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cn-excel-formula」即可一键安装,无需额外配置。
Cn Excel Formula 是免费的吗?
是的,Cn Excel Formula 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Cn Excel Formula 支持哪些平台?
Cn Excel Formula 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Cn Excel Formula?
由 freedompixels(@freedompixels)开发并维护,当前版本 v1.2.0。
推荐 Skills