Back to Skills

layout-analyzer

>

196stars50forksUpdated 6/8/2026

Security Assessment

Safe(100/100)
Security Score100/100

About layout-analyzer

The layout-analyzer skill performs document layout analysis for images and PDFs using surya, an advanced document understanding system. It helps identify the structural regions of complex documents, such as text blocks, tables, figures, headings, captions, formulas, headers, footers, and footnotes. This solves the problem of understanding how a document page is organized before extracting, reading, or processing its content.

Its main capabilities include layout detection, structure analysis, text region detection, and reading order detection. The skill can analyze document images, detect layout element types, return bounding boxes with confidence scores, and determine the sequence in which detected regions should be read. It also includes examples for using surya predictors such as DetectionPredictor, LayoutPredictor, ReadingOrderPredictor, and OCRPredictor in Python.

This skill is useful for users working with scanned documents, PDFs, research papers, reports, forms, or visually complex pages. It is especially relevant for document processing workflows that need to separate paragraphs, tables, figures, headings, and other layout components before further OCR, extraction, or analysis. Target users include technical teams, document automation specialists, data extraction engineers, and anyone needing structured document understanding.

FAQ

What types of documents can this skill analyze?

The skill is designed for document images and PDF pages. It can analyze complex layouts and detect regions such as text, titles, section headers, tables, figures, captions, footnotes, formulas, page headers, and page footers.

Can this skill determine reading order?

Yes. The skill includes reading order detection using surya's ReadingOrderPredictor after layout elements have been detected.

What languages are supported?

The metadata lists English and Chinese support.

What models are compatible with this skill?

The recommended models are claude-sonnet-4 and claude-opus-4. Compatible models include claude-3-5-sonnet, gpt-4, and gpt-4o.

Does the skill require any specific tools or libraries?

The skill content references surya and Python examples using PIL Image. The metadata also lists integration with the office-mcp server and the analyze_document_structure MCP tool.

Install layout-analyzer

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill