document-conversion

document-conversion is a skill for Claude Code, Codex from nimadorostkar/Claude-Skills-collection. It costs 36 tokens per session (1,267 once invoked), scanned A, original, MIT.

A toolkit for converting documents between formats such as HTML, Markdown, Word, and PDF while keeping important structure such as headings, tables, links, code blocks, and images. It can also normalize mixed document collections.

In plain words
What is it for?
Use it to convert web pages or office files to Markdown, generate PDFs from HTML or Markdown, extract page content, and batch-normalize documents.
Why use it?
It reduces the loss of structure that often occurs when documents are converted, making the result easier to read or process. It also identifies content that the target format could not preserve.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to convert web pages or office files to Markdown, generate PDFs from HTML or Markdown, extract page content, and batch-normalize documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nimadorostkar/claude-skills-collection/document-conversion
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.

Any agent
npx skills add nimadorostkar/Claude-Skills-collection --skill document-conversion
Clone the repo
git clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collection

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for document-conversion

README.md
[![agentmods](https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/document-conversion/github.svg)](https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/document-conversion)
Your own site
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/document-conversion"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/document-conversion/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for document-conversion

Your own site · 80×15
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/document-conversion"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/document-conversion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,267 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high System Prompt Leakage · line 114
    Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
    Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
How audits are shown
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.1 $0.00036 $0.01267
Opus 5 $0.00018 $0.00633
Sonnet 5 $0.00007 $0.00253
Haiku 4.5 $0.00004 $0.00127

Measured 8d ago against content hash 9645b28989ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

document-conversion 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 8d ago.

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.

skills/documents/document-conversion/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Document Conversion

Purpose

Convert documents between formats while preserving the structure that matters. Most conversion tools preserve the text and destroy the structure, which is usually the part you needed.

When to Use

  • Converting a web page or an HTML document to Markdown.
  • Converting Word, PDF, or HTML into a text format for processing.
  • Generating a PDF from HTML or Markdown.
  • Normalizing a mixed corpus into one format.

Capabilities

  • HTML to Markdown, with structure preserved.
  • Office formats to Markdown or plain text.
  • Markdown or HTML to PDF, with proper pagination.
  • Batch conversion and normalization.
  • Content extraction from web pages, discarding the navigation.

Inputs

  • The source documents and their formats.
  • What must survive the conversion: headings, tables, links, code blocks, images.
  • The target format and what it can represent.

Outputs

  • Converted documents with their structure intact.
  • A report of what could not be preserved.

Workflow

  1. Decide what must survive — Headings and tables usually must. Fonts and exact spacing usually must not. Naming this first prevents a great deal of wasted effort on preserving things nobody needs.
  2. Extract the content, not the page — A web page is 80% navigation, cookie banners, and related-articles rails. Convert the article, not the chrome.
  3. Use a converter that understands the structure — A regex that strips HTML tags produces a wall of text with no headings and no tables. Use a real parser.
  4. Handle the tables specially — They are the most commonly destroyed structure. Verify them after conversion.
  5. Verify a sample — Open the output next to the input and compare. Conversion failures are usually silent.

Best Practices

  • Structure is what makes a document useful. A conversion that produces correct text with no headings has thrown away the navigation, the outline, and every chunking boundary a downstream system would use.
  • Tables convert badly by default and are frequently the highest-value content. Check them explicitly.
  • Code blocks lose their language annotation in most conversions. If the corpus is technical, that matters.
  • When converting HTML, strip the navigation, the footer, and the scripts before converting, not after — an extraction library that identifies the main content does this far better than a hand-written selector.
  • PDF generation from HTML requires a real browser engine for anything with modern CSS. Older HTML-to-PDF libraries silently ignore flexbox and grid, and the output looks nothing like the page.
  • Preserve the source URL or path in the output. A converted document with no provenance is unverifiable.

Read the full file on GitHub · 135 lines

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. 8d ago First seen · 135 lines · 36 tokens per session scan A 9645b28989ed

Subscribe to this mod's changes

document-conversion is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (26 stars, last pushed 24d ago), licensed MIT. It adds 36 tokens to every session and 1,267 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-09-03.

Related

Other skills, from other repositories

pdf

Summarize document text and identify its main claims, evidence, and unanswered questions.

Kyure-A/agent-skills-nix · 19 tokens

LaTeX工具

A tool for creating, compiling, and checking mathematical modelling papers written in LaTeX, a document system often used for technical writing.

XiaoMaColtAI/math-modeling-skill · 46 tokens

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

XiaoMaColtAI/math-modeling-skill · 92 tokens

tutor-setup

Transforms knowledge sources into an Obsidian StudyVault. Two modes: (1) Document Mode — PDF/text/web sources → study notes with practice questions. (2) Codebase Mode — source code project → onboarding vault for new developers. Mode is auto-detected based on project markers in CWD.

bevibing/tutor-skills · 66 tokens

commodities-outlook

Produce institutional-grade commodity outlook reports with supply-demand analysis, price forecasts, and trade recommendations, formatted as PDF, DOCX, or PPTX documents. Triggered when users request commodity market reports, ask for trade ideas on energy, metals, or agricultural commodities, or mention keywords like…

serejaris/kimi-skills · 71 tokens

equity-research-report-cn

A tool for creating institutional-style investment research reports about stocks, bonds, sectors, funds, derivatives, or quantitative strategies. It supports PDF, DOCX, and PPTX output.

serejaris/kimi-skills · 110 tokens