RedNode Prompt Keywords
The shared @keyword library every RedNode prompt box reads
If you've used a RedNode Prompt Box, you've seen @keyword in action: type @moody into a box and it expands to whatever saved prompt that name stands for. RedNode Prompt Keywords is where those names live. It's the global library - save, update, delete, search - and every RedNode prompt node reads the same one, no wiring needed.
That shared-library design is the point. In a plain ComfyUI setup, reusable prompt fragments become either copy-paste text or a wildcard folder you point a processor at. Here the fragments are named, centrally editable, and referenced by an @ in the box, so changing a keyword once updates every workflow that uses it. It's the same mental model as a macro or a template variable, and it saves a genuinely annoying amount of prompt churn.
How it works
The library is a single JSON file, prompt_library.json, stored under ComfyUI's user directory in default/rednode-krea2/ - the same folder that holds the RedNode presets. That means the library is per-user and travels with your ComfyUI install, not per-workflow, which is what makes it a shared library. One library, reused across all your workflows, exactly as the node's description says.
The node itself is a management panel: it takes a keyword and the prompt_text it should expand to, and handles save/update/delete with a searchable list. It has no outputs, because it doesn't produce data - it edits a store that other nodes read.
Two details worth knowing:
keywordis name only, no@, and letters/digits/underscore only. You reference it as@nameinside a prompt box.prompt_textis the fixed text@nameexpands to, and it may itself contain__wildcards__or other@keywords. That nesting is the whole power of the thing - a keyword can roll up a wildcard line into a single memorable name.
The inputs
keyword- the macro name (no@, letters/digits/underscore).prompt_text- what the macro expands to. May contain wildcards and other keywords.
No outputs, as above - this node feeds the rest of the pack's prompt nodes by writing to the shared store.
Installing it
Part of RedNode Studio, so the usual:
git clone https://github.com/RedNodeAI/ComfyUI-RedNodeStudio.git ComfyUI/custom_nodes/ComfyUI-RedNodeStudio
Restart ComfyUI, or search RedNode Studio in ComfyUI Manager. No pip dependencies, no model files. Python 3.10+.
The one thing to know
Because the library is shared and global, a keyword you rename will silently stop expanding in an old workflow - the box leaves it as literal text rather than erroring. If you see an @name that doesn't expand, check the library before you check the box. And remember the library is per-user on this machine: it doesn't travel inside a workflow file, so don't rely on a shared workflow carrying your keywords with it. That's the standard trade for a global store, and it's worth it for the one-place editing.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| keyword | STRING | name only, no @ (letters/digits/underscore). Referenced as @name in a prompt box. | |
| prompt_text | STRING | the fixed prompt @name expands to. May itself contain __wildcards__ or other @keywords. |
Outputs (0)
No outputs