- Home
- Skills
- APIs & Backend
- ComfyUI Job Pipeline: Keep Node IDs Out of Your App
ComfyUI Job Pipeline: Keep Node IDs Out of Your App
Re-export a ComfyUI workflow and node 6 can become node 12.
Free
ComfyUI Job Pipeline: Keep Node IDs Out of Your App
Example session with this skill installed
Audit our ComfyUI integration in src/ and put it behind a job pipeline. Start with the generate button.
- Read your context and instructions
- Compiled the comfyui job pipeline
Ran the leak finder on the source with nothing allowed. All nine leaks are in the generate button:
$ python3 scripts/find_leaks.py src
GenerateButton.tsx:9: node-id-index: graph['6'].inputs.text = prompt;
GenerateButton.tsx:10: node-id-index: graph['5']['inputs']['width'] = portrait ? 576 : 768;
GenerateButton.tsx:12: class-type: ... node.class_type === 'KSampler');
GenerateButton.tsx:15: comfy-endpoint: ... fetch('http://127.0.0.1:8188/prompt', {
GenerateButton.tsx:26: node-id-index: const image = entry.outputs['9'].images[0];
...
9 leaks in 1 file
What changed
- Wrote
txt2img-basic.template.jsonwith 5 inputs (prompt, avoid, shape, quality, seed).checkreports 0 problems. - The button now posts
{service: 'image', inputs: {prompt, shape}}to/api/generateand readsstatus,outputsanderrorfrom the job. - The route calls
run_job. A failed job comes back asstatus: "failed"with its reason.
$ python3 scripts/find_leaks.py src --allow 'src/generation/*'
no leaks found (patterns only; see --help)
Next steps
- Add
checkfor every template andfind_leaks.pyto CI. - Do one
runagainst your own ComfyUI: the tests ran against the mock server only.
Connects securely to your tools. The creator never sees your data.
About this skill
What it does
Re-export a ComfyUI workflow and node 6 can become node 12. An app that wrote its prompt into graph["6"] now writes it nowhere, and nothing says so. This skill keeps ComfyUI behind one boundary with five pieces: a JobSpec in product words (prompt, shape), a WorkflowTemplate that is the only file naming nodes, a pure mapper, an executor that is the only code talking HTTP, and the OutputAsset and GenerationJob the app stores.
A template names every node twice, by id and by class. check compares it with the workflow and refuses a moved node, a swapped class or an input wired to another node before anything is sent. find_leaks.py lists ComfyUI knowledge outside the boundary in your source: node-id indexing, class_type, endpoints, port 8188 and common node class names. The skill also gives five steps for auditing and moving an existing integration.
When to use it
- Your app calls ComfyUI's HTTP API (
/prompt,/history,/view,/upload/image). - A component edits workflow JSON by node id.
- A re-exported workflow broke generation.
- You are adding a second workflow or provider, or auditing an integration.
What's inside
scripts/comfy_pipeline.py: template, mapper, executor and job, withcheck,mapandruncommands. Standard library only.scripts/find_leaks.py: the leak finder, with--allowfor the boundary's own files.examples/: a text-to-image workflow in API format, its template, a JobSpec, and a generate button before and after, with a route handler.tests/: 51 tests against a mock ComfyUI server.
Requirements
Python 3.8 or newer. A running ComfyUI server for run. The workflow exported in API format.
The client follows ComfyUI's server.py and execution.py as read on the master branch, and has been tested against the mock server only. It has not run against a live ComfyUI yet. It polls /history (no WebSocket, no progress) and saves image outputs only.
Uses HTTP polling instead of WebSockets. No real-time progress bars. Supports image outputs only; other types are listed as not saved. Requires ComfyUI API JSON format.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 17 days ago
- Free with an Agensi account
- Software
Python 3.8+ComfyUI server (for run)
Git
Permissions
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.