xlsx

xlsx is a skill for Claude Code, Codex from TencentCloud/Octop. It costs 232 tokens per session (3,472 once invoked), scanned A, a copy of xlsx, MIT.

A spreadsheet skill for creating, reading, editing, cleaning, repairing, and converting Excel and delimited-table files such as .xlsx, .xlsm, .csv, and .tsv. It also covers formulas, formatting, charts, and financial models.

In plain words
What is it for?
Use it to add columns, clean data, build formulas, format workbooks, create charts, convert table files, and prepare financial spreadsheets without formula errors.
Why use it?
It helps turn messy tabular data into usable spreadsheets and catches common formula and reference errors. It preserves existing templates when updating them and applies consistent formatting rules to new models.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add columns, clean data, build formulas, format workbooks, create charts, convert table files, and prepare financial spreadsheets without formula errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tencentcloud/octop/xlsx
About the project

Octop is a self-hosted, multi-user AI assistant that runs multiple specialized agents and connects them to chat interfaces, tools, and external services. It is for individuals, families, and teams who want a locally operated assistant with shared experts and persistent capabilities. Catalogue add-ons extend its agent and assistant workflows.

TencentCloud/Octop · 1,501 stars · on GitHub · octop.cloud

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TencentCloud/Octop --skill xlsx
Clone the repo
git clone --depth 1 https://github.com/TencentCloud/Octop

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xlsx

README.md
[![agentmods](https://agentmods.dev/badge/skills/tencentcloud/octop/xlsx.svg)](https://agentmods.dev/skills/tencentcloud/octop/xlsx)
Your own site
<a href="https://agentmods.dev/skills/tencentcloud/octop/xlsx"><img src="https://agentmods.dev/badge/skills/tencentcloud/octop/xlsx.svg" alt="Measured on agentmods" height="20"></a>
Per session 232 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,472 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00232 $0.03472
Opus 5 $0.00116 $0.01736
Sonnet 5 $0.00046 $0.00694
Haiku 4.5 $0.00023 $0.00347

Measured yesterday against content hash c5f6e991f3d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

xlsx scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 13 executable files (scripts/office/helpers/__init__.py, scripts/office/helpers/merge_runs.py, scripts/office/helpers/simplify_redlines.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to xlsx — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

src/octop/infra/agents/experts/library/office-automation/skills/xlsx/SKILL.md · 315 lines

How it starts

The opening of the file, as written. The whole thing — 315 lines — stays where its author put it; the contents beside it link to each section on GitHub.

重要说明: 所有 scripts/ 路径均相对于此技能目录。 运行方式:cd {this_skill_dir} && python scripts/... 或使用 execute_shell_commandcwd 参数。

输出要求

所有 Excel 文件

专业字体

  • 除非用户另有指示,所有交付物应使用统一的专业字体(如 Arial、Times New Roman)

零公式错误

  • 每个 Excel 模型必须以零公式错误交付(#REF!、#DIV/0!、#VALUE!、#N/A、#NAME?)

保留现有模板(更新模板时)

  • 修改文件时需仔细研究并完全匹配现有的格式、样式和约定
  • 切勿对已有既定模式的文件强加标准化格式
  • 现有模板约定始终优先于本指南

财务模型

颜色编码标准

除非用户或现有模板另有规定

行业标准颜色约定
  • 蓝色文本 (RGB: 0,0,255):硬编码输入,以及用户会为不同情景更改的数字
  • 黑色文本 (RGB: 0,0,0):所有公式和计算
  • 绿色文本 (RGB: 0,128,0):从同一工作簿中其他工作表拉取的链接
  • 红色文本 (RGB: 255,0,0):指向其他文件的外部链接
  • 黄色背景 (RGB: 255,255,0):需要关注的关键假设或需要更新的单元格

数字格式标准

必需的格式规则
  • 年份:格式化为文本字符串(例如 "2024" 而非 "2,024")
  • 货币:使用 $#,##0 格式;始终在表头中注明单位("Revenue ($mm)")
  • 零值:使用数字格式将所有零值显示为 "-",包括百分比(例如 "$#,##0;($#,##0);-")
  • 百分比:默认使用 0.0% 格式(一位小数)
  • 倍数:估值倍数使用 0.0x 格式(EV/EBITDA、P/E)
  • 负数:使用括号 (123) 而非负号 -123

公式构建规则

假设放置
  • 将所有假设(增长率、利润率、倍数等)放在单独的假设单元格中
  • 在公式中使用单元格引用而非硬编码值
  • 示例:使用 =B5*(1+$B$6) 而非 =B5*1.05
公式错误预防
  • 验证所有单元格引用是否正确
  • 检查范围中的偏移错误
  • 确保所有预测期间的公式一致
  • 使用边界情况测试(零值、负数)
  • 验证没有非预期的循环引用
硬编码值的文档要求
  • 在注释中或旁边的单元格中(如果在表格末尾)添加说明。格式:"Source: [系统/文档], [日期], [具体引用], [URL(如适用)]"
  • 示例:
    • "Source: Company 10-K, FY2024, Page 45, Revenue Note, [SEC EDGAR URL]"
    • "Source: Company 10-Q, Q2 2025, Exhibit 99.1, [SEC EDGAR URL]"
    • "Source: Bloomberg Terminal, 8/15/2025, AAPL US Equity"
    • "Source: FactSet, 8/20/2025, Consensus Estimates Screen"

XLSX 创建、编辑和分析

概述

用户可能要求您创建、编辑或分析 .xlsx 文件的内容。您有不同的工具和工作流可用于不同的任务。

前置条件

  • openpyxl:Excel 文件创建和编辑
  • pandas:数据分析和批量操作
  • LibreOffice (soffice):通过 scripts/recalc.py 进行公式重新计算
  • git 是可选的,但可以改善验证工作流中的红线差异输出。
  • 在 Windows 上,依赖项必须已安装并在 PATH 中可用;如果缺失,报告依赖问题并停止(不要反复重试)。

重要要求

公式重新计算需要 LibreOffice:使用 scripts/recalc.py 重新计算公式值。该脚本在首次运行时自动配置 LibreOffice,并处理 Unix 套接字受限的沙箱环境(通过 scripts/office/soffice.py)。

读取和分析数据

使用 pandas 进行数据分析

对于数据分析、可视化和基本操作,使用 pandas 提供的强大数据操作功能:

import pandas as pd

# 读取 Excel
df = pd.read_excel('file.xlsx')  # Default: first sheet
all_sheets = pd.read_excel('file.xlsx', sheet_name=None)  # All sheets as dict

# 分析数据
df.head()      # Preview data
df.info()      # Column info
df.describe()  # Statistics

# 写入 Excel
df.to_excel('output.xlsx', index=False)

Read the full file on GitHub · 315 lines

Files

What ships with it

53 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +8 lines c5f6e991f3d3
  2. 8d ago First seen · 307 lines · 232 tokens per session scan A 4b3778ce5b2a

Subscribe to this mod's changes

xlsx is a skill published in the GitHub repository TencentCloud/Octop (1,501 stars, last pushed today), licensed MIT. It adds 232 tokens to every session and 3,472 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to xlsx, differing in 8 lines, and is treated as a copy.