zs520l/hanakopro/office-documents
Claude Code and agent skill by zs520l/hanakopro
- community
Checking that the SKILL.md file is still in the repository.
Use when the user asks to open, read, inspect, understand, summarize, analyze, extract tables/text from, modify, update, repair, split, merge, rotate, or convert information from PDF, DOCX, XLSX, XLSM, or PPTX files, including when they mention Word, Excel, PowerPoint, spreadsheet, presentation, Office document, or PDF in passing. 读取或修改 PDF、Word、Excel、PPT 文件时必须使用。
Install
npx vskill@latest install zs520l/hanakopro/office-documentsSKILL.md
Office Documents
Use this skill for document files, not for building an Office viewer. The goal is to let the agent understand and safely modify files through deterministic scripts.
Supported formats:
- PDF:
.pdf - Word:
.docx - Excel:
.xlsx,.xlsm - PowerPoint:
.pptx
Do not use Anthropic/Claude document skills as source material. This skill is independently written and relies on permissive open-source libraries or direct OOXML parsing. See references/licenses.md before changing dependencies.
Core Workflow
- Identify the file type from the extension and the user's requested outcome.
- Read first, edit second. Always inspect the source file before modifying it.
- For reading, run
scripts/read_document.py. - For edits, write a small JSON operations file and run the matching edit script.
- Save edits to a new output file unless the user explicitly asks to overwrite.
- Read the output file again with
scripts/read_document.pyand verify the requested change. - If the requested operation is outside the supported surface, say so clearly and stop.
Reading
Use read_document.py for every supported format:
Behavior:
- It tries MarkItDown first when available.
- If MarkItDown is unavailable, it uses direct OOXML readers for DOCX, XLSX, and PPTX.
- For PDF text extraction it tries pdfplumber, then pypdf.
- It returns clear JSON errors when required PDF libraries are unavailable or the file is unsupported.
For large documents, read enough to understand structure first, then narrow by sheet, slide, page, heading, or searched text.
Editing
Use JSON operations. Keep each operation explicit and small enough to verify.
DOCX
Supported operations:
Use replace_text for safe text updates. append_paragraph and add_table require python-docx.
XLSX
Supported operations:
XLSX editing requires openpyxl. Preserve formulas unless the user asks to replace them.
PPTX
Supported operations:
Use replace_text for direct OOXML text updates. Shape targeting and text boxes require python-pptx.
Supported operations:
PDF editing requires pypdf. Do not claim support for arbitrary PDF text replacement. PDF text is drawing instructions, not normal document text.
Verification
After any edit:
- Confirm the output file exists and is non-empty.
- Read the output with
read_document.py. - Check that requested content changed and unrelated content still appears intact.
- Report any limitation, dependency failure, or partial edit.
For XLSX formulas, openpyxl preserves formulas but does not calculate them. If calculated values matter and no recalculation engine is available, say that formulas were written but not recalculated locally.
Unsupported Or Caution Cases
Be explicit when the requested task needs a real Office renderer or advanced document engine:
- Pixel-perfect layout repair.
- Scanned PDF OCR when no OCR engine or model is available.
- PDF arbitrary text replacement.
- Macros, VBA, encrypted files, password-protected files.
- Complex PowerPoint animations, transitions, SmartArt, embedded media, OLE objects.
- Excel pivot table authoring, slicers, external links, macros.
- Redline or track-changes fidelity matching Microsoft Word.
If the user needs one of these, explain the specific limitation and suggest the smallest safe alternative.
References
Read only the relevant reference file when needed:
references/docx.mdfor Word details.references/xlsx.mdfor spreadsheet details.references/pptx.mdfor PowerPoint details.references/pdf.mdfor PDF details.references/licenses.mdfor licensing and dependency constraints.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills2set/office-documents/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zs520l/hanakopro/office-documents)