document-processor

A document-processing workflow for reading, extracting, and transforming information from PDFs, Word files, spreadsheets, and other common document types. It preserves useful structure such as headings and table relationships.

In plain words
What is it for?
Extracting text, tables, names, dates, amounts, or addresses; converting documents; and returning structured results such as JSON or Markdown.
Why use it?
It reduces errors when moving information between documents or formats. It also encourages checking the extracted content for completeness and ambiguity.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/vixues/leagent/document-processor
Any agent
npx skills add vixues/LeAgent --skill document-processor
Clone the repo
git clone --depth 1 https://github.com/vixues/LeAgent

Made for: Claude Code, Codex.

Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 459 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00044 $0.00459
Opus 5 $0.00022 $0.00230
Sonnet 5 $0.00009 $0.00092
Haiku 4.5 $0.00004 $0.00046

Measured yesterday against content hash 2f64120cc234, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

document-processor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend/leagent/skills/builtin/document-processor/SKILL.md · 63 lines

What it actually says

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.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 63 lines · 44 tokens per session scan A 2f64120cc234

Subscribe to this mod's changes

document-processor is a skill published in the GitHub repository vixues/LeAgent (216 stars, last pushed 21d ago), licensed Apache-2.0. It adds 44 tokens to every session and 459 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

rn-feature-development

This skill should be used when building any new feature in a React Native or Expo app, or when the /rn-dev-agent:rn-feature-dev command runs. Triggers on "build a feature", "add X to the app", "implement Y", "create a new screen", "rn-feature-dev", "feature development", "build me X", "add a screen", "wire up this…

Lykhoyda/rn-dev-agent · 86 tokens

rn-device-control

This skill should be used when the user asks to "control the simulator", "take a screenshot", "boot the emulator", "install the app", "read UI hierarchy", "manage device state", "open a deep link", "grant permissions", "stream native logs", "disable animations", "change device locale", or needs guidance on xcrun…

Lykhoyda/rn-dev-agent · 98 tokens

rn-testing

This skill should be used when the user asks to "write a Maestro test", "create E2E flows", "add testIDs", "run UI tests", "run E2E tests", "verify a feature works", "test my screen", "set up maestro-runner", "mock network requests", "inspect store state", "write test assertions", or needs guidance on test timing…

Lykhoyda/rn-dev-agent · 106 tokens

using-rn-dev-agent

Entry point for the rn-dev-agent plugin. Maps user intent to the right command, agent, or skill. Use at the START of any React Native development conversation. Triggers on "I want to build", "build a feature", "add a feature to the app", "test this", "something is broken", "fix the crash", "help with my React Native…

Lykhoyda/rn-dev-agent · 92 tokens

capturing-proof

This skill should be used when the user asks to "capture proof", "record a demo of this feature", "make a video showing it works", "record the flow for the PR", "generate a PR body", "capture screenshots for the PR", "proof-capture", or when a verified feature needs PR-ready proof artifacts (video + numbered…

Lykhoyda/rn-dev-agent · 105 tokens

creating-actions

This skill should be used when the user asks to "create an action", "save this flow as an action", "make this replayable", "record a reusable action", "author a Maestro flow as an action", "add a login/setup action", or when a verified UI walk should be persisted under .rn-agent/actions/ so future sessions can replay…

Lykhoyda/rn-dev-agent · 127 tokens