canvas-remove-bg
Skill133 starsChanged 5 months agoMITView on GitHub
Remove the background from a selected Codex-Canvas image and collect a transparent PNG result back onto the canvas.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex-canvasSkill
- canvas-edit-elementsSkill
- canvas-edit-textSkill
- canvas-expandSkill
- canvas-quick-editSkill
- canvasSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when the user invokes Remove BG from Codex-Canvas or asks to isolate the foreground subject of a selected canvas image.
- Distinctive: line 12
Treat the selected canvas image as the edit target.
- Distinctive: line 14
Remove the background only.
- Distinctive: line 15
Do not preserve or recreate readable text, captions, labels, logos, watermarks, UI text, or decorative typography.
- Very specific: line 16
Use imagegen once to place the foreground subject on a perfectly flat solid #ff00ff chroma-key background.
- Very specific: line 18
Do not use #ff00ff anywhere in the subject.
- Distinctive: line 19
Keep crisp foreground edges, no cast shadow, no contact shadow, no reflection, and enough padding for reliable alpha conversion.
- Distinctive: line 23
Do not ask follow-up questions from a background Remove BG job.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex-Canvas Remove BG
Use this skill when the user invokes Remove BG from Codex-Canvas or asks to isolate the foreground subject of a selected canvas image.
Behavior
- Treat the selected canvas image as the edit target.
- Preserve only the primary foreground subject, proportions, and visual quality.
- Remove the background only; do not redesign, restyle, crop, or replace the subject.
- Do not preserve or recreate readable text, captions, labels, logos, watermarks, UI text, or decorative typography. The cutout should contain the subject only, without text.
- Use imagegen once to place the foreground subject on a perfectly flat solid
#ff00ffchroma-key background. - The chroma-key background must be one uniform color with no shadows, gradients, texture, reflections, floor plane, or lighting variation.
- Do not use
#ff00ffanywhere in the subject. - Keep crisp foreground edges, no cast shadow, no contact shadow, no reflection, and enough padding for reliable alpha conversion.
- Save the generated chroma-key PNG under the Codex-Canvas job output directory.
- Codex-Canvas will remove the chroma key locally using its bundled chroma-key helper with soft matte and despill, verify the RGBA alpha PNG, collect it, and place it in a row to the right of the source image.
Do not ask follow-up questions from a background Remove BG job. Make the most reasonable subject isolation from the selected image.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

