prompt-optimizer

prompt-optimizer is a skill for Claude Code from harshkedia177/image-gen-plugin. It costs 119 tokens per session (3,869 once invoked), scanned A, original, no licence file.

A guide for improving descriptions used to generate images with AI tools such as Gemini, Midjourney, or DALL-E.

In plain words
What is it for?
Use it to improve, fix, translate, or convert image prompts and explain why a prompt may not be working.
Why use it?
It helps when an image prompt is unclear, produces poor results, or needs to be rewritten for a different image tool.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the image-gen plugin — 4 skills, 2 commands, 2 agents shipped together

Good fit Use it to improve, fix, translate, or convert image prompts and explain…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harshkedia177/image-gen-plugin/prompt-optimizer
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 harshkedia177/image-gen-plugin --skill prompt-optimizer
Clone the repo
git clone --depth 1 https://github.com/harshkedia177/image-gen-plugin

Made for: Claude Code.

Or install image-gen, the plugin that ships this one along with the rest of its 4 skills, 2 commands, 2 agents.

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 prompt-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/harshkedia177/image-gen-plugin/prompt-optimizer.svg)](https://agentmods.dev/skills/harshkedia177/image-gen-plugin/prompt-optimizer)
Your own site
<a href="https://agentmods.dev/skills/harshkedia177/image-gen-plugin/prompt-optimizer"><img src="https://agentmods.dev/badge/skills/harshkedia177/image-gen-plugin/prompt-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,869 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 unknown 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.00119 $0.03869
Opus 5 $0.00060 $0.01935
Sonnet 5 $0.00024 $0.00774
Haiku 4.5 $0.00012 $0.00387

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

Security

Grade A, and why

prompt-optimizer 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 6d 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.

.agents/skills/prompt-optimizer/SKILL.md · 268 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 6d ago First seen · 268 lines · 119 tokens per session scan A 8c8078ba4c57

Subscribe to this mod's changes

prompt-optimizer is a skill published in the GitHub repository harshkedia177/image-gen-plugin (5 stars, last pushed 1mo ago), with no licence file. It adds 119 tokens to every session and 3,869 once invoked, about $0.0006 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

seedance-antislop

This skill should be used when a Seedance 2.0 prompt contains generic AI filler, hollow superlatives, vague cinematic language, bloated adjectives, weak verbs, or needs sharper production-specific wording.

Emily2040/seedance-2.0 · 48 tokens

seedance-examples-ja

This skill should be used when the user asks for Japanese Seedance 2.0 examples, Japanese prompt patterns, example rewrites, or safe versions of working Japanese video-generation prompts.

Emily2040/seedance-2.0 · 43 tokens

seedance-filter

This skill should be used when a Seedance 2.0 prompt is blocked, rejected, silently degraded, or likely to trigger a content filter; or when the user asks for a safer rewrite without losing the creative intent.

Emily2040/seedance-2.0 · 49 tokens

seedance-prompt-short

This skill should be used when the user asks for a compact Seedance 2.0 prompt, short Chinese prompt, prompt compression, 30-100 word output, or removal of unnecessary prompt language.

Emily2040/seedance-2.0 · 47 tokens

seedance-vocab-en

This skill should be used when an English Seedance 2.0 prompt is slop-heavy, generic, padded with empty quality words, tripping false-positive filters, or needs precise English production vocabulary for camera, lighting, motion, VFX, audio, and constraints.

Emily2040/seedance-2.0 · 61 tokens

seedance-vocab-zh

This skill should be used when the user asks for Chinese Seedance 2.0 prompt wording, Mandarin cinematic vocabulary, Chinese prompt compression, or translation of camera, lighting, action, VFX, audio, and production terms into Chinese.

Emily2040/seedance-2.0 · 55 tokens