Lucida Remove Background logo

Lucida Remove Background

Community
Yuki001
lucida-remove-background

Remove image backgrounds locally with Lucida's bgr CLI and save transparent RGBA PNGs while preserving soft alpha in glass, smoke, glow and VFX, camouflage, text and logos, line art, illustrations, and print designs. Use when a user asks to remove, erase, isolate, cut out, or make the background of an image transparent; prefer Lucida for translucent or effect-heavy artwork and BiRefNet-HR for high-resolution solid physical objects or product photos.

Overview

PublisherYuki001
Repositorygame-dev-skills
Skill namelucida-remove-background
Stars
104
Forks
13
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Yuki001 on GitHub. Read the source before you install it.

Installation

Install the Lucida Remove Background AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Yuki001/game-dev-skills/tree/main/skills/lucida-remove-background
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Yuki001/game-dev-skills.git /tmp/game-dev-skills
mkdir -p .claude/skills
cp -r /tmp/game-dev-skills/skills/lucida-remove-background .claude/skills/lucida-remove-background
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Lucida Remove Background in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Lucida Remove Background on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Lucida Remove Background is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Lucida Background Removal

Use the bgr executable from egeorcun/lucida. Preserve the source image and create a separate transparent PNG.

Workflow

  1. Resolve the input image and confirm it exists.

  2. Use the user's output path when provided. Otherwise, write <input-stem>-transparent.png beside the input. Do not overwrite the source unless the user explicitly requests it.

  3. Check whether bgr is available:

    text
    bgr --help

    Note: If the current environment is sandboxed (for example: Codex sandbox), run all bgr commands in the user's normal terminal. Otherwise the bgr --help command process might be freezed or timeout.

  4. If bgr is missing, verify that uv is available and install the CLI:

    text
    uv tool install --from git+https://github.com/egeorcun/lucida.git my-bg-remover

    The package requires Python 3.12 or newer. The installation exposes one executable: bgr.

  5. Select the model:

    • Use lucida by default, especially for glass, partial transparency, smoke, glow, VFX, camouflage, text or logos with soft shadows, line art, illustrations, and print or sticker designs.
    • Use birefnet-hr for high-resolution general segmentation, especially solid physical subjects, product photos, or when Lucida keeps unwanted low-alpha background haze. Expect higher compute and memory use because it processes at 2048×2048.
    • Read references/models.md only when an alternate model, a versioned local checkpoint, or model-loading troubleshooting is needed.
  6. Run the removal command with quoted paths:

    text
    bgr remove "<input-path>" -o "<output-path>.png" --model lucida

    Replace lucida with birefnet-hr when that model better matches the subject.

  7. Confirm that the command succeeds and the output PNG exists. Inspect the result when image viewing is available, paying particular attention to partial transparency, holes, fine edges, retained background haze, and color fringing.

  8. Return the output file to the user and state which model and optional flags were used.

Optional passes

  • Add --refine when the first result has visibly rough or broken edges. Treat it as a retry, not a default, because refinement adds processing and can change soft boundaries.
  • Keep color decontamination enabled by default. Add --no-decontaminate only when decontamination shifts intentional glow, translucent color, or edge color.
  • Change one variable per retry so the effect of the model or flag remains clear.

Examples:

text
bgr remove "input.jpg" -o "output.png" --model lucida --refine
bgr remove "product.jpg" -o "product-transparent.png" --model birefnet-hr
bgr remove "glow.png" -o "glow-transparent.png" --model lucida --no-decontaminate

Weight behavior

  • The current lucida registry entry uses the Hugging Face model ID egeorcun/lucida. On first use, Transformers downloads the published weights to its cache; allow time and network access for this download.
  • The birefnet-hr registry entry uses the Hugging Face model ID ZhengPeng7/BiRefNet_HR and downloads its published weights to the same cache on first use.
  • The separate lucida-v7 registry entry expects a training checkpoint at data/checkpoints/epoch_7.pth, resolved from the command's working directory. Use that entry only when the matching training checkpoint is already available at that exact path.
  • Do not rename the published model.safetensors to epoch_7.pth: the local entry expects a training-checkpoint payload containing a model state dictionary.

Guardrails

  • Always use PNG for transparent output. JPEG cannot preserve an alpha channel.
  • Keep the original dimensions unless the user explicitly requests resizing.
  • Do not claim success from the command exit alone when visual inspection is possible.
  • Do not switch to experimental or versioned checkpoints without explaining the choice.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Lucida Remove Background AI skill do?

Remove image backgrounds locally with Lucida's bgr CLI and save transparent RGBA PNGs while preserving soft alpha in glass, smoke, glow and VFX, camouflage, text and logos, line art, illustrations, and print designs. Use when a user asks to remove, erase, isolate, cut out, or make the background of an image transparent; prefer Lucida for translucent or effect-heavy artwork and BiRefNet-HR for high-resolution solid physical objects or product photos.

Why use Lucida Remove Background on TypingMind?

Because you install it once and use it with any model. Lucida Remove Background is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Lucida Remove Background in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Yuki001/game-dev-skills/tree/main/skills/lucida-remove-background. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Lucida Remove Background?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Lucida Remove Background?

As many as you like. As long as a model supports skills, you can use Lucida Remove Background with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Lucida Remove Background AI skill free?

It is published on GitHub by Yuki001. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇