Skip to content
GLM-OCR Table Recognition

GLM-OCR Table Recognition Skill

Extract complex tables, including merged cells and multi-row headers, from images and PDFs into clean Markdown.

GitHub

Install

Install with the skills CLI

One command for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf and dozens of other agents. Needs Node.js; the skill is fetched straight from zai-org/GLM-OCR.

$ npx skills add zai-org/GLM-OCR

Run it in a terminal. The CLI finds the agents installed on your machine, asks which ones to add the skill to, and whether to install it into the folder you ran it from or for all your projects. It also lists the skills in the repository so you can pick GLM-OCR Table Recognition.

Other ways to install

  1. Open the skill on GitHub and download the folder that holds its SKILL.md.
  2. Put it at ~/.claude/skills/glm-ocr-table-recognition/, where Claude Code picks it up in every project.

No scripts or references next to it? Saving the SKILL.md alone as ~/.claude/skills/glm-ocr-table-recognition/SKILL.md works too.

Using another agent? Its personal skills folder
Codex
~/.agents/skills/
Cursor
~/.cursor/skills/
GitHub Copilot
~/.copilot/skills/
Gemini CLI
~/.gemini/skills/
Windsurf
~/.codeium/windsurf/skills/
OpenCode
~/.config/opencode/skills/

About

  • Handles merged cells, nested tables, and multi-row headers
  • Multi-page PDF batch extraction
  • Clean Markdown table output
  • Works from local files or remote URLs

GLM-OCR Table Recognition is Zhipu AI's official skill for converting table-heavy documents into structured, editable Markdown. It calls the ZhiPu GLM-OCR layout-parsing API to detect and reconstruct tables from images, scanned documents, and multi-page PDFs, specifically handling cases that trip up naive OCR, such as merged cells, nested tables, and multi-row headers.

Input can be a local file or a remote URL, and output is clean Markdown table syntax that is immediately usable downstream or easy for an LLM to reason over further. The skill targets documents where the payoff is in the table rather than the surrounding prose, such as financial statements, invoices, and reports with embedded tabular data, and only needs a Zhipu API key plus Python to run. It is narrower and more focused than a full document-parsing pipeline, so it fits best when the ask is specifically to get a table out of an image or PDF and into something editable, rather than a full structural conversion of a whole document.

SKILL.md

The instructions your agent loads, as published by Z.ai (Zhipu AI).

SKILL.md

GLM-OCR Table Recognition Skill

Extract tables from images and PDFs and convert them to Markdown format using the ZhiPu GLM-OCR layout parsing API.

When to Use
  • Extract tables from images or scanned documents
  • Convert table images to Markdown or Excel format
  • Recognize complex tables with merged cells
  • Parse financial statements, invoices, reports with tables
Key Features
  • Complex table support: merged cells, nested tables, multi-row headers
  • Markdown output: clean, easy to edit and convert
  • Multi-page PDF: batch extraction from multi-page PDF documents
  • Local file & URL: supports both local files and remote URLs

Setup: script reads the key from the ZHIPU_API_KEY environment variable, reusable across other Zhipu skills.

Install

Skill: PDF

by Anthropic

Read, create, and manipulate PDF files — extract text and tables, merge, split, watermark, fill forms, encrypt, and OCR scanned pages.

Browse all skills →