prompt-to-asset: Skill for Claude Code

.claude/skills/transparent-bg/SKILL.md

transparent-bg is a skill for Claude Code from MohamedAbdallah-14/prompt-to-asset. It costs 16 tokens per session (1,109 once invoked), scanned A, original, MIT.

A process for creating image files with a real transparent background, meaning empty areas contain no visible color.

In plain words
What is it for?
Use it when making transparent logos, icons, or other graphics, using a transparency-capable image provider or removing the background afterward.
Why use it?
Image generators often produce a solid background or draw a checkerboard pattern instead of true transparency.

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/transparent-bg/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 transparent-bg

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohamedabdallah-14/prompt-to-asset/transparent-bg"><img src="https://agentmods.dev/badge/skills/mohamedabdallah-14/prompt-to-asset/transparent-bg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,109 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 pass 7 Sept 2026
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.00016 $0.01109
Opus 5 $0.00008 $0.00554
Sonnet 5 $0.00003 $0.00222
Haiku 4.5 $0.00002 $0.00111

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

Security

Grade A, and why

transparent-bg 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/transparent-bg/SKILL.md · 92 lines

How it starts

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

Transparent background

The problem (see research 13 + 04)

Almost every modern T2I VAE is RGB-only. Asking Imagen 3/4 or Gemini 2.5/3 Flash Image for a "transparent logo" triggers one of two failures:

  1. Flat background — DALL·E 3, Stable Diffusion families render a white/gray background that must be matted.
  2. Checkerboard as RGB pixels — Gemini/Imagen literally render the gray-and-white 8×8 tile pattern (because Photoshop screenshots in their training data show transparency that way). This is the "weird boxes" users report. It cannot be fixed by prompting.

Fix hierarchy (apply first that fits)

1. Route to a native-RGBA provider

Provider Mechanism
gpt-image-1 / gpt-image-1.5 API param background: "transparent" + output_format: "png" or "webp"
Ideogram 3 Turbo Dedicated /ideogram-v3/generate-transparent endpoint; set rendering_speed: "TURBO" for Turbo tier
Recraft V3 native SVG output (alpha is trivial); rasterize if raster needed
LayerDiffuse on SDXL / Flux In-diffusion-loop transparency adapter; better edges than post-matte

2. Post-process matte (for everything else)

Matting model License Strength
BiRefNet MIT Default choice 2026; best soft-edge handling
BRIA RMBG-2.0 CC-BY-NC-4.0 (hosted API for commercial) Best overall quality
U²-Net Apache-2.0 Legacy fallback
rembg wrapper around U²-Net / BiRefNet Easy CLI integration
SAM 2 Apache-2.0 For complex/multi-object scenes; 2-stage (segment → matte)

3. Difference matting (for semi-transparency: glass, hair, smoke)

  1. Generate the same subject on pure-white background.
  2. Generate again with same seed on pure-black background.
  3. alpha = (white_version - black_version + 255) / 2 in luminance.
  4. Works for true semi-transparent objects where rembg/BiRefNet produce hard-cutout artifacts.

4. Vectorize-and-drop (for flat marks)

Read the full file on GitHub · 92 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 · 92 lines · 16 tokens per session scan A 19bbf701016f

Subscribe to this mod's changes

transparent-bg is a skill published in the GitHub repository MohamedAbdallah-14/prompt-to-asset (19 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 1,109 once invoked, about $0.0001 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

skillshare-implement-feature

Implement a feature from a spec file or description using TDD workflow. Use this skill whenever the user asks to: add a new CLI command, implement a feature from a spec, build new functionality, add a flag, create a new internal package, or write Go code for skillshare. This skill enforces test-first development…

runkids/skillshare · 114 tokens

skillshare-update-docs

Update website docs to match recent code changes, cross-validating every flag against source. Use this skill whenever the user asks to: update documentation, sync docs with code, document a new flag or command, fix stale docs, or update the README. This skill covers all website/docs/ categories (commands, reference…

runkids/skillshare · 123 tokens

best-practices

Transforms vague prompts into optimized Claude Code prompts. Adds verification, specific context, constraints, and proper phasing. Invoke with /best-practices.

MoizIbnYousaf/Ai-Agent-Skills · 35 tokens

code-documentation

Writing effective code documentation - API docs, README files, inline comments, and technical guides. Use for documenting codebases, APIs, or writing developer guides.

MoizIbnYousaf/Ai-Agent-Skills · 35 tokens

curate-a-team-library

Use when building a managed team skills library for a real stack. Map work to shelves, browse before curating, write meaningful whyHere notes, and create a starter pack once the first pass is solid.

MoizIbnYousaf/Ai-Agent-Skills · 49 tokens

migrate-skills-between-libraries

Use when moving skills between library workspaces or upgrading from a personal library to a team library. Export from one workspace, import into another.

MoizIbnYousaf/Ai-Agent-Skills · 36 tokens