prompt-iteration-and-diagnostics

prompt-iteration-and-diagnostics is a skill for Claude Code, Codex from 0xhughs/director-skills. It costs 34 tokens per session (731 once invoked), scanned A, original, MIT.

A method for finding why an AI-generated image or video missed its target and revising the prompt in controlled steps.

In plain words
What is it for?
It helps analyze issues such as unwanted visual changes, poor anatomy, incorrect movement, inconsistent characters, weak realism, and errors in text or logos.
Why use it?
It separates prompt problems from model or setting limitations, making failed results easier to understand and improve.

Skill for Claude CodeCodex

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

Good fit It helps analyze issues such as unwanted visual changes, poor anatomy, incorrect movement, inconsistent characters, weak realism, and errors in text or logos.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xhughs/director-skills/prompt-iteration-and-diagnostics
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 0xhughs/director-skills --skill prompt-iteration-and-diagnostics
Clone the repo
git clone --depth 1 https://github.com/0xhughs/director-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 prompt-iteration-and-diagnostics

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xhughs/director-skills/prompt-iteration-and-diagnostics/github.svg)](https://agentmods.dev/skills/0xhughs/director-skills/prompt-iteration-and-diagnostics)
Your own site
<a href="https://agentmods.dev/skills/0xhughs/director-skills/prompt-iteration-and-diagnostics"><img src="https://agentmods.dev/badge/skills/0xhughs/director-skills/prompt-iteration-and-diagnostics/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 prompt-iteration-and-diagnostics

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xhughs/director-skills/prompt-iteration-and-diagnostics"><img src="https://agentmods.dev/badge/skills/0xhughs/director-skills/prompt-iteration-and-diagnostics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 731 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.00034 $0.00731
Opus 5 $0.00017 $0.00365
Sonnet 5 $0.00007 $0.00146
Haiku 4.5 $0.00003 $0.00073

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

Security

Grade A, and why

prompt-iteration-and-diagnostics 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 12d 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.

skills/prompt-iteration-and-diagnostics/SKILL.md · 83 lines

How it starts

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

prompt-iteration-and-diagnostics

When to use

  • The user shows or describes a failed output and asks how to fix it.
  • The user wants prompt diagnostics, iteration, A/B variants, failure analysis, or a revision report.
  • The output has drift, bad anatomy, wrong motion, weak realism, camera chaos, text/logo errors, prompt collapse, or model transfer failure.
  • The prose, dialogue, or film package has generic AI voice, weak story logic, rights/provenance gaps, or release-quality concerns.

When not to use

  • The user has no output or failure description and only needs first-draft prompting.
  • The issue is a tool outage or account/billing problem.
  • The user asks for unsafe bypass instructions.

Required inputs

  • Original prompt
  • Observed output or failure description
  • Target model/tool
  • Desired result

Optional inputs

  • Reference images
  • Settings/parameters
  • Seed/version
  • Previous attempts
  • Continuity bible

Workflow

  1. Restate the intended result and the actual failure.
  2. Classify failure: prompt ambiguity, contradiction, overload, model limitation, continuity drift, temporal overload, reference conflict, safety/policy rejection, or parameter mismatch.
  3. Identify the smallest change likely to improve the result.
  4. Apply the one-variable rule for iterative tests unless the prompt is fundamentally broken.
  5. Rewrite using the relevant skill: image, video, continuity, style, or model-adaptation.
  6. Produce a revision report with diagnosis, changed fields, unchanged anchors, expected improvement, and next test.
  7. When the failure is a model limitation, redesign the shot or route to a better model instead of forcing the same prompt.

Decision logic

  • If output is 80 percent correct, make minimal edits.
  • If identity drift appears, strengthen references and bible anchors.
  • If motion fails, reduce actions and camera moves.
  • If text/logos fail, choose a text-capable model or simplify typography.
  • If a prompt is rejected, remove unsafe/IP-sensitive content and do not provide bypass tactics.

Read the full file on GitHub · 83 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. 12d ago First seen · 83 lines · 34 tokens per session scan A bbbb34552d72

Subscribe to this mod's changes

prompt-iteration-and-diagnostics is a skill published in the GitHub repository 0xhughs/director-skills (8 stars, last pushed 3mo ago), licensed MIT. It adds 34 tokens to every session and 731 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

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

guidance

Control LLM output with regex and grammars, guarantee valid JSON/XML/code generation, enforce structured formats, and build multi-step workflows with Guidance - Microsoft Research's constrained generation framework.

davila7/claude-code-templates · 38 tokens

outlines

Guarantee valid JSON/XML/code structure during generation, use Pydantic models for type-safe outputs, support local models (Transformers, vLLM), and maximize inference speed with Outlines - dottxt.ai's structured generation library.

davila7/claude-code-templates · 50 tokens

prompt-master

Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other…

nidhinjs/prompt-master · 78 tokens

create-simple-prompt

This skill should be used when the user asks to "create a new prompt sample", "add a new prompt sample", "scaffold a new prompt sample", "create a prompt contribution", "add a prompt", or needs to create a new prompt sample with proper folder structure, README, and sample.json metadata. Do NOT use this skill for agent…

pnp/copilot-prompts · 80 tokens

higgsfield-seedance

Rewrites scene descriptions using professional cinematography language, structures prompts with a six-slot formula (camera + subject + action + setting + style + lighting), and diagnoses content filter rejections via a preflight linter. Use whenever the user asks for a Seedance 2.0 / Seedance Pro prompt, describes a…

OSideMedia/higgsfield-ai-prompt-skill · 100 tokens