Lucida Remove Backgroundのロゴ

Lucida Remove Background

コミュニティ
Yuki001
lucida-remove-background

Lucidaのbgr CLIを使ってローカルで画像の背景を除去し、ガラス、煙、光彩、VFX、迷彩、テキストやロゴ、線画、イラスト、印刷デザインの柔らかなアルファを保ったまま、背景透過のRGBA PNGとして保存します。画像の背景を除去、消去、切り抜き、分離したい場合や、背景を透過させたい場合に使用してください。半透明のアートやエフェクトの多い作品にはLucidaを優先し、高解像度の不透明な実物や商品写真にはBiRefNet-HRを使用してください。

Add to TypingMind

概要

公開者Yuki001
リポジトリgame-dev-skills
スキル名lucida-remove-background
スター
104
フォーク
13
同梱ファイル
2
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Yuki001がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Lucida Remove Background」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Yuki001/game-dev-skills/tree/main/skills/lucida-remove-background
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでLucida Remove Backgroundを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にLucida Remove Backgroundを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Lucida Remove Backgroundは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Lucida Remove Background」では何ができますか?

Lucidaのbgr CLIを使ってローカルで画像の背景を除去し、ガラス、煙、光彩、VFX、迷彩、テキストやロゴ、線画、イラスト、印刷デザインの柔らかなアルファを保ったまま、背景透過のRGBA PNGとして保存します。画像の背景を除去、消去、切り抜き、分離したい場合や、背景を透過させたい場合に使用してください。半透明のアートやエフェクトの多い作品にはLucidaを優先し、高解像度の不透明な実物や商品写真にはBiRefNet-HRを使用してください。

TypingMindでLucida Remove Backgroundを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Lucida Remove Backgroundはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにLucida Remove Backgroundをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Yuki001/game-dev-skills/tree/main/skills/lucida-remove-backgroundを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Lucida Remove Backgroundを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Lucida Remove Backgroundで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもLucida Remove Backgroundを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Lucida Remove Background」は無料ですか?

Yuki001がGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇