xlsx

GitHub

使用 Python 处理 Excel XLSX 文件,支持读取、分析、创建及编辑,涵盖公式、格式、图表及 CSV 转换。指导选择 openpyxl 或 pandas,强调保留结构与验证结果。

skills/builtin/xlsx/1.0.0/SKILL.md simplexai-labs/linger

Trigger Scenarios

需要读取或分析 Excel 数据 需要创建或编辑 Excel 文件 涉及 Excel 格式、公式或图表处理

Install

npx skills add simplexai-labs/linger --skill xlsx -g -y
More Options

Non-standard path

npx skills add https://github.com/simplexai-labs/linger/tree/main/skills/builtin/xlsx/1.0.0 -g -y

Use without installing

npx skills use simplexai-labs/linger@xlsx

指定 Agent (Claude Code)

npx skills add simplexai-labs/linger --skill xlsx -a claude-code -g -y

安装 repo 全部 skill

npx skills add simplexai-labs/linger --all -g -y

预览 repo 内 skill

npx skills add simplexai-labs/linger --list

SKILL.md

Frontmatter
{
    "name": "xlsx",
    "description": "Read, analyze, create, or edit Excel XLSX spreadsheets with Python. Use when a spreadsheet is the main input or requested output, including formulas, formatting, charts, and CSV conversion."
}

Spreadsheets with Python

Runtime

Use the current Context's isolated Python project in ./agent:

uv --directory ./agent add openpyxl
uv --directory ./agent add pandas

openpyxl handles workbook structure and presentation. Add pandas only when it helps with large table analysis or transformation; the standard library csv module is enough for simple CSV work. Run scripts with uv --directory ./agent run python ... and absolute script/input/output paths, since --directory changes the command's working directory. Save working files under ./playground/<scope>/ and publish the deliverable through the available tool.

Choose the operation

  • Read or analyze: Load the workbook with openpyxl. Inspect sheets, headers, data types, formulas, merged ranges, hidden rows or columns, and tables before interpreting values. For CSV, detect delimiter and encoding rather than assuming them.
  • Edit a workbook: Copy the source, then change only requested cells or structures. Preserve formulas, number formats, validations, named ranges, charts, and template styling where possible. When macros must survive, use load_workbook(..., keep_vba=True) and retain the .xlsm extension; check the result in a compatible application.
  • Create: Use clear column labels, appropriate number and date formats, frozen headers where useful, and native Excel formulas or charts when users need editable calculations. Do not invent input data or financial sources.
  • Analyze: Use pandas for tabular transformations if needed, then write results with openpyxl when workbook layout or formulas matter. Treat identifiers as strings when leading zeros are significant.

Example: edit while preserving workbook structure

from openpyxl import load_workbook

source = "/absolute/path/input.xlsx"
target = "/absolute/path/output.xlsx"
workbook = load_workbook(source)
sheet = workbook["Summary"]
sheet["B2"] = 42
workbook.save(target)

openpyxl stores formulas but does not calculate them. Do not present data_only=True values as freshly recalculated after an edit. If computed results are required, use an available spreadsheet calculation engine and inspect its output; the Runtime does not include LibreOffice by default. Otherwise provide formulas and state that recalculation occurs when the workbook opens in a compatible spreadsheet application.

Check the result

Reopen the saved workbook. Verify sheet names, dimensions, key values and formulas, number formats, links, charts, and any macro preservation relevant to the request. Check for broken references and formula error cells. For a styled or layout-sensitive file, inspect it in a spreadsheet renderer when one is available; report if a visual check could not be done.

Version History

  • d8ebc34 Current 2026-11-14 00:27

Same Skill Collection

skills/builtin/canvas/1.0.0/SKILL.md
skills/builtin/canvas/1.0.1/SKILL.md
skills/builtin/canvas/1.0.2/SKILL.md
skills/builtin/collaborate/1.0.0/SKILL.md
skills/builtin/create-meeting-minutes/1.0.0/SKILL.md
skills/builtin/docx/1.0.0/SKILL.md
skills/builtin/holistic-context/1.0.0/SKILL.md
skills/builtin/humanlike-browse/1.0.0/SKILL.md
skills/builtin/humanlike-browse/1.0.1/SKILL.md
skills/builtin/humanlike-browse/1.0.2/SKILL.md
skills/builtin/humanlike-browse/1.0.3/SKILL.md
skills/builtin/humanlike-browse/1.0.4/SKILL.md
skills/builtin/humanlike-browse/1.0.8/SKILL.md
skills/builtin/impeccable/1.0.0/SKILL.md
skills/builtin/impeccable/1.0.1/SKILL.md
skills/builtin/lev8-search/1.0.0/SKILL.md
skills/builtin/lev8-search/1.0.1/SKILL.md
skills/builtin/media-generation/1.0.3/SKILL.md
skills/builtin/pdf/1.0.0/SKILL.md
skills/builtin/pptx/1.0.0/SKILL.md
skills/builtin/pptx/1.0.1/SKILL.md
skills/builtin/pptx/1.0.2/SKILL.md
skills/builtin/proactive-response/1.0.0/SKILL.md
skills/builtin/proactive-response/1.0.1/SKILL.md
skills/builtin/skill-installer/1.0.0/SKILL.md
skills/builtin/slide-deck/1.0.0/SKILL.md
skills/builtin/slide-deck/1.0.1/SKILL.md
skills/builtin/superpowers/1.0.0/SKILL.md
skills/builtin/taste/1.0.0/SKILL.md
skills/builtin/taste/1.0.1/SKILL.md
skills/builtin/teamhub-files/1.0.0/SKILL.md
skills/builtin/teamhub-files/1.0.1/SKILL.md
skills/builtin/teamhub-files/1.0.2/SKILL.md
skills/builtin/teamhub-files/1.0.3/SKILL.md
skills/builtin/artifact/1.0.0/SKILL.md
skills/builtin/artifact/1.0.1/SKILL.md
skills/builtin/artifact/1.0.2/SKILL.md
skills/builtin/chat-card/1.0.0/SKILL.md
skills/builtin/personal-profile/1.0.0/SKILL.md
skills/builtin/personal-profile/1.0.1/SKILL.md
skills/builtin/personal-profile/1.0.2/SKILL.md
skills/builtin/personal-profile/1.0.3/SKILL.md
skills/builtin/personal-profile/1.0.4/SKILL.md
skills/builtin/personal-profile/1.0.5/SKILL.md

Metadata

Files
0
Version
d8ebc34
Hash
694007bb
Indexed
2026-11-14 00:27

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-14 03:25
浙ICP备14020137号-1