Community编程与开发github.com

claude-office-skills/layout-analyzer

分析办公文档布局并提供结构化描述。

layout-analyzer 是什么?

claude-office-skills/layout-analyzer 是一个用于分析办公文档(如 PDF 或 Word 文件)布局的 AI 技能。它能够识别文档中的文本块、表格、图像、页眉页脚等元素,并生成结构化的布局描述。该技能特别适合需要将非结构化文档转换为结构化数据的场景,例如文档归档、数据提取或无障碍阅读优化。它支持多种办公文档格式,通过解析文档的视觉布局来提供详细的层次化输出。该技能的工作原理基于计算机视觉和文档解析技术,能够从原始文档中提取关键布局信息,并以标准化的 JSON 或 Markdown 格式返回结果。它适用于 Claude Code、Cursor 等 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 是做什么的?

分析办公文档布局并提供结构化描述。

该技能用于分析办公文档(如 PDF 或 Word 文件)的布局,并输出 JSON 或 Markdown 格式的结构化描述。输出内容包括文本块、表格、图片、页眉页脚等元素的识别与定位。

功能

  • 识别文档中的文本段落、标题、列表
  • 检测表格及其结构(行、列、单元格)
  • 定位图片、图表和其他视觉元素
  • 提取页眉、页脚和页码
  • 生成层次化的布局树

使用方法

在支持的 AI 代理(如 Claude Code、Cursor)中,使用以下语法调用该技能:

/layout-analyzer <文件路径>

输出格式

默认输出为 JSON 格式,示例:

{
  "type": "document",
  "children": [
    {
      "type": "heading",
      "level": 1,
      "text": "文档标题"
    },
    {
      "type": "paragraph",
      "text": "这是第一段文本。"
    },
    {
      "type": "image",
      "src": "fig1.png",
      "caption": "示例图片"
    }
  ]
}

也可通过 --markdown 标志获取 Markdown 格式的输出。

支持的文件格式

  • PDF
  • DOCX
  • PPTX
  • 图片(PNG、JPG、TIFF)

环境变量

  • OCR_LANGUAGE - OCR 语言设置(默认:zh-CN+en)
  • OUTPUT_FORMAT - 输出格式(json 或 markdown)

注意事项

  • 对于扫描文档,会自动调用 OCR
  • 大型文档可能需要较长时间处理
  • 表格识别精度受文档质量影响

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.

相关技能