office-transform
Skill by CherryHQ
Extracts or edits a selected region of an xlsx, docx, pdf or pptx file into a new file. The source document is never modified.
Install office-transform
Built from the published package, never by AI.
git clone --depth 1 https://github.com/CherryHQ/cherry-studio /tmp/cherry-studio && mkdir -p ~/.claude/skills && cp -r /tmp/cherry-studio/resources/skills/office-transform ~/.claude/skills/office-transformRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/CherryHQ/cherry-studio /tmp/cherry-studio && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cherry-studio/resources/skills/office-transform ~/.gemini/antigravity-cli/skills/office-transformAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Office Transform turns a structural selection in an Office or PDF document into a new derived file. Selections use the document's own coordinates, such as a worksheet and A1 range, a body paragraph number, a one-based PDF page, or a pptx slide and shape id. Every result is written to a new file, and the source file is read-only.
The skill has two operations. Extract pulls the anchored region into a new file, with the output format set by the file extension. Patch-copy writes an edited copy of an xlsx or docx file and copies untouched parts byte-for-byte. Before editing, it checks the file's size and modification time and compares anchor text. It is meant for users who want a file produced from part of a document, not just a summary.
Written from the project's SKILL.md and checked against it.
What it can do
- ExtractPulls an anchored region from a document into a new xlsx, csv, md, docx, txt or pdf file.
- Patch-copyDerives an edited copy of an xlsx or docx file using only the standard library.
- Freshness checkCompares file size and mtime with the selection so changed files are flagged before editing.
- Anchor checkCompares the anchored text with the selected excerpt before a patch-copy edit runs.
What you need
- Python
- uv (used to run scripts with per-format dependencies)
Try asking
- Extract sheet 2, columns A through C, from this workbook into a CSV file.
- Make a copy of this Word file with paragraph 3 rewritten as a new sentence.
- Pull page 3 of this PDF into a separate file.
Good to know
- The source file is never modified, and scripts refuse to overwrite an existing output file.
- Patch-copy refuses xlsx shared, array or data-table formula cells.
- Patch-copy refuses docx paragraphs with bookmarks, fields, images, hyperlinks or tracked changes.
- Patch-copy does not recalculate formulas; Excel recalculates them on open.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: resources/skills/office-transform/SKILL.md, resources/skills/office-transform/scripts/office/common.py, resources/skills/office-transform/scripts/office/docx.py, resources/skills/office-transform/scripts/office/ooxml.py, resources/skills/office-transform/scripts/office/pdf.py, resources/skills/office-transform/scripts/office/pptx.py, resources/skills/office-transform/scripts/office/xlsx.py, resources/skills/office-transform/scripts/office_extract.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md18 KB -
references/docx-edit.md4 KB -
references/pptx-edit.md5 KB -
scripts/office/__init__.py0 B -
scripts/office/common.py8 KB
Show all 12 files
-
scripts/office/docx.py19 KB -
scripts/office/ooxml.py7 KB -
scripts/office/pdf.py2 KB -
scripts/office/pptx.py4 KB -
scripts/office/xlsx.py28 KB -
scripts/office_extract.py3 KB -
scripts/office_patch_copy.py5 KB
Alternatives to office-transform
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
office-transform: common questions
Does this skill change my original file?
No. The source file is read-only, and every result is written to a new file. Both scripts refuse to write to the source path or overwrite an existing file.
What happens if the file changed after I selected a region?
The skill reports that the file changed since the selection and asks the user to re-select. It does not re-anchor silently.
Which file formats are supported?
The skill handles xlsx, docx, pdf and pptx files. Extraction output depends on the source format, such as xlsx, csv or md for spreadsheets.
How do I install office-transform?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is office-transform free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is office-transform safe to use?
It scores 90 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to office-transform?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
