image-post-processor

image-post-processor is a skill for Claude Code from XuanRanL/loamwright-SEO-Skill. It costs 51 tokens per session (835 once invoked), scanned A, original, Apache-2.0.

An image preparation workflow that removes EXIF metadata, converts PNG files to WebP, creates responsive image sizes, and produces an ImageObject schema fragment.

In plain words
What is it for?
It prepares article images for website delivery, responsive layouts, SEO-friendly filenames, and structured data.
Why use it?
It turns generated images into web-ready files and removes embedded image data before publishing.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the xuanran-seo-blog-writer plugin — 68 skills, 34 agents, 4 hooks shipped together

Good fit It prepares article images for website delivery, responsive layouts, SEO-friendly filenames, and structured data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xuanranl/loamwright-seo-skill/image-post-processor
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 XuanRanL/loamwright-SEO-Skill --skill image-post-processor
Clone the repo
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill

Made for: Claude Code.

Or install xuanran-seo-blog-writer, the plugin that ships this one along with the rest of its 68 skills, 34 agents, 4 hooks.

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 image-post-processor

README.md
[![agentmods](https://agentmods.dev/badge/skills/xuanranl/loamwright-seo-skill/image-post-processor/github.svg)](https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/image-post-processor)
Your own site
<a href="https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/image-post-processor"><img src="https://agentmods.dev/badge/skills/xuanranl/loamwright-seo-skill/image-post-processor/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 image-post-processor

Your own site · 80×15
<a href="https://agentmods.dev/skills/xuanranl/loamwright-seo-skill/image-post-processor"><img src="https://agentmods.dev/badge/skills/xuanranl/loamwright-seo-skill/image-post-processor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 835 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00051 $0.00835
Opus 5.5 $0.00020 $0.00334
Sonnet 5.5 $0.00010 $0.00167
Haiku 4.5 $0.00005 $0.00084

Measured 2mo ago against content hash fdc6b1e81c32, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

image-post-processor scanned grade A with 1 finding 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 2mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

subprocess.run(["python", "-m", "scripts.image.exif_stripper", str(png_file)])
subskills/image/image-post-processor/SKILL.md · 89 lines

How it starts

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

Image Post Processor

Transforms raw PNG outputs from the image pipeline (any provider — openclawroot relay or official OpenAI, both return gpt-image-style PNGs) into production-ready WebP variants.

Inputs

  • projects/{slug}/assets/images/{article-slug}/{custom_id}.png × 4
  • workspace/{task_id}/image_prompts.json (for alt_text_seed, filename_seed)

4-step pipeline (per image)

import subprocess
from pathlib import Path

images_dir = Path("projects/{slug}/assets/images/{article-slug}/")
for png_file in images_dir.glob("*.png"):
    slot_id = png_file.stem
    
    # Step 1: Strip EXIF
    subprocess.run(["python", "-m", "scripts.image.exif_stripper", str(png_file)])
    
    # Step 2: WebP convert
    webp_file = png_file.with_suffix(".webp")
    subprocess.run(["python", "-m", "scripts.image.webp_converter",
                    str(png_file), "-o", str(webp_file), "-q", "85"])
    
    # Step 3: Srcset 3 sizes
    is_cover = slot_id == "cover"
    args = ["python", "-m", "scripts.image.srcset_generator",
            str(webp_file), "-o", str(images_dir)]
    if is_cover:
        args.append("--cover")  # uses 480/1024/2048
    subprocess.run(args)
    
    # (Removed 2026-06-10: the old "Step 4: compress to <200KB" --target-kb loop.
    # q85 is the single quality knob now — a hard KB cap on 2K/4K sources just
    # re-compressed them to ~q75 and undid the quality upgrade.)

    # Step 4: SEO filename rename
    article_slug = ws.parent.name  # or from state
    purpose = lookup_purpose_for_slot(slot_id)  # from image_prompts.json
    new_name = subprocess.run(["python", "-m", "scripts.image.image_seo_filename",
                                "--slug", article_slug,
                                "--purpose", purpose,
                                "--ext", ".webp"],
                               capture_output=True, text=True).stdout.strip()
    webp_file.rename(images_dir / new_name)

Output

projects/{slug}/assets/images/{article-slug}/
├── best-fishing-rods-2026-cover.webp        (3840w)
├── best-fishing-rods-2026-cover-480w.webp
├── best-fishing-rods-2026-cover-1024w.webp
├── best-fishing-rods-2026-cover-2048w.webp
├── best-fishing-rods-2026-section-1.webp    (1024w)
├── ... (similar for sections 2, 3)
└── image_meta.json                           (per-image metadata)

Read the full file on GitHub · 89 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. 2mo ago First seen · 89 lines · 0 tokens per session scan A fdc6b1e81c32

Subscribe to this mod's changes

image-post-processor is a skill published in the GitHub repository XuanRanL/loamwright-SEO-Skill (52 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 835 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

image-post-processor compared with skills from other repositories

image-post-processor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-post-processorXuanRanL/loamwright-SEO-SkillSkill522mo agoApache-2.0A51Claude Code
12-brief-landing-pageminhnv0807/ai-business-skillsSkill6433d agoMITA145Claude Code
12-landing-page-brief-globalminhnv0807/ai-business-skillsSkill6433d agoMITA0Claude Code
49-html-email-template-globalminhnv0807/ai-business-skillsSkill6433d agoMITA167Claude Code
49-html-email-templateminhnv0807/ai-business-skillsSkill6433d agoMITA167Claude Code
image-seo-auditindranilbanerjee/digital-marketing-proSkill9329d agoMITA34Claude Code
mcp-modernizeunbounce/agent-pluginsSkill25d agoMITA140Claude Code