Community程式設計與開發github.com

claude-office-skills/layout-analyzer

分析文檔佈局結構,識別並提取文字區域、表格、圖表、頁首頁尾等元素。

layout-analyzer 是什麼?

claude-office-skills/layout-analyzer 是一個用於分析文檔佈局結構的 AI 技能,可以幫助開發者或 AI 代理識別文檔中的不同區域,如文字區塊、表格、圖表、頁首、頁尾及頁碼等。支援多種文檔格式,包括 PDF、掃描頁面、Word 文檔以及圖像型文檔。其運作方式基於版面分析演算法,自動偵測並標註各區塊的邊界與類型,進而提供結構化的輸出結果。這在進行後續 OCR 文字辨識、資料提取或文檔重排時特別有用,能提升處理效率與準確性。適合整合於文件處理工作流程或 AI 代理中,實現自動化文檔解析。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/claude-office-skills/skills/tree/main/skills/layout-analyzer

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

layout-analyzer 是做什麼的?

分析文檔佈局結構,識別並提取文字區域、表格、圖表、頁首頁尾等元素。

此技能旨在幫助 AI 代理解析文檔的視覺與結構化佈局,將其轉換為可被程式進一步處理的區域標註。支援的格式包括 PDF、掃描頁面、Word 文檔以及圖像型文檔。

功能

  • 自動偵測文檔中的文字區塊、表格、圖表、頁首、頁尾與頁碼
  • 輸出每個區域的邊界框(bounding box)與類型標籤
  • 可與 OCR 引擎或資料提取工具整合
  • 支援多頁文檔的序列化分析

使用方式

在支援此技能的 AI 代理(如 Claude Code、Cursor 或 Codex)中,可直接調用 layout-analyzer 分析指定的文檔。

範例指令

請分析此 PDF 檔案的佈局結構:report.pdf

或直接傳入文檔路徑:

layout-analyzer /path/to/scanned-document.png

輸出格式

分析結果將以 JSON 陣列形式回傳,每個元素包含:

  • type:區域類型("text", "table", "chart", "header", "footer", "page_number")
  • bbox:邊界框座標 [x1, y1, x2, y2](以像素為單位)
  • page:頁碼(從 1 開始)
  • confidence:信心度(0 到 1 之間)

範例輸出

[
  {
    "type": "text",
    "bbox": [100, 50, 500, 150],
    "page": 1,
    "confidence": 0.95
  },
  {
    "type": "table",
    "bbox": [80, 180, 520, 400],
    "page": 1,
    "confidence": 0.89
  }
]

平台支援

  • Claude Code:可透過工具呼叫直接使用
  • Cursor:整合於編輯器內的工作流程
  • Codex:支援 API 層級的調用

注意事項

  • 文檔解析精確度取決於原始文檔的品質與解析度
  • 掃描文件建議使用至少 300 DPI 以獲得最佳效果
  • 不支援加密或受密碼保護的文檔

相關連結

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

claude-office-skills/academic-search

Search and analyze academic literature. Find papers, understand research methodologies, and synthesize academic findings for research projects.

claude-office-skills/ads-copywriter

Multi-platform ad copy generation for Google Ads, Meta/Facebook, TikTok, LinkedIn with A/B testing variants

claude-office-skills/ai-agent-builder

Build AI agents with tools, memory, and multi-step reasoning - ChatGPT, Claude, Gemini integration patterns

claude-office-skills/airtable-automation

Airtable database automation - views, automations, integrations, and workflow triggers

claude-office-skills/ai-slides

Generate complete presentations with AI - from outline to polished slides

claude-office-skills/amazon-seller

Automate Amazon seller operations including inventory, orders, pricing, and advertising management

claude-office-skills/apple-shortcuts-integration

Create and trigger Apple Shortcuts for iOS/macOS automation and cross-platform workflows

claude-office-skills/applicant-screening

Screen job applications against requirements and score candidates

claude-office-skills/asana-automation

Automate Asana project management workflows, task tracking, team collaboration, and reporting

claude-office-skills/batch-convert

Batch convert documents between multiple formats using a unified pipeline

claude-office-skills/batch-processor

Process multiple documents in bulk with parallel execution

claude-office-skills/brand-guidelines-generator

Create and maintain brand style guides for consistent visual identity

claude-office-skills/browser-automation

Automate web browser interactions, scraping, testing, and workflow automation with Puppeteer/Playwright

claude-office-skills/calendar-automation

Google Calendar and Outlook automation - scheduling optimization, meeting workflows, time blocking, and Slack/Sheets integration

claude-office-skills/changelog-generator

Generate release notes from git commits, updates, or feature lists

claude-office-skills/chart-designer

Design effective data visualizations and charts. Generate chart configurations for ECharts, Chart.js, and other libraries. Create dashboards and reports.

claude-office-skills/chat-with-pdf

Answer questions about PDF content, summarize, and extract information

claude-office-skills/clickup-automation

Automate ClickUp workspace management, task workflows, time tracking, and team productivity

claude-office-skills/company-research

Conduct comprehensive company research and due diligence. Analyze business model, competitive landscape, management, and market position.

claude-office-skills/competitive-analysis

Analyze competitors systematically. Compare products, features, pricing, positioning, and market strategies. Generate comprehensive competitive intelligence reports.

相關技能