mcpbeat

Document Processor

vixues/document-processor

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.

562 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
194
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/vixues/LeAgent --skill document-processor

The instruction itself

9 sections, as written by the author

Document Processing

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

Document Analysis Workflow

  • Identify the document type: PDF, DOCX, XLSX, TXT, Markdown, HTML.
  • Assess document structure: headers, sections, tables, images, metadata.
  • Extract relevant content based on the user's request.
  • Transform extracted content to the requested format.
  • 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.

How to use it

Copy the folder

Take vixues/document-processor from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.