media-prompting

media-prompting is a skill for Claude Code, Codex from mudler/LocalAI. It costs 38 tokens per session (1,224 once invoked), scanned A, original, MIT.

A guide for writing prompts for tools that generate images, video, sound, or speech. It explains how to choose a model, read its instructions, inspect the result, and make a focused revision.

In plain words
What is it for?
Use it before generating media or when an image, clip, song, or voice result needs correction.
Why use it?
It reduces failed generation attempts caused by unsuitable models, untested prompt wording, or changes made without checking the output.

Skill for Claude CodeCodex

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

Good fit Use it before generating media or when an image, clip, song, or voice result needs correction.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mudler/localai/media-prompting
About the project

LocalAI is an inference server that runs language, vision, voice, image, and video models through compatible APIs on local hardware. It is used to operate models privately across different hardware, including CPU-only systems, and supports applications, agents, and multi-user services. The catalogue contains instructions for using LocalAI.

mudler/LocalAI · 50,650 stars · on GitHub · localai.io

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 mudler/LocalAI --skill media-prompting
Clone the repo
git clone --depth 1 https://github.com/mudler/LocalAI

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 media-prompting

README.md
[![agentmods](https://agentmods.dev/badge/skills/mudler/localai/media-prompting/github.svg)](https://agentmods.dev/skills/mudler/localai/media-prompting)
Your own site
<a href="https://agentmods.dev/skills/mudler/localai/media-prompting"><img src="https://agentmods.dev/badge/skills/mudler/localai/media-prompting/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 media-prompting

Your own site · 80×15
<a href="https://agentmods.dev/skills/mudler/localai/media-prompting"><img src="https://agentmods.dev/badge/skills/mudler/localai/media-prompting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,224 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.00038 $0.01224
Opus 5.5 $0.00015 $0.00490
Sonnet 5.5 $0.00008 $0.00245
Haiku 4.5 $0.00004 $0.00122

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

Security

Grade A, and why

media-prompting 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 21d 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.

core/services/studio/builtinskills/tree/media-prompting/SKILL.md · 66 lines

How it starts

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

Prompting the media models

Each model family reads prompts a little differently. Read the card of the model you picked before you write the prompt. The cards are in /workspace/shared-builtin-skills/media-prompting/cards/: read one with read_file.

Loop

  1. list_models with the capability (image, video, sound_generation, tts). Pick by capability and name. Never guess a name.
  2. Find the family in the table below and read its card. No card: use the anatomy below and say that the model is untested.
  3. Generate once. Do not generate a batch before you have looked at the first result.
  4. Inspect. Image: describe_image, and look at it. Video: ffprobe and one frame grab (load_skill assemble-media). Audio: ffprobe for the length; you cannot hear it, so say that you did not listen.
  5. Change one thing, then generate again. Keep the seed when you compare two prompts or two settings; change it only to get a different take.
  6. Stop after a few tries. Say what worked and what did not.

Cards

Model id contains Card
qwen-image cards/qwen-image.md
minimax-h3 cards/minimax-h3.md
yue2 cards/yue2.md
qwen3-tts cards/qwen3-tts.md

Prompt anatomy

Image: subject and what it does, style or medium, composition and camera, light, then text to render in double quotes. Say what you want, not what to avoid. One scene per prompt.

Video: shot type, subject and its motion, camera move, setting and light, length. For a clip that continues another, set start_image to the last frame of the first clip (grab it with ffmpeg) and describe only the new action. end_image fixes the last frame. If the model makes sound, say what is heard and put spoken words in quotes.

Music: caption is the style: genre, mood, instruments, voice, tempo, comma separated. lyrics is the text, with a structure tag on its own line before each section ([verse], [chorus], [bridge], [outro]). instrumental for no voice. Say the language when it is not English. Which fields a model reads depends on the model: see its card.

Read the full file on GitHub · 66 lines

Files

What ships with it

4 files 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. 21d ago First seen · 66 lines · 38 tokens per session scan A d3dc6cbb44d8

Subscribe to this mod's changes

media-prompting is a skill published in the GitHub repository mudler/LocalAI (50,650 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 1,224 once invoked, about $0.0002 per session on Opus 5.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-11-11.

Related

media-prompting compared with skills from other repositories

media-prompting next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
media-promptingmudler/LocalAISkill51ktodayMITA38Claude Code, Codex
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
sglang-diffusion-performancesgl-project/sglangSkill39ktodayApache-2.0A29Claude Code, Codex
sglang-diffusion-cache-ditsgl-project/sglangSkill39ktodayApache-2.0A161Claude Code, Codex
sglang-diffusion-modelopt-quantsgl-project/sglangSkill39ktodayApache-2.0A49Claude Code, Codex
skill-creatorunslothai/unslothSkill81ktodayApache-2.0A26Claude Code
image-promptingunslothai/unslothSkill81ktodayApache-2.0A23Claude Code