batch-file-converter

batch-file-converter is a skill for Claude Code, Codex from malue-ai/dazee-small. It costs 36 tokens per session (938 once invoked), scanned A, original, MIT.

A batch file-conversion tool for changing many images or documents from one format to another. It uses Python and built-in system tools, and supports formats such as HEIC, PNG, JPG, WebP, Markdown, and HTML.

In plain words
What is it for?
Converting HEIC photos to JPG, changing PNG files to WebP, processing groups of images, and turning Markdown into HTML.
Why use it?
It avoids converting files one at a time and can also handle common image compression and resizing tasks.

Skill for Claude CodeCodex

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

Good fit Converting HEIC photos to JPG, changing PNG files to WebP, processing groups of images, and turning Markdown into HTML.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/malue-ai/dazee-small/batch-file-converter
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 malue-ai/dazee-small --skill batch-file-converter
Clone the repo
git clone --depth 1 https://github.com/malue-ai/dazee-small

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/batch-file-converter"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/batch-file-converter.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 938 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.
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.00938
Opus 5 $0.00018 $0.00469
Sonnet 5 $0.00007 $0.00188
Haiku 4.5 $0.00004 $0.00094

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

Security

Grade A, and why

batch-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 9d 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.

instances/xiaodazi/skills/batch-file-converter/SKILL.md · 143 lines

How it starts

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

批量文件转换

帮助用户批量转换文件格式:图片格式互转、文档格式转换。

使用场景

  • 用户说「把这些 HEIC 照片转成 JPG」「PNG 转 WebP」
  • 用户说「把这些图片批量压缩」「调整图片尺寸」
  • 用户说「Markdown 转 HTML」「批量转换格式」

依赖安装

首次使用时自动安装:

pip install Pillow

执行方式

通过 Python Pillow 处理图片,bash 处理其他格式。

图片格式转换

from PIL import Image
import os

input_dir = "/path/to/input"
output_dir = "/path/to/output"
target_format = "JPEG"  # JPEG, PNG, WEBP, BMP, TIFF

os.makedirs(output_dir, exist_ok=True)

count = 0
for filename in os.listdir(input_dir):
    if filename.lower().endswith(('.png', '.jpg', '.jpeg', '.heic', '.webp', '.bmp')):
        img = Image.open(os.path.join(input_dir, filename))
        # RGBA → RGB for JPEG
        if img.mode == 'RGBA' and target_format == 'JPEG':
            img = img.convert('RGB')
        
        new_name = os.path.splitext(filename)[0] + ".jpg"
        img.save(os.path.join(output_dir, new_name), target_format, quality=90)
        count += 1

print(f"转换完成: {count} 个文件")

HEIC 转 JPG(macOS)

# macOS 原生支持 HEIC
for f in /path/to/*.HEIC; do
  sips -s format jpeg "$f" --out "/path/to/output/$(basename "${f%.*}").jpg"
done

批量压缩图片

from PIL import Image
import os

input_dir = "/path/to/input"
output_dir = "/path/to/compressed"
max_size = (1920, 1080)
quality = 80

os.makedirs(output_dir, exist_ok=True)

for filename in os.listdir(input_dir):
    if filename.lower().endswith(('.png', '.jpg', '.jpeg')):
        img = Image.open(os.path.join(input_dir, filename))
        img.thumbnail(max_size, Image.Resampling.LANCZOS)
        
        if img.mode == 'RGBA':
            img = img.convert('RGB')
        
        img.save(os.path.join(output_dir, filename), quality=quality)

print("压缩完成")

批量调整图片尺寸

from PIL import Image
import os

target_width = 800
input_dir = "/path/to/input"
output_dir = "/path/to/resized"

os.makedirs(output_dir, exist_ok=True)

for filename in os.listdir(input_dir):
    if filename.lower().endswith(('.png', '.jpg', '.jpeg', '.webp')):
        img = Image.open(os.path.join(input_dir, filename))
        ratio = target_width / img.width
        new_height = int(img.height * ratio)
        img = img.resize((target_width, new_height), Image.Resampling.LANCZOS)
        img.save(os.path.join(output_dir, filename))

Read the full file on GitHub · 143 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. 9d ago First seen · 143 lines · 36 tokens per session scan A daf3cb9dd516

Subscribe to this mod's changes

batch-file-converter is a skill published in the GitHub repository malue-ai/dazee-small (36 stars, last pushed 5mo ago), licensed MIT. It adds 36 tokens to every session and 938 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-31.

Related

Other skills, from other repositories