Skip to main content
skill CX Codex

extract-tables — Claude Code skill for DOCX tables

extract-tables is a Claude Code skill that turns Word tables into one Markdown file while preserving merged-cell structure. It extracts tables for analysis or slides.

no license ★ 240 updated 2026-09-18

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add franklee16/academic-research-skills --skill extract-tables -a claude-code
Open on GitHub

What extract-tables does

The skill gathers tables from a Word document into a Markdown file. It reads each table’s XML structure and accounts for cells merged across rows or columns. That matters when a basic row-by-row read would repeat cell text or leave continuation cells blank.

The workflow requires Python and the python-docx library. It checks the DOCX path before running the extraction script; by default, the Markdown file is saved beside the source document as <filename>_tables.md. On Windows, set the output encoding to UTF-8 explicitly to avoid encoding errors with special characters.

What it helps with

  • export every table in a DOCX file to Markdown
  • retain the layout of horizontally merged cells
  • recover values across vertically merged cells
  • prepare Word tables for analysis or slides

Example prompts for the agent

  • Extract every table from report.docx into one Markdown file.
  • Convert the tables in data.docx and preserve merged cells.
  • Put the tables from this Word document into Markdown for analysis.

How to install extract-tables

1Skills CLI (Vercel)

npx skills add franklee16/academic-research-skills --skill extract-tables -a claude-code

2Manually: put the files in place

~/.claude/skills/extract-tables/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/extract-tables/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about extract-tables

How do I install extract-tables in Claude Code?

Run npx skills add franklee16/academic-research-skills --skill extract-tables -a claude-code.

What does extract-tables do?

It exports tables from DOCX files to a single Markdown file and handles cells merged horizontally or vertically.

What does extract-tables need to run?

It requires Python with the python-docx library installed. On Windows, the output encoding should be set to UTF-8.

Similar skills

All skills for Office documents →

From the same set98

The whole set →
scientific-writing scientific-writing turns a research manuscript into flowing paragraphs: an outline per section first, then prose with APA, AMA or Vancouver citations. CX Codex +1 ★ 240repo stars market-research-reports Builds 50+ page market research reports modeled on McKinsey and BCG deliverables. CX Codex +1 ★ 240repo stars scientific-visualization scientific-visualization is a Claude Code skill for preparing scientific plots for journal submissions with publication styles, accessible palettes, and export settings, including multi-panel figures and error bars. CX Codex +1 ★ 240repo stars hypothesis-generation hypothesis-generation formulates testable scientific hypotheses from raw data and observations. Proposes mechanistic explanations, experimental setups, and quantitative predictions. CX Codex +1 ★ 240repo stars aer-submission aer-submission runs the last check on an AER, AER:Insights or AEJ manuscript before you submit: length limits, formatting, the file package, cover letter and journal choice. CX Codex +1 ★ 240repo stars aer-consistency aer-consistency audits draft economics papers for AER and AEJ journals, verifying that figures, sample sizes, and citations match across sections and exhibits. CX Codex +1 ★ 240repo stars paper-insight paper-insight structures paper reading, literature searches, and research ideation. Use it to assess a study, compare related work, or turn stated limitations into testable plans. CX Codex +1 ★ 240repo stars science-translational-medicine Weighs a translational medicine manuscript against Science Translational Medicine: whether the mechanism and the clinical arm hold together, and what would send it back unreviewed. CX Codex +1 ★ 240repo stars

Project sponsors

Companies that keep this analytics open