pls-office-docs
由 mattvalenta 提供
Image & Video Generation简介
Generate and manipulate office documents (PDF, DOCX, XLSX, PPTX) for professional reports, presentations, and data.
描述
该技能的功能
Generates and manipulates office documents in PDF, DOCX, XLSX, and PPTX formats using Python libraries. Covers creating documents from scratch, reading existing files, merging or splitting PDFs, adding charts and tables, and exporting data to spreadsheets.
Handles all four major office formats in one skill rather than requiring separate tools or manual document assembly.
何时使用
- Export database query results to a formatted Excel file
- Generate a monthly report as a Word document with tables
- Build a PowerPoint deck from structured data
- Merge multiple PDFs into a single file
- Extract text from an existing PDF for processing
示例工作流
User asks: Create an Excel file with monthly revenue data and a bar chart
- 1
Load revenue data into a pandas DataFrame
- 2
Write DataFrame to an .xlsx file using to_excel
- 3
Open the workbook with openpyxl to access the worksheet
- 4
Create a BarChart, bind it to the revenue column, and add it to the sheet
- 5
Save the workbook with the embedded chart
daily_revenue.xlsx with data rows and a bar chart inserted at column D
安装
clawhub install mattvalenta/pls-office-docs运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。