Logo di Lucida Remove Background

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.

Add to TypingMind

Panoramica

Pubblicato daYuki001
Repositorygame-dev-skills
Nome della skilllucida-remove-background
Stelle
104
Fork
13
File inclusi
2
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 2

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da Yuki001 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Lucida Remove Background in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Yuki001/game-dev-skills/tree/main/skills/lucida-remove-background
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Lucida Remove Background in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Lucida Remove Background non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Lucida Remove Background non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Lucida Remove Background su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Lucida Remove Background è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Lucida Remove Background in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Yuki001/game-dev-skills/tree/main/skills/lucida-remove-background. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Lucida Remove Background?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Lucida Remove Background?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Lucida Remove Background: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Lucida Remove Background è gratuita?

È pubblicata su GitHub da Yuki001. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇