prompt-to-asset: Skill for Claude Code

.claude/skills/asset-validation-debug/SKILL.md

asset-validation-debug is a skill for Claude Code from MohamedAbdallah-14/prompt-to-asset. It costs 77 tokens per session (2,162 once invoked), scanned A, original, MIT.

A troubleshooting skill for failures in generated visual assets. It matches validation errors—such as missing transparency, unsafe positioning, incorrect colors, or unreadable text—to repair steps.

In plain words
What is it for?
Use it to diagnose and repair asset-generation and validation problems, including transparency, dimensions, safe zones, color drift, contrast, and garbled wordmarks.
Why use it?
It prevents repeated attempts that produce the same bad result. A retry limit guides the agent toward a different repair method when a generation attempt fails.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is MohamedAbdallah-14/prompt-to-asset's own configuration. It tells Claude Code how to work on prompt-to-asset itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything prompt-to-asset configures →

Part of the prompt-to-asset plugin — 13 skills, 1 MCP server shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to MohamedAbdallah-14/prompt-to-asset. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MohamedAbdallah-14/prompt-to-asset/main/.claude/skills/asset-validation-debug/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/MohamedAbdallah-14/prompt-to-asset

Made for: Claude Code.

Or install prompt-to-asset, the plugin that ships this one along with the rest of its 13 skills, 1 MCP server.

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 asset-validation-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohamedabdallah-14/prompt-to-asset/asset-validation-debug/github.svg)](https://agentmods.dev/skills/mohamedabdallah-14/prompt-to-asset/asset-validation-debug)
Your own site
<a href="https://agentmods.dev/skills/mohamedabdallah-14/prompt-to-asset/asset-validation-debug"><img src="https://agentmods.dev/badge/skills/mohamedabdallah-14/prompt-to-asset/asset-validation-debug/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 asset-validation-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohamedabdallah-14/prompt-to-asset/asset-validation-debug"><img src="https://agentmods.dev/badge/skills/mohamedabdallah-14/prompt-to-asset/asset-validation-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,162 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
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.00077 $0.02162
Opus 5 $0.00039 $0.01081
Sonnet 5 $0.00015 $0.00432
Haiku 4.5 $0.00008 $0.00216

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

Security

Grade A, and why

asset-validation-debug 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.

.claude/skills/asset-validation-debug/SKILL.md · 149 lines

How it starts

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

Asset validation + repair

Triggered when asset_validate(), asset_generate_*, or asset_save_inline_svg returns warnings or errors. Do NOT loop on the same failure; follow the tree and respect the retry budget.

Failure code → repair table

Code Origin Repair primitive Retry budget
T0_CHECKERBOARD Imagen/Gemini rendering fake transparency Route changegpt-image-1 (background:"transparent"), Ideogram v3 (style:"transparent"), Recraft V3 2
T0_ALPHA_MISSING RGB-only output on transparency-required asset Matte via asset_remove_background (BiRefNet preferred, RMBG fallback) 1
T0_DIMENSIONS wrong width/height API params Fix params, regenerate 1
T0_SAFE_ZONE subject bleeds outside platform center Regenerate with explicit "centered with 20% padding on all sides" 1
T0_FILE_SIZE (SVG) path count blows budget asset_save_inline_svg → SVGO → K-means color reduction → vtracer 1
T0_DCT_ENTROPY solid-color / NSFW-filter hit Regenerate same params once; if repeats, change prompt 1
T1_PALETTE_DRIFT model ignored hex constraint Recraft with controls.colors or recolor post-process (K-means remap in LAB) 1
T1_TEXT_MISSPELL diffusion garbled wordmark Drop text, composite SVG type (retry Ideogram 3 if text-only asset) 0 in-diffusion / 1 on Ideogram
T1_LOW_CONTRAST pale palette at 16×16 or over background Regenerate with explicit contrast instruction; else post-boost luminance 2
T1_VQASCORE prompt-image alignment weak Defect area <15% → inpaint; else full regenerate 2
T2_BRAND_DRIFT style diverges from brand refs Seed sweep (N=4, rank by CLIPScore + HPSv2); augment brand bundle 1
T2_COMPOSITION off-center, cluttered, poor whitespace img2img at low denoise (0.35) — preserves layout, fixes style 1

When a budget exhausts: stop retrying, report to user with diagnostic payload. Do not loop.

Read the full file on GitHub · 149 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 · 149 lines · 77 tokens per session scan A 87e661e0978d

Subscribe to this mod's changes

asset-validation-debug is a skill published in the GitHub repository MohamedAbdallah-14/prompt-to-asset (19 stars, last pushed yesterday), licensed MIT. It adds 77 tokens to every session and 2,162 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

watch

Watch a rendered video (whole file or specific ranges) at a chosen fidelity and emit a timestamp-keyed observation report. Observation only — no edits, no verdicts.

gooseworks-ai/goose-skills · 36 tokens

hyperframes-best-practices

Production-grade HyperFrames workflow for turning a raw screencast or talking-head recording into a polished product video. Covers the smart-cut pipeline (transcript + silence + scene detection with word-boundary buffers), surgical audio scrubbing (con​cat-filter rendering, adeclick, targeted transient mute), the…

anton-abyzov/vskill · 160 tokens

parallel-investigation

Coordinates parallel investigation threads to simultaneously explore multiple hypotheses or root causes across different system areas. Use when debugging production incidents, slow API performance, multi-system integration failures, or complex bugs where the root cause is unclear and multiple plausible theories exist…

rohitg00/skillkit · 97 tokens

hypothesis-testing

Applies the scientific method to debugging by helping users form specific, testable hypotheses, design targeted experiments, and systematically confirm or reject theories to find root causes. Use when a user says their code isn't working, they're getting an error, something broke, they want to troubleshoot a bug, or…

rohitg00/skillkit · 103 tokens

trace-and-isolate

Applies systematic tracing and isolation techniques to pinpoint exactly where a bug originates in code. Use when a bug is hard to locate, code is not working as expected, an error or crash appears with unclear cause, a regression was introduced between recent commits, or you need to narrow down which component…

rohitg00/skillkit · 120 tokens

root-cause-analysis

Performs systematic root cause analysis to identify the true source of bugs, errors, and unexpected behavior through structured investigation phases — not just treating symptoms. Use when a user reports a bug, crash, error, or broken behavior and needs to debug, troubleshoot, or investigate why something is not…

rohitg00/skillkit · 110 tokens