prep-images-for-embed

prep-images-for-embed is a skill for Claude Code, Codex from lossless-group/lossless-agent-skills. It costs 189 tokens per session (3,766 once invoked), scanned B, original, MIT.

An image-preparation workflow for turning screenshots into hosted images that can be embedded in changelogs, web pages, specifications, or other Markdown or HTML.

In plain words
What is it for?
Use it when you need to publish screenshots through ImageKit and receive Markdown or HTML with search-friendly alternative text.
Why use it?
It handles repetitive image work such as useful filenames, resizing, metadata removal, hosting, and alternative text.

Skill for Claude CodeCodex

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

Good fit Use it when you need to publish screenshots through ImageKit and receive Markdown or HTML with search-friendly alternative text.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lossless-group/lossless-agent-skills/prep-images-for-embed
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 lossless-group/lossless-agent-skills --skill prep-images-for-embed
Clone the repo
git clone --depth 1 https://github.com/lossless-group/lossless-agent-skills

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 prep-images-for-embed

README.md
[![agentmods](https://agentmods.dev/badge/skills/lossless-group/lossless-agent-skills/prep-images-for-embed/github.svg)](https://agentmods.dev/skills/lossless-group/lossless-agent-skills/prep-images-for-embed)
Your own site
<a href="https://agentmods.dev/skills/lossless-group/lossless-agent-skills/prep-images-for-embed"><img src="https://agentmods.dev/badge/skills/lossless-group/lossless-agent-skills/prep-images-for-embed/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 prep-images-for-embed

Your own site · 80×15
<a href="https://agentmods.dev/skills/lossless-group/lossless-agent-skills/prep-images-for-embed"><img src="https://agentmods.dev/badge/skills/lossless-group/lossless-agent-skills/prep-images-for-embed.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 189 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,766 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00189 $0.03766
Opus 5 $0.00095 $0.01883
Sonnet 5 $0.00038 $0.00753
Haiku 4.5 $0.00019 $0.00377

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

Security

Grade B, and why

prep-images-for-embed scanned grade B 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/prep-images.mjs), 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

# ~/.secrets (chmod 600) — same pattern as generate-consistent-og-images
prep-images-for-embed/SKILL.md · 327 lines

How it starts

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

Prep Images for Embed

The one thing to remember: upload JPEG, not WebP. ImageKit converts to WebP for browsers that accept it and falls back to JPEG for those that don't. Upload WebP and the fallback becomes a PNG up to 3× larger. Measured, not assumed — see Format.

When to use this skill

  • The user drops screenshots and wants them in a changelog entry, splash page, spec, or any markdown surface
  • "Add these screenshots", "put these in the changelog", "upload these"
  • Local image references need converting to CDN URLs
  • An image is destined to become an og:image
  • Any markdown surface should become image-heavy without the user manually uploading and pasting links

Why this exists

Screenshots arrive as Screenshot 2026-08-14 at 9.11.31 PM.png — 400KB of PNG with a filename that is useless to a search engine and a reader. Getting one into a changelog properly means renaming it, resizing it, stripping metadata, hosting it somewhere with correct headers, and writing alt text. That's six steps of tedium per image, which is why posts end up with no images at all.

This skill makes it one call.

Prior art worth knowing: content-farm/plugin-modules/image-gin already does ImageKit upload — but from inside Obsidian, via a modal, on a note you have open. This skill is the agent-callable path. The auth pattern here (Basic base64(privateKey + ':')) is lifted from image-gin's imagekitService.ts deliberately, so the two don't diverge.

Prerequisites

# ~/.secrets (chmod 600) — same pattern as generate-consistent-og-images
IMAGEKIT_PRIVATE_KEY="private_..."
IMAGEKIT_PUBLIC_KEY="public_..."
IMAGEKIT_URL_ENDPOINT="https://ik.imagekit.io/<id>"

Tooling: sips (macOS built-in) does resize and JPEG. exiftool strips metadata. cwebp is only needed for the discouraged --format webp path.

The call

node scripts/prep-images.mjs \
  --slug plane-first-deploy \
  --repo self-host-stack \
  --src "~/Desktop/Screenshot 2026-08-14 at 9.11.31 PM.png" \
  --name "Railway__Usage-By-Project" \
  --alt "Railway usage dashboard showing \$46.59 current usage broken out across six client projects" \
  --emit html

Read the full file on GitHub · 327 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 327 lines · 189 tokens per session scan B 7a02237d0c40

Subscribe to this mod's changes

prep-images-for-embed is a skill published in the GitHub repository lossless-group/lossless-agent-skills (4 stars, last pushed 18d ago), licensed MIT. It adds 189 tokens to every session and 3,766 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.