plugins/office/xlsx/skills/office-xlsx-skills/SKILL.md
Excel/xlsx 文件操作 - 读写工作表、数据分析、CSV转换。Trigger: 'excel', 'xlsx', '表格', '工作表', 'spreadsheet', '数据分析'
npx skillsauth add lazygophers/ccplugin plugins/office/xlsx/skills/office-xlsx-skillsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过 MCP 工具和包装层操作 Excel 文件。
| 工具 | 用途 | 关键参数 |
|------|------|----------|
| read_excel | 读取文件内容 | file_path(支持 xlsx/xls/csv/tsv/json) |
| get_excel_info | 获取文件元数据 | file_path |
| get_sheet_names | 列出所有工作表 | file_path |
| 工具 | 用途 | 关键参数 |
|------|------|----------|
| analyze_excel | 统计分析 | file_path, sheet_name? |
| filter_excel | 条件过滤 | file_path, conditions |
| pivot_table | 透视表 | file_path, rows, columns, values |
| data_summary | 数据摘要 | file_path, sheet_name? |
| 工具 | 用途 | 关键参数 |
|------|------|----------|
| write_excel | 创建新文件 | file_path, data, sheet_name |
| update_excel | 修改现有文件 | file_path, updates, sheet_name |
| export_chart | 生成图表 | file_path, chart_type, x_column, y_column |
通过 scripts/wrapper.py 提供,使用 uv run 执行:
# xlsx -> CSV
uv run --directory ${CLAUDE_PLUGIN_ROOT} python scripts/wrapper.py convert data.xlsx output.csv
# CSV -> xlsx
uv run --directory ${CLAUDE_PLUGIN_ROOT} python scripts/wrapper.py convert data.csv output.xlsx
# xlsx -> JSON
uv run --directory ${CLAUDE_PLUGIN_ROOT} python scripts/wrapper.py convert data.xlsx output.json --sheet Sheet1
# JSON -> xlsx
uv run --directory ${CLAUDE_PLUGIN_ROOT} python scripts/wrapper.py convert data.json output.xlsx
# 批量导入:将目录下所有 CSV 合并为一个 xlsx(每个文件一个工作表)
uv run --directory ${CLAUDE_PLUGIN_ROOT} python scripts/wrapper.py batch-import ./data_dir/ merged.xlsx --pattern "*.csv"
# 批量导出:将 xlsx 每个工作表导出为独立 CSV
uv run --directory ${CLAUDE_PLUGIN_ROOT} python scripts/wrapper.py batch-export data.xlsx ./output_dir/ --format csv
# 批量导出为 JSON
uv run --directory ${CLAUDE_PLUGIN_ROOT} python scripts/wrapper.py batch-export data.xlsx ./output_dir/ --format json
# 统计分析(输出 JSON)
uv run --directory ${CLAUDE_PLUGIN_ROOT} python scripts/wrapper.py analyze data.xlsx --sheet Sheet1
# 统计分析 + 生成柱状图
uv run --directory ${CLAUDE_PLUGIN_ROOT} python scripts/wrapper.py analyze data.xlsx --output chart.png --chart-type bar --x name --y score
# 图表类型:bar, line, scatter, histogram, pie, box
# 数据洞察(异常值检测、相关性分析、趋势判断)
uv run --directory ${CLAUDE_PLUGIN_ROOT} python scripts/wrapper.py insight data.xlsx --sheet Sheet1 --top 5
read_excel、write_excel)wrapper.py)analyze_excel + 包装层的 analyze/insightexport_chart 适合简单图表,包装层支持更多类型(pie、box)development
Go 数据库规范——GORM Model 命名 ModelXxx、表名单数、枚举 uint8 + 常量、索引 idx_ 前缀 + deleted_at leading column、禁 time.Time 统一 int64 unix、禁指针/nullable 字段、TEXT/BLOB/JSON 禁 default、AutoMigrate 禁改主键。设计 DB model、写 GORM tag、建索引、做 migration 审查时触发。
development
Go HTTP API 规范——响应始终 200 + body code 字段、路由 /api/* 全 POST 单段 <Action><Model>、中间件逐路由注册禁 Group(prefix,mw...)、handler 仅返回 (rsp,error)、认证走 header。设计 HTTP API、写路由/handler/中间件时触发。
development
Go 项目结构规范——三层架构(API → Impl → State)、全局状态模式、internal/ 私有包、cmd/ 仅 main.go、go.work 多模块、禁止 Repository 接口和 DI 容器、struct 公共字段开头全 omitempty、handler var rsp 顶声明、禁 legacy migration。设计项目骨架、新建目录、组织包、做架构评审时触发。
development
Go 命名规范——Id/Uid 字段(非 ID)、IsActive/HasMFA 布尔前缀、CreatedAt 时间字段、接收者统一用 p、包名全小写无下划线、泛型类型参数描述性命名、集合字段 xxx_list 禁 xxxs 复数、Enum 0 值 XxxNil 禁 Unknown、禁 Status 统一 State、Set/Update 语义区分。定义结构体字段、函数、变量、包、接收者名、泛型、枚举时触发。