Office Excel logo

Office Excel

CommunityPopular
huiliyi37
office-excel

Excel 电子表格读写与编辑最佳实践 — 用 xlsx_read/xlsx_write/xlsx_edit 处理 .xlsx 时遵守的公式、数字格式与可维护性纪律

Overview

Publisherhuiliyi37
RepositoryTianshu-harness
Skill nameoffice-excel
Stars
1.1K
Forks
78
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by huiliyi37 on GitHub. Read the source before you install it.

Installation

Install the Office Excel AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/huiliyi37/Tianshu-harness/tree/main/plugins/office-excel/skills
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huiliyi37/Tianshu-harness.git /tmp/Tianshu-harness
mkdir -p .claude/skills
cp -r /tmp/Tianshu-harness/plugins/office-excel/skills .claude/skills/office-excel
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Office Excel in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Office Excel on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Office Excel is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Office Excel(.xlsx 读写纪律)

改编自 anthropics/skills xlsx(Apache 2.0)。

用本插件(xlsx_read / xlsx_write / xlsx_edit)交付 Excel 文件时,遵守以下纪律。

1. 能用公式绝不硬编码计算值

  • 汇总、合计、比率一律写公式({ formula: 'SUM(B2:B10)' }),不要把算好的结果写死。
  • 交付的表格必须保持动态可重算:用户改了源数据,合计列应自动更新。写死的数字会在源数据变更后悄悄变成错误答案。
  • 公式在 xlsx_read 中以 =SUM(...) 原文显示,交付前读回自查一遍公式是否正确。

2. 零公式错误纪律

#REF! / #DIV/0! / #VALUE! / #NAME? 一个都不允许出现在交付物里。常见成因与预防:

  • 行列从 1 开始:A1 是第一个单元格,不存在第 0 行/第 0 列。越界引用直接 #REF!。
  • 跨 sheet 引用用 Sheet1!A1 语法;sheet 名含空格或特殊字符时用单引号 'My Sheet'!A1。
  • 除零检查:除法公式先确认分母列无空值/零值,必要时 IF(B2=0, 0, A2/B2)。
  • 类型一致:文本列与数字列混算得 #VALUE!;写入时不要把数字写成带引号的字符串。
  • 函数名拼写:#NAME? 几乎都是函数名拼错或用了不存在的函数。

3. 数字格式约定(用 number_formats 设置)

  • 货币:$#,##0(或 ¥#,##0)
  • 百分比:0.0%
  • 倍数:0.0x
  • 负数用括号表示:#,##0;(#,##0)
  • 年份作为文本写入(如 '2024),防止被加千分位显示成 2,024

4. 假设参数放独立单元格

  • 增长率、折扣率、汇率等假设值单独放一个单元格,公式引用它:=B5*(1+$B$6),而不是 =B5*1.05。
  • 用 $B$6 绝对引用锁定假设单元格,下拉填充时不会漂移。
  • 这样用户改假设即可全表重算,不用改任何公式。

5. 修改已有模板时沿用其既有约定

  • 用 xlsx_read 先看清原文件的表头、格式、公式风格,再动手。
  • 严格沿用模板自己的数字格式、列宽、命名习惯——不把自己的风格强加进去。
  • 只改该改的单元格(xlsx_edit 的 update_cells / append_rows),不要整体重写文件。

Frequently asked questions

What does the Office Excel AI skill do?

Excel 电子表格读写与编辑最佳实践 — 用 xlsx_read/xlsx_write/xlsx_edit 处理 .xlsx 时遵守的公式、数字格式与可维护性纪律

Why use Office Excel on TypingMind?

Because you install it once and use it with any model. Office Excel is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Office Excel in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/huiliyi37/Tianshu-harness/tree/main/plugins/office-excel/skills. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Office Excel?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Office Excel?

As many as you like. As long as a model supports skills, you can use Office Excel with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Office Excel AI skill free?

Yes. It is published on GitHub by huiliyi37 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇