extract-figures — Claude Code skill: DOCX figures
extract-figures pulls figures, charts, diagrams, and images from .docx, converts EMF/WMF assets to PNG, and prepares LaTeX usage notes.
no license ★ 240 updated 2026-09-18
npx skills add franklee16/academic-research-skills --skill extract-figures -a claude-codeWhat extract-figures does
This skill exports embedded media from a Word document into a figures/ folder beside the source .docx. EMF, WMF, EMZ, and WMZ files become 300 DPI PNGs; PNG, JPG, GIF, and BMP assets are copied in their existing formats.
The bundled scripts/extract_figures.py script opens the DOCX archive, maps relationship IDs to media files, walks the document XML, and looks for nearby captions such as “Figure N”. It writes position-based names like img_001.png, a _manifest.json mapping, and a draft _readme_draft.md file.
The workflow includes checking image content when a figure has multiple panels, then correcting filenames and the manifest if visual order differs from XML order. Python plus python-docx and Pillow are required before the skill can run.
What it helps with
- export every image from a
.docxfile - convert EMF and WMF artwork for LaTeX
- match extracted files with Figure N captions
- check panel order in compound figures
- prepare a README with LaTeX snippets
Example prompts for the agent
- Extract every figure, chart, and image from
paper.docxintofigures/. - Pull the diagrams from
manuscript.docx, convert vector assets to PNG, and create LaTeX usage notes. - Check the panel order in figures from
Draft/results.docxand update the manifest filenames.
How to install extract-figures
1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill extract-figures -a claude-code2Manually: put the files in place
~/.claude/skills/extract-figures/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/extract-figures/
1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill extract-figures -a codex2Manually: put the files in place
.agents/skills/extract-figures/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill extract-figures -a cursor2Manually: put the files in place
.cursor/skills/extract-figures/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install franklee16/academic-research-skills output-tools/extract-figures/SKILL.md2Manually: put the files in place
.github/skills/extract-figures/SKILL.md1Skills CLI (Vercel)
npx skills add franklee16/academic-research-skills --skill extract-figures -a gemini-cli2Platform CLI
gemini skills install https://github.com/franklee16/academic-research-skills --path output-tools/extract-figuresManually: put the files in place
.devin/skills/extract-figures/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about extract-figures
How do I install extract-figures in Claude Code?
Run npx skills add franklee16/academic-research-skills --skill extract-figures -a claude-code, then check ~/.claude/skills/extract-figures/SKILL.md.
What does extract-figures do?
It exports embedded media from .docx files, turns EMF and WMF assets into 300 DPI PNGs, associates images with nearby captions, and prepares LaTeX notes.
What does extract-figures need to run?
It requires Python with python-docx and Pillow installed. Install them with pip install python-docx Pillow.