/comfyui-readable-node:comfyui-readable-nodefrom comfyui-readable-node
Restructures ComfyUI workflows (JSON) into a readable, left-to-right format with visible nodes and wires, minimal custom nodes, and appropriate coloring. Use when making workflows tidy or building new ones.
Ships in comfyui-readable-node. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Build ComfyUI workflows that are easy to read. There are two situations.
In both, write the understanding first, then build on the canvas (scripts/canvas.py) with moves you write as lines. You are not fixing the original graph bit by bit.
The items are ordered by how much they matter when a person reads a workflow. When building, think in this order too.
There are three goals.
The rules in the references serve these principles and goals; how to read a rule is at the top of references/readable-form.md. When a case is not covered by a rule, decide by them. The words are defined in references/glossary.md.
What you decide (judgment): understanding, how to split, what to keep, remove or replace, rebuilding custom nodes, what goes where, what to align, rails, groups, colors for added functions, Notes.
What the canvas does (things with exactly one answer): node sizes, calculating positions, the default colors of loaders, LoRAs and Notes, group padding, checks (check), export. When reading the original (canvas open), it fixes what has exactly one way of fixing, such as turning wireless links back into wires, and applying the official node-replacement list and replacements that give the same calculation. It returns everything it did.
How to use the canvas
run on build.txt, arrange with layout on layout.txt). Read things side by side, at once.find /, the user's folders). The source of a node is read as in references/replacements.md.sleep. Wait for its notice that it has finished.S is the path of scripts/. The results go in the folder the user named; otherwise next to the original, or the current folder when there is no original. Make one working folder W there for this job, named after the workflow it builds with _work after it (image_flux2_klein_text_to_image_work, flux_text_to_image_work), and type every canvas move as python3 $S/canvas.py --dir $W <move>. Below, this is written canvas. The list of moves, their syntax and the detailed behavior (undo, placements calculated only once, block, and so on) are at the top of canvas.py (python3 $S/canvas.py prints them): read it once before step 4.
W: plan files (build.txt for building, layout.txt for arranging: "the plan" is layout.txt), Note files, workflows or object_info you fetch to read, notes. Only the exported workflows and the report page go outside W. canvas finish deletes the files of W it knows (what it wrote, the plan and Note files, understanding.md) and names the others it left: delete only those, one by one. Do not delete W with a recursive delete.Which steps apply. Moves marked "(when there is an original)" in the steps are only for rebuilding a given workflow. "Fast" is when the user asks for it fast; it applies to both.
| Step | Rebuilding a given workflow | Building a new one | Fast | Done before the next step |
|---|---|---|---|---|
| 1 Read | open <workflow.json> <object_info>, src all | open new <object_info> (only the node definitions) | same | the working folder is open |
| 2 Understanding | A to E of references/understanding.md | what was asked: what it makes, what the user puts in and gets out | same | understanding.md |
| 3 Split | yes | yes | same | the canvases |
| 4 Build | copy and add, then diff | add only | same | the wires are connected |
| 5–6 Arrange, look and fix | yes | yes | same | what the check names is fixed |
| 7 Notes | yes | yes | same | the Notes |
| 8 Export | the original's name with _readable, diff | a few English words for what it does | same | the exported workflows |
| 9 Review | yes | yes | skipped | the review registered |
| 10 Report page | with Original | without Original | skipped | report.html |
| 11 Report and finish | finish | finish | finish fast | the working folder is gone |
Read the original (when there is an original)
canvas open <workflow.json> <object_info URL or saved object_info JSON>
canvas src all (do not type src node many times). Read from the outputs upstream, tracing back from the sampler.Write the understanding document ($W/understanding.md)
The understanding of the workflow, written before building. Write the first version after reading, and revise it while building. Keep what you revised as well.
Split
Following the split in the understanding document, make one canvas per workflow (canvas new <name>, canvas use <name>). How they are named is in step 8. One canvas becomes one workflow JSON.
canvas new <name> from <canvas>, so the shared nodes keep their ids. Write what they share in one plan file, and in each canvas's plan only include <that file> and the lines of the part that differs. A fix to the shared part is made once.Build (per canvas)
The core first, then the added techniques.
canvas refs <word> lists, newest first, the workflows whose path or article title contains the word (a model name such as "flux" or "wan", or a use such as "inpaint"). Old workflows are sometimes built wrongly, so for the same use, choose the newer one. Refer only to how the core is built; do not copy the layout.canvas run build.txt. If it stops, fix that line and run the rest.copy <original id> … (copies type, values and mode; does not copy wires). A new node is add <type> (a type in object_info). Values are set (whether a value gets a value node: readable-form.md, section 6). Wires are link <A>.<output> <B>.<input> …; a wire into a widget (seed, text) gives that widget its input. canvas node <id> shows a node's input and output names: look before writing the lines. Connect only what is needed.canvas diff (values, inputs the user puts in, outputs, mode). Take each difference against what counts as the same workflow:
Arrange (per canvas)
In this order:
canvas guide for each canvas and read its whole output, uncut: the lines of references/ that name the nodes of this canvas.canvas core <the first stage's sampler> at the top of layout.txt. They are a draft of the core's block: adjust them to this workflow (a part the usual form lacks is named in a comment, to be placed by relations).block <name> <id> … and the arrangement inside it.canvas between layout.txt to see the wires between blocks and the outputs handed out to several blocks. Whether a value handed out to several stages needs a rail: readable-form.md, "Wires".put <block> left|right <block> wire). Groups, colors and the titles of value nodes and of nodes loading an image go in the same file (readable-form.md, "Groups and color", "Names"); the canvas reads every group line before it places anything, so where in the file a group line stands does not change the layout.canvas layout layout.txt.How to place:
put <unit> right <A> below <B>).canvas shape. Split workflows give the same function the same layout (canvas new <name> from <canvas>).Look, and fix
canvas render $W/look.png and look at it. Does it look as if a person arranged it? A node far from what it feeds, a wire running a long way, an empty area, a crowded area: fix the plan.canvas layout returned, as it is, uncut by grep or head (the rule: lines too): each line names a rule of this skill that a form breaks (its file and section); read that section again there. Fix each in the plan; look at it on the picture. canvas check lists every notice.canvas layout again (not item by item). rail stops when its line cannot be drawn (a target stands left of the source); fix what it names. A rail whose wires cross behind a node, or that has a Reroute doing nothing, is drawn, and the check names it.The check list finds only what can be counted; an empty list does not mean the layout is right. The review (step 9) checks the rest.
Notes
Read references/notes.md. Export the canvas (a draft for the Note writer; the final export is step 8), then start a separate agent (a subagent) and give it: the exported workflow (a node keeps its number from one export to the next; a node the canvas named, such as a Reroute it made, gets a number of its own), $W/understanding.md (E lists the candidates), and references/notes.md, with this request: "Write the Notes for this ComfyUI workflow following notes.md: the one or two sentences at the top of the overview Note, and the Notes on part of the processing, one Markdown file each in $W/notes/, in <the user's language>. Write from what happens to the user, not from the nodes. Write nothing that the graph shows. Point at nodes by their display names. Each file holds only the text: no heading for the title. In your final message, list each file with the id of the node it explains and its title (one of the three in notes.md; the overview Note has neither)." If no separate agent can be started, write them yourself.
canvas models under the overview sentence.note <file> <right|left|below|above> <node> in the plan (it takes what put takes: an alignment, a second reference), give a Note on part of the processing its title with title <Note id> "Markdown Note: …" (the file holds only the text; the overview Note has no title), and run canvas layout. When the place written is not clear, the canvas says what the Note lands on.Export and compare
For each canvas, canvas export <name>.json. The name is the original's file name with _readable after it (image_flux2_klein_text_to_image_readable.json), so it stands beside the original without overwriting it; when the workflow was split, a few English words after that say what each one does (…_readable_upscale.json). When there is no original, the name is a few English words for what it does (flux_text_to_image.json). (When there is an original) run canvas diff again on every canvas, take the differences one by one against the four items of step 4 and content.md, "What becomes of each part", fix what they say, and export again.
Review (another agent)
Read references/review.md and follow it: draw the picture for each canvas (not for one that differs from another only in values), give the brief to a new agent, fix the rows one at a time, answer every row, export again and register the review with canvas review.
Write the report page (report.html)
Write the page where the user checks the result, as one HTML file. The page has three views. The canvas makes Original (the original workflow; only when there is an original) and Rebuilt (what was done on the canvases, one move at a time). You write only the Walkthrough.
$W/walk_<canvas>.md, select the canvas with canvas use <canvas>, and register it with canvas walk $W/walk_<canvas>.md (the file's form is at the top of canvas.py). How to write it is in references/notes.md, "Walkthrough".canvas order <canvas> …: the basic workflow on the left, then those that add to it (t2i before i2i and edit, the normal version before its fast version), parts last. Workflows of the same form that differ only in values (one per model) share one tab: write them next to each other as <tab>/<canvas>.canvas report report.html <the user's language code> (ja, en, zh and so on).canvas finish deletes the files of the working folder it knows, including the understanding document. Take what the report needs from it first, then run canvas finish, then give the report. While something is missing (an export, a review, an answer to a review row, an up-to-date report page) it stops, says what, and deletes nothing.references/content.md (opens in a new tab)references/examples.md (opens in a new tab)references/glossary.md (opens in a new tab)references/notes.md (opens in a new tab)references/readable-form.md (opens in a new tab)references/replacements.md (opens in a new tab)references/report.md (opens in a new tab)references/review.md (opens in a new tab)references/site/index.json (opens in a new tab)references/techniques.md (opens in a new tab)references/understanding.md (opens in a new tab)scripts/api_format.py (opens in a new tab)scripts/canvas.py (opens in a new tab)scripts/comfy_schema.py (opens in a new tab)scripts/compare.py (opens in a new tab)scripts/flatten.py (opens in a new tab)scripts/fontmetrics.py (opens in a new tab)scripts/fonts/OFL-PlusJakartaSans.txt (opens in a new tab)scripts/fonts/PlusJakartaSans-latin.woff2 (opens in a new tab)scripts/frontend_min_sizes.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
comfyui, workflow-organization, readable-node, workflow-tidy
npx claudepluginhub nomadoor/comfyui-readable-node --plugin comfyui-readable-nodeOther plugins' skills for the same job