Agent Skillsvixues/LeAgent › document-processor

document-processor

GitHub

指导文档处理任务,涵盖PDF、Word等文件的解析、内容提取及格式转换。通过识别类型、评估结构、提取信息并验证准确性,实现结构化数据输出与格式互转。

backend/leagent/skills/builtin/document-processor/SKILL.md vixues/LeAgent

Trigger Scenarios

用户请求解析或提取文档内容 需要将文档转换为其他格式

Install

npx skills add vixues/LeAgent --skill document-processor -g -y
More Options

Non-standard path

npx skills add https://github.com/vixues/LeAgent/tree/main/backend/leagent/skills/builtin/document-processor -g -y

Use without installing

npx skills use vixues/LeAgent@document-processor

指定 Agent (Claude Code)

npx skills add vixues/LeAgent --skill document-processor -a claude-code -g -y

安装 repo 全部 skill

npx skills add vixues/LeAgent --all -g -y

预览 repo 内 skill

npx skills add vixues/LeAgent --list

SKILL.md

Frontmatter
{
    "name": "document-processor",
    "license": "Apache-2.0",
    "metadata": {
        "tags": [
            "document",
            "processing",
            "parsing",
            "extraction",
            "conversion"
        ],
        "version": "1.0.0",
        "category": "document"
    },
    "description": "Guidance for processing documents, extracting content, and transforming structured information. Use when the user asks to process, parse, extract, or transform document content such as PDFs, Word files, or spreadsheets.",
    "allowed-tools": "document_parser pdf_extractor docx_extractor excel_extractor table_extractor"
}

Document Processing

You are assisting with document processing tasks. Follow these guidelines.

Document Analysis Workflow

  1. Identify the document type: PDF, DOCX, XLSX, TXT, Markdown, HTML.
  2. Assess document structure: headers, sections, tables, images, metadata.
  3. Extract relevant content based on the user's request.
  4. Transform extracted content to the requested format.
  5. Validate accuracy, structure, and completeness.

Common Operations

Text Extraction

  • Preserve document structure (headers, paragraphs, lists).
  • Keep formatting where semantically meaningful (bold terms, emphasis).
  • Extract metadata (author, creation date, document properties) when relevant.

Table Extraction

  • Identify table boundaries and column headers.
  • Preserve row/column relationships when exporting to CSV or JSON.
  • Handle merged cells, nested tables, and multi-page tables carefully.

Information Extraction

  • Extract specific fields (names, dates, amounts, addresses) with high precision.
  • Use structured output (JSON, YAML) when returning multiple fields.
  • Report confidence when extraction is ambiguous.

Format Conversion

  • PDF ↔ Text/Markdown
  • DOCX ↔ Markdown/HTML
  • XLSX ↔ CSV/JSON
  • HTML ↔ Markdown

Quality Guidelines

  • Verify that extracted content matches the source.
  • Preserve line breaks and paragraph structure unless asked to flatten.
  • Flag OCR artifacts or illegible sections explicitly.
  • For multi-page documents, maintain page references where useful.

Error Handling

  • Document any parts that could not be processed (e.g., encrypted pages, images).
  • Provide clear error messages for unsupported formats.
  • Suggest alternative approaches when the primary method fails.

Version History

  • a3dbf81 Current 2026-07-06 00:03

Same Skill Collection

backend/leagent/skills/builtin/attendance-signin-sheet/SKILL.md
backend/leagent/skills/builtin/data-analyzer/SKILL.md
backend/leagent/skills/builtin/procurement-audit/SKILL.md
backend/leagent/skills/builtin/skill-packager/SKILL.md
backend/leagent/skills/builtin/travel-expense-audit/SKILL.md
backend/leagent/skills/builtin/workflow-helper/SKILL.md

Metadata

Files
0
Version
1f16bad
Hash
2f64120c
Indexed
2026-07-06 00:03

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-23 01:28
浙ICP备14020137号-1 $mapa de visitantes$