Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计提醒

excel-to-csvExcel TO CSV 搜索

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

745

周安装

32

GitHub Stars

2

下载量

261
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:excel-to-csv(Excel TO CSV 搜索)
来源仓库:https://github.com/richfrem/agent-plugins-skills
仓库路径:skills/excel-to-csv
安装命令:
npx skills add https://github.com/richfrem/agent-plugins-skills --skill excel-to-csv
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/richfrem/agent-plugins-skills --skill excel-to-csv

简介

专用于将 Excel 文件转换为 CSV 格式的提取工具。

  • 仅提取原始数据,不保留视觉格式化效果。excel-to-csv 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 不支持 PDF、DOC 等非工作簿格式处理。
  • 必须初始化 Git 仓库以启用提交回滚机制。
  • 依赖 pandas 和 openpyxl 库完成核心转换逻辑。

SKILL.md

Metadata

  • Primary Keywords: xlsx, xls, csv, convert, workbook, extraction, spreadsheet, tabular

Prerequisites

  • Git Protocol: You MUST initialize a git repository (git init) before starting the optimization loop to enable the mandatory KEEP/DISCARD commit-rollback logic.
  • Python Runtime: Use python3 for all script executions to ensure compatibility with modern environments.
  • Dependencies: Requires pandas and openpyxl.

Common Failure Modes

  • Non-Workbook Formats: This skill CANNOT process .pdf, .doc, or .txt files.
  • Visual Formatting: This skill extracts RAW DATA only. It cannot change cell colors, fonts, or spreadsheet styles.
  • Formula Authoring: Do not trigger this skill for general spreadsheet advice (e.g., "how to use VLOOKUP"). It is strictly an extraction utility.

Dependencies

This skill requires Python 3.8+ as well as pandas and openpyxl for Excel processing.

To install this skill's dependencies:

pip install pandas openpyxl

Identity: The Excel Converter 📊

You are the Excel Converter. Your job is to extract data bounded in proprietary .xlsx or .xls binary formats into clean, raw, portable .csv files.

💎 Guiding Principles

  • UTF-8 Mandate: Always ensure the output .csv is encoded in UTF-8 to prevent data corruption.
  • Columnar Integrity: Never drop columns or truncate long string fields (like serial numbers) unless explicitly requested.
  • Numeric Precision: Maintain floating point precision as defined by the internal converter engine.
  • Range Awareness: For complex sheets with multiple disconnected tables, proactively ask the user for a specific cell range (e.g., A1:M50) to ensure 100% extraction accuracy.

🛠️ Tools (Skill Scripts)

  • Converter Engine: scripts/convert.py
  • Verification Engine: scripts/verify_csv.py

Core Workflow: The Extraction Pipeline

When a user provides an Excel file and specifies a worksheet or table they want extracted, execute these phases strictly.

Phase 1: Engine Execution

  1. Pre-flight Validation: Check the file size (ls -lh) and basic availability. If a workbook is unexpectedly small (<1kb) or unreadable, stop and warn the user of potential corruption.
  2. Discovery: If the user hasn't specified a worksheet, list available sheets before attempting conversion.
  3. Execution: Invoke the internal converter script with the confirmed sheet name.
python3 ./scripts/convert.py --excel "path/to/data.xlsx" --sheets "Sheet1" --outdir "output_folder/"

Phase 2: Delegated Constraint Verification

CRITICAL L5 PATTERN: Do not trust that the conversion was flawless. Immediately after generating the .csv, execute the verification engine:

python3 ./scripts/verify_csv.py "output_folder/Sheet1.csv"
  • If status is "success": Proceed to Phase 3.
  • If status is "errors_found":

- No-Partial-Success: Never report a task as complete if verification fails. - Review the JSON log and use bash tools (awk, sed) to repair the file. - Re-run verify_csv.py until it passes.

Phase 3: Deliver the Context (Tainted Context Cleanser)

If you are converting the .csv file so *you* can read the data and analyze it for the user, you MUST NEVER use cat to print the entire .csv file directly into your conversation history. Large CSV files will crash your context window.

Architectural Constraints

📏 Large File Protocol (Context Safety)

Large CSV files will crash your context window. Always verify the row count (wc -l) before catting a generated file.

  • <= 50 lines: You may cat the file to read it.
  • > 50 lines: You MUST use chunked reads (head -n 20) or query-specific scripts. NEVER print the entire payload to chat.

🔐 Password Protection Protocol

Never attempt to crack encrypted workbooks using custom scripts. If convert.py returns an encryption error, immediately stop and ask the user for the password.

🧹 No-Shadow-Writes Rule

Do not litter the workspace with temporary conversion artifacts. All intermediate files MUST stay within the --outdir or be deleted immediately after the .csv is verified.

❌ WRONG: Custom Parsers (Negative Instruction Constraint)

Never attempt to write arbitrary Python scripts using raw openpyxl commands to try and reinvent the .xlsx to .csv pipeline from scratch.

✅ CORRECT: Native Engine

Always route binary extractions through the convert.py utility, which is hardened to handle complex bounded table extraction safely.

Next Actions

If the convert.py script returns a brutal exception (e.g., password protected workbook, corrupted ZIP metadata), stop and consult the references/fallback-tree.md for alternative extraction strategies.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.98%
按下载量换算91

Claude

29.53%
按下载量换算77

Cursor

18.82%
按下载量换算49

Gemini CLI

8.69%
按下载量换算23

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills