grimoire is a prompt library and builder for Stable Diffusion / ComfyUI.
I tried many prompt management tools but couldn't find one that felt right — features were missing, or the overview was hard to read. So I built grimoire with exactly what I wanted.
Key Features
Tag library organized with YAML files. One button can hold multiple tags, acting like a preset.
Color-coded chips for easy readability at a glance. Right-click to assign a custom color — 12 presets + hex picker.
[New!] Style Palette with custom categories: add, delete, and rename palette categories freely to match your workflow.
Slot Mode: split your positive prompt into named slots (Quality, Character, Outfit, Pose, Camera, Background…). Click a slot, then click tags to fill it.
Suffix Zone: a dedicated row for boilerplate tags — always appended to the end of the final prompt, fully editable and saved in presets.
Preview Window: a floating window that auto-displays generated images as they appear. Syncs theme with grimoire, remembers size and position.
Prompt History: auto-saves your prompt on every Send (up to 50 entries), restorable with one click.
[New!] Pin main window: keep grimoire always on top with the 📌 button.
Randomization within categories, groups, and subgroups — including deeply nested hierarchies.
Danbooru tag autocomplete.
AI prompt generation via Ollama, Claude API, or OpenAI.
Image browser with PNG metadata viewer and one-click settings import.
CivitAI metadata fetch for LoRA / Embedding / Checkpoint (with sample image viewer and trigger word display).
Full generation settings (resolution, aspect ratio, Hires.fix, etc.).
WebUI and ComfyUI support.
WebUI / ComfyUI Integration
To use grimoire with Stable Diffusion WebUI or ComfyUI, a dedicated bridge extension / custom node is required. See GitHub for installation instructions.
WebUI (reForge / A1111): https://github.com/omamesamba-del/sd-webui-grimoire-bridge
ComfyUI: https://github.com/omamesamba-del/comfyui-grimoire-bridge
GitHub
https://github.com/omamesamba-del/grimoire
grimoire は Stable Diffusion / ComfyUI 向けのプロンプトライブラリ&ビルダーです。 いろんなプロンプト管理ツールを試してきましたが、しっくりくるものが見つからなかったので、自分が欲しいものをそのまま作りました。
主な機能
YAML ファイルで整理されたタグライブラリ。1つのボタンに複数タグをまとめてプリセット的に使用可能。
カラーコード付きチップで一目でプロンプトを把握。右クリックでチップ色を自由に変更(12色プリセット+カスタムカラー)。
[New!] カスタムカテゴリ対応のスタイルパレット: パレットのカテゴリを自由に追加・削除・リネームできます。
スロットモード: ポジティブプロンプトを「品質・キャラ・服装・ポーズ・カメラ・背景…」などの名前付きスロットに分割して管理。
Suffix ゾーン: 定番タグ専用の列。最終プロンプトの末尾に常に追記され、プリセットにも保存。
プレビューウィンドウ: 生成画像を自動でリアルタイム表示するフローティングウィンドウ。テーマ同期・サイズ位置記憶対応。
プロンプト履歴: Send ごとにプロンプトを自動保存(最大50件)、ワンクリックで復元。
[New!] メインウィンドウ ピン留め: 📌 ボタンで grimoire を常に最前面に固定できます。
カテゴリ・グループ・サブグループ単位でのランダム化(深い階層も対応)。
Danbooru タグオートコンプリート。
Ollama・Claude API・OpenAI による AI プロンプト生成。
PNG メタデータビューアとワンクリック設定インポート付きの画像ブラウザ。
LoRA / Embedding / Checkpoint の CivitAI メタデータ取得(サンプル画像ビューアとトリガーワード表示付き)。
解像度・アスペクト比・Hires.fix など生成設定の完全サポート。
WebUI・ComfyUI 対応。
WebUI / ComfyUI 連携
grimoire を Stable Diffusion WebUI または ComfyUI と連携するには、専用のブリッジ拡張機能 / カスタムノードが必要です。インストール方法は GitHub をご確認ください。
WebUI (reForge / A1111): https://github.com/omamesamba-del/sd-webui-grimoire-bridge
ComfyUI: https://github.com/omamesamba-del/comfyui-grimoire-bridge
GitHub
Description
The headline feature is the Suffix Zone — a dedicated chip row that always appends to the end of your positive prompt.
Do you keep repeating the same tail-end tags on every generation? Things like "masterpiece, best quality, highres", or LoRA trigger words that must come last? The Suffix zone keeps those permanently separated from the creative part you're actually iterating on. No more accidentally deleting them when you clear your prompt.
You can drag any chip from the main prompt or directly from your tag library into the Suffix zone. Right-click any chip to instantly move it between main and suffix. The suffix is saved in presets alongside the main prompt, so your full setup is always preserved.
The Suffix zone has full feature parity with the main prompt: bulk enable / disable / delete, Delete key, double-click to toggle, complete undo / redo history, and inline chip editing.
Other changes
Drag tags directly from the library into the chip area, inserted at the drop position
Inline chip editing: click outside the field to confirm
Ctrl+Shift+Z as an alternative redo shortcut
Frequent tags panel: display limit raised from 30 to 60
Tag mode: gen settings are now sent to WebUI / ComfyUI even if you haven't visited the Gen tab in the current session
Fix: Image mode "Send to Tags" button correctly restores the icon after use
Previous updates
v1.0.8 / v1.0.7 — Chips: disable/enable from context menu. Quick-Add: Ctrl+Enter. HUD bulk selection. Checkpoint Apply fills Checkpoint field. Mode folder memory. Fix: default language is English.
v1.0.6 — LoRA / Embedding edit modal with CivitAI sample images, trigger words, and personal notes. Middle-click chip to remove.
v1.0.5 — Fix: first launch builds tag library correctly. App icon. Style Palette "Close on Apply" option.
v1.0.3 — Checkpoint click-to-fill, edit screen with Send buttons. CivitAI fetch fixes. Gen mode Save Preset.
v1.0.2 — Gen mode send mask. PNGinfo copy buttons. Style Palette bilingual labels. WebUI Bridge: checkpoint/VAE/clip skip.
v1.0.1 — Initial release.
今回の目玉は Suffix ゾーン — ポジティブプロンプトの末尾に常に追記される専用チップ列です。
毎回同じ末尾タグを繰り返し入力していませんか?「masterpiece, best quality, highres」のような品質タグや、必ず最後に置かないといけない LoRA のトリガーワードなど。Suffix ゾーンはそういったタグを「本当に試行錯誤したい部分」と完全に分離して管理できます。プロンプトをクリアしても誤って消えてしまうことがありません。
メインプロンプトのチップをそのままドラッグして Suffix ゾーンへ移動できます。タグライブラリから直接 Suffix にドラッグすることも可能です。右クリックメニューからメインと Suffix の間でワンクリック移動できます。Suffix の内容はプリセットにも保存されます。
Suffix ゾーンはメインプロンプトと同等の機能を完全サポート: 一括有効化 / 無効化 / 削除、Delete キーで削除、ダブルクリックで toggle、完全な undo / redo 履歴、インライン編集。
その他の変更点
ライブラリからチップエリアへ直接ドラッグ挿入(ドロップ位置に挿入)
インラインチップ編集: フィールド外クリックで確定
Ctrl+Shift+Z でも redo として動作
よく使うタグパネルの表示上限を 30 → 60 に拡大
タグモード: Gen タブ未訪問でも gen 設定を WebUI / ComfyUI に送信
修正: 画像モードの「タグへ送る」ボタンが送信後に正しくアイコンに戻るよう修正
過去の更新
v1.0.8 / v1.0.7 — チップの右クリック無効化/有効化。Quick-Add: Ctrl+Enter。HUD 一括選択。Checkpoint Apply 強化。モードフォルダ記憶。修正: デフォルト言語を英語に固定。
v1.0.6 — LoRA / Embedding 編集モーダル(CivitAI サンプル画像・トリガーワード・個人メモ)。ミドルクリックでチップ削除。
v1.0.5 — 修正: 初回起動のタグライブラリ生成。アプリアイコン追加。スタイルパレット「適用で閉じる」オプション。
v1.0.3 — Checkpoint クリックで入力・編集画面追加。CivitAI 取得バグ修正。Gen モードにプリセット保存。
v1.0.2 — Gen モード送信マスク。PNGinfo コピーボタン。スタイルパレットバイリンガルラベル。WebUI ブリッジ強化。
v1.0.1 — 初回リリース。





