Agent skill · research science · claude-office-skills
layout-analyzer
>
Why this skill is useful
Provides specific commands and patterns for layout analysis that the AI wouldn't reliably generate on its own.
What it needs
Requires pillow, surya installed locally. About 5k tokens when loaded. Last updated 2026-01-31. 363 stars on the source repository.
What this skill does
Layout Analyzer Skill Overview This skill enables document layout analysis using surya - an advanced document understanding system. Detect text blocks, tables, figures, headings, and determine reading order in complex documents. How to Use 1. Provide the document image or PDF 2. Specify what layout elements to detect 3. I'll analyze the structure and return detected regions Example prompts: "Analyze the layout of this document page" "Detect all tables and text blocks in this image" "Determine the reading order for this PDF page" "Find headings and paragraphs in this document" Domain Knowledge surya Fundamentals Layout Element Types Element Description --------- ------------- Text Regular paragraph text Title Document/section titles Section-header Section headings List-item Bulleted/numbered items Table Tabular data Figure Images/diagrams Caption Figure/table captions Footnote Footnotes Formula Mathematical equations Page-header Headers Page-footer Footers Text Detection Layout Analysis Reading Order Detection OCR with Layout Processing PDFs Visualization Best Practices 1. Use High-Quality Images: 150+ DPI for best results 2. Preprocess if Needed: Deskew rotated documents 3. Validate Results: Check confidence scores 4. Handle Multi-page: Process pages individually 5. Combine with OCR: Get text within detected regions Common Patterns Document Structure Extraction Table Region Extraction Examples Example 1: Academic Paper Analysis Example 2: Form Field Detection Example 3: Multi-column Article Limitations Handwritten layouts may be inaccurate Very small text regions may be missed Complex nested layouts challenging GPU recommended for batch processing Multi-language support varies Installation Resources surya GitHub Model Documentation Examples
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills claude-office-skills/layout-analyzer