office-editor

Installation
SKILL.md

Office Document Handling

Use this skill for .docx, .xlsx, and .pptx files. Identify the file type first, check the required dependencies next, and then decide whether to create a new file or modify an existing one.

Follow These Rules First

  1. Confirm the target format first: Word uses python-docx, Excel uses openpyxl, and PowerPoint uses python-pptx.
  2. Check whether the required dependency can be imported. If something is missing, tell the user exactly which package is required. Do not run pip, pip3, python -m pip, sudo, or similar install commands automatically.
  3. When editing an existing file, preserve the original by default and save the result as a new file. Only overwrite the original if the user explicitly asks for that.
  4. Do structural edits before visual fine-tuning. Avoid writing a large amount of low-value formatting code upfront.
  5. Only open the matching document in references/ when an advanced API is needed. Do not load every reference file into context at once.

Dependency Tiers

Core Dependencies

  • python-docx: for Word documents.
  • openpyxl: for Excel workbooks.
  • python-pptx: for PowerPoint presentations.
Installs
4
First Seen
Apr 19, 2026
office-editor from skills.volces.com