跳到正文
cccskills
免费在 GitHub 公开

file-conversion

Choose suitable libraries for converting spreadsheet data and image files, or extracting text and tables from documents. Covers supported format pairs and identifies conversions unavailable in the described environment before work begins.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Use this skill when the user asks to convert a file from one format to another (e.g. csv to xlsx, xlsx to json, pdf text to csv) and you're not sure which library handles that specific pair, or whether it's supported in this environment at all. Dispatches to the right library per format pair and explicitly lists conversions that are NOT supported here so you don't attempt one that will silently fail or produce a wrong result.

查看安装方法

适用场景

  • Convert tabular data between CSV, Excel, and JSON
  • Change image formats or resize images
  • Extract text from Word documents
  • Extract PDF text or tables for CSV output

包含的文件(1)

  • SKILL.md3.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

File format conversion

Supported conversions

FromToDefault (Node)Fallback (Python)
csvxlsx / json / htmlpapaparse (parse to array of objects) → exceljs (xlsx) / JSON.stringify (json) / a hand-rolled <table> loop (html — no library needed for this)pandas.read_csv → .to_excel / .to_json / .to_html — reach for this when the conversion needs real reshaping (pivots, group-by, dtype coercion) along the way, not as a first choice
xlsxcsv / json / htmlexceljs (read) → papaparse.unparse (csv) / JSON.stringify (json) / hand-rolled htmlpandas.read_excel → .to_csv / .to_json / .to_html
json (tabular/list-of-records shape)csv / xlsxJSON.parse → papaparse.unparse (csv) / exceljs (xlsx)pandas.read_json → .to_csv / .to_excel
image (png/jpg/webp/etc.)different image format, resize, basic editssharp (.toFormat(...), .resize(...))Pillow (Image.open(...).save(new_path))
docxplain text— (no solid Node equivalent for structured docx parsing)python-docx / docx2python — extract paragraph and table text
pdfplain text / csv (tables)— (no solid Node equivalent for table-aware extraction)pdfplumber — extract_text() / extract_tables() → build a DataFrame if tabular

For plain csv/xlsx/json reshuffling, default to the Node path (an array of plain objects is the common intermediate, playing the same role pandas.DataFrame plays on the Python side) per this environment's Node-first policy — reach for pandas only when the conversion needs real data reshaping along the way. docx/pdf extraction and structure-aware parsing have no solid Node equivalent here, so those stay Python regardless of format on the other end.

NOT supported in this environment

These all require a document-rendering engine (LibreOffice) that is not installed in the sandbox yet. Tell the user directly rather than attempting a workaround (e.g. do not try to fake a "pdf" by screenshotting text, and do not claim success on a conversion you didn't actually perform):

  • docx → pdf
  • pptx → pdf
  • doc (legacy binary Word format) → docx
  • xlsx → pdf
  • Any conversion that requires rendering/rasterizing a document (visual layout to image)

Choosing between "extract data" and "convert format"

If the user's underlying goal is "get the numbers out of this PDF/docx into a spreadsheet" rather than literally "convert this file", extracting the relevant data and writing exactly the columns/rows they need is usually a better outcome than a generic whole-file conversion — ask yourself which one they actually need before picking an approach.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Build or extend a PipesHub connector, an integration that syncs content from an external service or database. The skill guides API research, design decisions, permission mapping, implementation, testing, and documentation of what was actually verified.

中文简介正在准备中。当前显示英语简介。

  • Build a connector for an external service
  • Add a new content type to an existing connector
  • Review how source permissions map to PipesHub
pipeshub-ai/pipeshub-ai38432026年10月22日 更新

Load, clean, summarize, and join tabular data from CSV, Excel, JSON, or database exports using pandas. Check missing values, data types, and row counts, then independently verify key figures before reporting numbers printed by the code.

中文简介正在准备中。当前显示英语简介。

  • Summarizing revenue by region
  • Cleaning missing values and duplicate rows
  • Joining files by customer ID
pipeshub-ai/pipeshub-ai38432026年10月22日 更新

Turn data into charts suited to comparisons, trends, distributions, relationships, or shares. Add clear titles, units, and accessible colors, then export a static PNG or interactive HTML with hover details and zoom controls.

中文简介正在准备中。当前显示英语简介。

  • Charting monthly revenue trends
  • Comparing totals across regions or categories
  • Examining order-size distributions
pipeshub-ai/pipeshub-ai38432026年10月22日 更新

docx

免费

Create Word reports, memos, letters, and proposals with headings, tables, lists, and a table of contents. Also supports targeted edits to existing .docx files and reading or summarizing their text and tables.

中文简介正在准备中。当前显示英语简介。

  • Create a Word report or proposal
  • Edit selected passages in an existing document
  • Read and summarize document text and tables
pipeshub-ai/pipeshub-ai38432026年10月22日 更新

Unpack Word and PowerPoint files to inspect and edit their internal XML, the markup that stores document content. Repack targeted changes with XML syntax checks while preserving the original archive entry order.

中文简介正在准备中。当前显示英语简介。

  • Make a small edit inside a Word or PowerPoint file
  • Investigate errors in generated document XML
  • Inspect internal document parts and image references
pipeshub-ai/pipeshub-ai38432026年10月22日 更新

pdf

免费

Create PDF reports, invoices, and letters, extract text or tables from existing PDFs, and fill interactive form fields. The skill also guides table layout, text wrapping, and page breaks so generated documents fit their pages.

中文简介正在准备中。当前显示英语简介。

  • Create a PDF report or invoice
  • Extract text and tables from an existing PDF
  • Fill fields in a PDF form
pipeshub-ai/pipeshub-ai38432026年10月22日 更新

查看 pipeshub-ai 的全部技能

报告此技能的问题