← Back to Skills Marketplace
freedompixels

Cn Excel Formula

by freedompixels · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ✓ Security Clean
172
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install cn-excel-formula
Description
Excel公式助手。自然语言描述需求,自动生成Excel公式。支持VLOOKUP、条件统计、日期计算、文本处理等200+常用公式。附带公式解释和示例数据。
README (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

典型场景

  1. 数据查找:根据姓名查工资、根据编号查详情
  2. 条件汇总:按部门/月份/状态分类统计
  3. 日期计算:工龄、合同到期、项目倒计时
  4. 文本提取:从身份证提取生日、提取邮箱域名
  5. 错误处理:#N/A、#VALUE!、#REF! 排查修复
Usage Guidance
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.
Capability Analysis
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.
Capability Tags
requires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cn-excel-formula
  3. After installation, invoke the skill by name or use /cn-excel-formula
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.0
- 添加 version: "1.2.0" 字段,标明当前技能版本。 - 其余内容无变动,仅为元数据补充,功能和用法未修改。
v1.1.0
v1.1.0: 修复SKILL.md格式
Metadata
Slug cn-excel-formula
Version 1.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Cn Excel Formula?

Excel公式助手。自然语言描述需求,自动生成Excel公式。支持VLOOKUP、条件统计、日期计算、文本处理等200+常用公式。附带公式解释和示例数据。 It is an AI Agent Skill for Claude Code / OpenClaw, with 172 downloads so far.

How do I install Cn Excel Formula?

Run "/install cn-excel-formula" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cn Excel Formula free?

Yes, Cn Excel Formula is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Cn Excel Formula support?

Cn Excel Formula is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cn Excel Formula?

It is built and maintained by freedompixels (@freedompixels); the current version is v1.2.0.

💬 Comments