agentleFS
nearthinknearthink/agent-skills/skills/deskclaw-xlsx/SKILL.md

xlsx

Skill0 starsChanged 8 months agoMITView on GitHub

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path. The deliverable must be a spreadsheet file.

  • Installs packages

196 other projects use a version of this, 4 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use context7-efficient, file-reading and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hfzarslanSkill

    context7-efficient

    Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.

    Also in 5 projects that use this

  • SeifBenayedSkill

    file-reading

    Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.

    Also in 6 projects that use this

  • SeifBenayedSkill

    pdf-reading

    Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and choosing the right reading strategy for different document types (text-heavy, scanned, slide-decks, forms, data-heavy). Do NOT use this skill for PDF creation, form filling, merging, splitting, watermarking, or encryption — use the pdf skill instead.

    Also in 6 projects that use this

  • jjyaoaoSkill

    gift-evaluator

    The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.

    Also in 4 projects that use this

  • jjyaoaoSkill

    Podcast Generate

    Generate podcast episodes from user-provided content or by searching the web for specified topics. If user uploads a text file/article, creates a dual-host dialogue podcast (or single-host upon request). If no content is provided, searches the web for information about the user-specified topic and generates a podcast. Duration scales with content size (3-20 minutes, ~240 chars/min). Uses z-ai-web-dev-sdk for LLM script generation and TTS audio synthesis. Outputs both a podcast script (Markdown) and a complete audio file (WAV).

    Also in 4 projects that use this

  • unicorn-pluginsSkill

    product-self-knowledge

    Anthropic 제품 지식 — Claude Code, Claude API, Claude.ai 관련 정확한 정보 제공

    Also in 7 projects that use this

  • +2 more from jjyaoao

The file

Files
SKILL.md

Excel 表格操作 (deskclaw-xlsx)

本技能通过 scripts/excel_tool.py 提供 .xlsx 的创建、读写、公式、格式化、图表、透视汇总和工作表管理能力。基于 excel-mcp-server 的 openpyxl 能力模型,采用无状态 CLI(每次命令对给定文件 load -> 操作 -> save)。

输出规则(必读)

  • 只保存到本地:所有生成或编辑的文件保存到用户指定路径或当前工作目录,操作完成后告知用户完整的文件路径。
  • 禁止向对话发送文件内容:不要将文件内容(文本、二进制、base64 等任何形式)粘贴或发送到用户的聊天/会话中。大文件会导致整个 session 卡死。
  • 如需预览:只在对话中展示简短的摘要信息(如文档标题、页数、表格行列数等元信息),不要展示完整内容。

首次使用(前置条件)

  1. 安装 openpyxl(必须)
pip install openpyxl
  1. 调用方式
  • 若当前目录是技能根目录:python scripts/excel_tool.py <command> ...
  • 否则使用绝对路径:python /path/to/skills/deskclaw-xlsx/scripts/excel_tool.py <command> ...

命令列表(24)

workbook

  • create_workbook file_path
  • create_worksheet file_path sheet_name
  • get_workbook_metadata file_path [--include-ranges]

data

  • read_data file_path sheet_name [--start-cell A1] [--end-cell B10] [--preview-only]
  • write_data file_path sheet_name --data '[[1,2],[3,4]]' [--start-cell A1]

formula

  • apply_formula file_path sheet_name cell formula
  • validate_formula file_path sheet_name cell formula

formatting

  • format_range file_path sheet_name start_cell [--end-cell B10] [--bold true] [--italic true] [--underline true] [--font-size 12] [--font-color FF0000] [--bg-color FFFF00] [--border-style thin] [--border-color 000000] [--number-format "0.00%"] [--alignment center] [--wrap-text true] [--merge-cells true]
  • validate_range file_path sheet_name start_cell [--end-cell B10]

sheet

  • copy_worksheet file_path source_sheet target_sheet
  • delete_worksheet file_path sheet_name
  • rename_worksheet file_path old_name new_name
  • merge_cells file_path sheet_name start_cell end_cell
  • unmerge_cells file_path sheet_name start_cell end_cell
  • get_merged_cells file_path sheet_name
  • copy_range file_path sheet_name source_start source_end target_start [--target-sheet Sheet2]
  • delete_range file_path sheet_name start_cell end_cell [--shift-direction up|left]
  • insert_rows file_path sheet_name start_row [--count 1]
  • insert_columns file_path sheet_name start_col [--count 1]
  • delete_rows file_path sheet_name start_row [--count 1]
  • delete_columns file_path sheet_name start_col [--count 1]

chart

  • create_chart file_path sheet_name data_range chart_type target_cell [--title ...] [--x-axis ...] [--y-axis ...]
    • chart_type: line / bar / column / pie / scatter

table

  • create_table file_path sheet_name data_range [--table-name T1] [--table-style TableStyleMedium9]
  • create_pivot_table file_path sheet_name data_range --rows '["Region"]' --values '["Sales"]' [--columns '["Year"]'] [--agg-func mean|sum|count|max|min]

示例工作流

# 1) 新建工作簿
python scripts/excel_tool.py create_workbook /tmp/demo.xlsx

# 2) 新建工作表并写入数据
python scripts/excel_tool.py create_worksheet /tmp/demo.xlsx Sales
python scripts/excel_tool.py write_data /tmp/demo.xlsx Sales --data '[["Region","Year","Sales"],["East",2024,100],["West",2024,120],["East",2025,150]]' --start-cell A1

# 3) 公式与格式化
python scripts/excel_tool.py apply_formula /tmp/demo.xlsx Sales D2 '=C2*1.1'
python scripts/excel_tool.py format_range /tmp/demo.xlsx Sales A1:D1 --bold true --bg-color D9E1F2

# 4) 创建图表与表格
python scripts/excel_tool.py create_chart /tmp/demo.xlsx Sales A1:C4 column F2 --title "Sales Trend"
python scripts/excel_tool.py create_table /tmp/demo.xlsx Sales A1:D4 --table-name SalesTable

# 5) 透视汇总与读取验证
python scripts/excel_tool.py create_pivot_table /tmp/demo.xlsx Sales A1:C4 --rows '["Region"]' --values '["Sales"]' --agg-func sum
python scripts/excel_tool.py read_data /tmp/demo.xlsx Sales --start-cell A1 --end-cell D4
python scripts/excel_tool.py get_workbook_metadata /tmp/demo.xlsx --include-ranges

注意事项

  • 单元格地址使用 Excel 记法:A1、B2:D10
  • --data、--rows、--values、--columns 参数均需合法 JSON 字符串
  • 颜色建议使用十六进制(如 FF0000)
  • file_path 建议使用绝对路径,避免工作目录歧义
  • create_pivot_table 在本技能中生成的是“透视汇总表”工作表(便于无状态 CLI 使用)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.