file-converter

file-converter is a skill for Claude Code from georgekhananaev/claude-skills-vault. It costs 76 tokens per session (2,411 once invoked), scanned A, original, MIT.

A file-conversion toolkit changes files between common image, document, data, vector, encoded-text, and text-encoding formats. It supports individual files and batches of files.

In plain words
What is it for?
Use it to convert or resize images, turn Markdown into HTML or PDF, turn HTML into Markdown, transform CSV, JSON, YAML, TOML, and XML, rasterize SVGs, encode files as Base64, or fix text encoding.
Why use it?
It avoids switching between separate utilities for tasks such as resizing images, converting data formats, or producing PDFs from Markdown.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/<script>.py ./dir/ --output-dir ./out --format ext.

Good fit Use it to convert or resize images, turn Markdown into HTML or PDF, turn HTML into Markdown, transform CSV, JSON, YAML, TOML, and XML, rasterize SVGs, encode files as Base64, or fix text encoding.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/georgekhananaev/claude-skills-vault
agentmods
npx agentmods add skills/georgekhananaev/claude-skills-vault/file-converter

Made for: Claude Code.

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 file-converter

README.md
[![agentmods](https://agentmods.dev/badge/skills/georgekhananaev/claude-skills-vault/file-converter/github.svg)](https://agentmods.dev/skills/georgekhananaev/claude-skills-vault/file-converter)
Your own site
<a href="https://agentmods.dev/skills/georgekhananaev/claude-skills-vault/file-converter"><img src="https://agentmods.dev/badge/skills/georgekhananaev/claude-skills-vault/file-converter/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 file-converter

Your own site · 80×15
<a href="https://agentmods.dev/skills/georgekhananaev/claude-skills-vault/file-converter"><img src="https://agentmods.dev/badge/skills/georgekhananaev/claude-skills-vault/file-converter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,411 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 pass 7 Sept 2026
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.00076 $0.02411
Opus 5 $0.00038 $0.01205
Sonnet 5 $0.00015 $0.00482
Haiku 4.5 $0.00008 $0.00241

Measured 13d ago against content hash 56c41ddbc4d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

file-converter 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 13d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/base64_codec.py, scripts/convert_image.py, scripts/csv_json_yaml.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/file-converter/SKILL.md · 283 lines

How it starts

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

File Converter

Convert files between formats w/ single & batch support. All scripts use consistent CLI patterns.

When to Use

  • Convert images between PNG, JPG, WEBP, BMP, TIFF, GIF, ICO, AVIF, HEIC/HEIF
  • Resize/crop images w/ fit modes (contain, cover, fill, inside, outside)
  • Convert markdown -> PDF or HTML w/ themes
  • Convert HTML -> markdown (w/ tag stripping control)
  • Transform CSV <-> JSON <-> YAML <-> TOML <-> XML
  • SVG <-> raster conversion (PNG, JPG, WEBP, BMP, TIFF)
  • Base64 encode/decode files (w/ data URI support, stdin)
  • Fix text encoding issues (detect, convert w/ error handling strategies)

Quick Routing

Task Script Deps
Image convert/resize convert_image.py Pillow, pillow-heif (opt)
Markdown -> HTML md_to_html.py markdown, pygments
Markdown -> PDF md_to_pdf.py markdown + weasyprint|pdfkit
HTML -> Markdown html_to_md.py markdownify, bs4
CSV/JSON/YAML/TOML/XML csv_json_yaml.py pyyaml, tomli-w, xmltodict, dicttoxml (per format)
SVG convert svg_convert.py cairosvg, Pillow
Base64 encode/decode base64_codec.py (none)
Text encoding text_encoding.py chardet (opt)
Cross-platform utils platform_utils.py (none) - shared by pdf/svg scripts

Install Deps

# All deps (recommended)
pip install Pillow markdown pygments weasyprint markdownify beautifulsoup4 cairosvg pyyaml chardet tomli-w xmltodict dicttoxml

# Optional
pip install pillow-heif                    # HEIC/HEIF support

# Minimal (per task)
pip install Pillow                          # Images only
pip install markdown pygments               # MD -> HTML only
pip install markdown weasyprint             # MD -> PDF only (macOS: brew install pango)
pip install markdownify beautifulsoup4      # HTML -> MD only
pip install pyyaml                          # YAML support
pip install tomli-w                         # TOML write (read: Python 3.11+ built-in)
pip install xmltodict dicttoxml             # XML support
pip install cairosvg                        # SVG -> raster (macOS: brew install cairo)
pip install chardet                         # Encoding detection

Read the full file on GitHub · 283 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. 13d ago First seen · 283 lines · 76 tokens per session scan A 56c41ddbc4d4

Subscribe to this mod's changes

file-converter is a skill published in the GitHub repository georgekhananaev/claude-skills-vault (28 stars, last pushed 1mo ago), licensed MIT. It adds 76 tokens to every session and 2,411 once invoked, about $0.0004 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

content-portability

Use when the user says 'export my site', 'backup my pages before editing', 'download my content locally', or 'migrate content to my other site'. Exports pages, posts, and custom posts to portable local packages with builder data, media, and markdown, then imports elsewhere with ID remapping.

respira-press/agent-skills-wordpress · 67 tokens

treatment-plans

Format and structurally validate local treatment-plan documentation after clinical decisions have already been supplied and verified by authorized licensed professionals. Use for source traceability, clinician-authored intervention records, goals and checkpoints, shared-decision records, reconciliation handoffs, and…

K-Dense-AI/scientific-agent-skills · 62 tokens

venue-templates

Prepare journal manuscripts, conference papers, research posters, and grant documents using venue-specific formatting guidance and bundled LaTeX scaffolds. Use when selecting an official template, checking current page or anonymity rules, adapting academic writing to a venue, or inspecting a submission PDF.

K-Dense-AI/scientific-agent-skills · 57 tokens

xlsx

Create, edit, analyze, or convert Excel spreadsheets (.xlsx, .xlsm, .xltx) where the workbook file is the primary deliverable. Use for formulas, formatting, financial models, multi-sheet workbooks, and tabular cleanup exported to Excel. Also applies to .csv/.tsv when the user wants spreadsheet output. Do NOT use for…

K-Dense-AI/scientific-agent-skills · 94 tokens

outline

Search, read, and manage Outline wiki documents. Use when: (1) searching wiki for documentation, (2) reading wiki pages or articles, (3) listing wiki collections or documents, (4) creating or updating wiki content, (5) exporting documents as markdown. Works with any Outline wiki instance (self-hosted or cloud).

sanjay3290/ai-skills · 71 tokens

google-drive

Interact with Google Drive - search files, find folders, list contents, download files, upload files, create folders, move, copy, rename, and trash files. Use when user asks to: search Google Drive, find a file/folder, list Drive contents, download or upload files, create folders, move files, or organize Drive…

sanjay3290/ai-skills · 85 tokens