agentleFS
Xiangyu-CASXiangyu-CAS/codex-canvas/skills/canvas-remove-bg/SKILL.md

canvas-remove-bg

Skill168 starsChanged 49 days agoMITView on GitHub

Remove the background from a selected Codex-Canvas image and collect a transparent PNG result back onto the canvas.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 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.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when the user invokes Remove BG from Codex-Canvas or asks to isolate the foreground subject of a selected canvas image.

    line 8
  2. Distinctive:

    Treat the selected canvas image as the edit target.

    line 12
  3. Distinctive:

    Remove the background only.

    line 14
  4. Distinctive:

    Do not preserve or recreate readable text, captions, labels, logos, watermarks, UI text, or decorative typography.

    line 15
  5. Very specific:

    Default to native transparent PNG generation.

    line 16
  6. Distinctive:

    If native transparency is unavailable, report the limitation.

    line 19
  7. Distinctive:

    Do not ask follow-up questions from a background Remove BG job.

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Treat the selected canvas image as the edit target.
  2. Preserve only the primary foreground subject, proportions, and visual quality.
  3. Remove the background only; do not redesign, restyle, crop, or replace the subject.
  4. 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.
  5. Default to native transparent PNG generation. Inspect the actual built-in imagegen schema: if it exposes transparent_background (boolean), set transparent_background: true. Never guess a transparent or background tool argument.
  6. Preserve all subject colors (including magenta), fine edges, and partial opacity. Do not draw a checkerboard, white background, or colored matte.
  7. Save/copy the generated PNG under the job output directory. Codex-Canvas validates decoded alpha pixels, rejects opaque or empty results, and preserves native RGBA PNGs byte-for-byte.
  8. If native transparency is unavailable, report the limitation. Do not switch to a paid API or silently key an opaque output.
  9. Only when the job explicitly selects compatibility mode (CODEX_CANVAS_TRANSPARENCY_MODE=chroma-key on the canvas server), generate on a uniform #ff00ff background with generous padding and no shadows or gradients. If magenta subject colors or translucent material conflict with this key, stop instead of recoloring the subject. Codex-Canvas verifies the border before conversion; valid native alpha always bypasses keying even in this mode.
  10. The verified transparent result replaces the placeholder 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.