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.
curl -O https://raw.githubusercontent.com/MohamedAbdallah-14/prompt-to-asset/main/.claude/skills/transparent-bg/SKILL.mdgit clone --depth 1 https://github.com/MohamedAbdallah-14/prompt-to-assetWrote 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.
[](https://agentmods.dev/skills/mohamedabdallah-14/prompt-to-asset/transparent-bg)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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:
- Flat background — DALL·E 3, Stable Diffusion families render a white/gray background that must be matted.
- 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)
- Generate the same subject on pure-white background.
- Generate again with same seed on pure-black background.
alpha = (white_version - black_version + 255) / 2in luminance.- Works for true semi-transparent objects where
rembg/BiRefNet produce hard-cutout artifacts.
4. Vectorize-and-drop (for flat marks)
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.
- 12d ago First seen · 92 lines · 16 tokens per session scan A 19bbf701016f
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.
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…
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…
best-practices
Transforms vague prompts into optimized Claude Code prompts. Adds verification, specific context, constraints, and proper phasing. Invoke with /best-practices.
code-documentation
Writing effective code documentation - API docs, README files, inline comments, and technical guides. Use for documenting codebases, APIs, or writing developer guides.
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.
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.