Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add IvanYangYangXi/artclaw_bridge --skill comfyui-contextgit clone --depth 1 https://github.com/IvanYangYangXi/artclaw_bridgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/comfyui-context)<a href="https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/comfyui-context"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/comfyui-context/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/comfyui-context"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/comfyui-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00081 | $0.02236 |
| Opus 5 | $0.00041 | $0.01118 |
| Sonnet 5 | $0.00016 | $0.00447 |
| Haiku 4.5 | $0.00008 | $0.00224 |
Grade A, and why
comfyui-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 331 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ComfyUI 上下文查询
查询 ComfyUI 当前状态:系统、模型、队列、节点类型。 所有操作为只读,不修改任何内容。
预注入变量
直接使用,无需 import:
nodes, folder_paths, client, L (L.model_management)
1. 系统信息
stats = client.get_system_stats()
print(f"系统信息: {stats}")
# GPU/VRAM 信息
mm = L.model_management
if mm:
total = mm.get_total_memory() / (1024**3)
free = mm.get_free_memory() / (1024**3)
print(f"VRAM: {free:.1f}GB free / {total:.1f}GB total")
2. 列出可用模型
# Checkpoints(主模型)
ckpts = folder_paths.get_filename_list("checkpoints")
print(f"Checkpoints ({len(ckpts)}):")
for c in ckpts:
print(f" {c}")
# LoRA
loras = folder_paths.get_filename_list("loras")
print(f"\nLoRAs ({len(loras)}):")
for l in loras:
print(f" {l}")
# VAE
vaes = folder_paths.get_filename_list("vae")
print(f"\nVAEs ({len(vaes)}):")
for v in vaes:
print(f" {v}")
可查询的模型类型
| folder_paths 参数 | 说明 |
|---|---|
"checkpoints" |
Stable Diffusion 主模型 |
"loras" |
LoRA 模型 |
"vae" |
VAE 模型 |
"controlnet" |
ControlNet 模型 |
"clip" |
CLIP 模型 |
"clip_vision" |
CLIP Vision 模型 |
"upscale_models" |
超分辨率模型 |
"embeddings" |
Textual Inversion embeddings |
"hypernetworks" |
Hypernetwork 模型 |
3. 队列状态
queue = client.get_queue()
running = queue.get("queue_running", [])
pending = queue.get("queue_pending", [])
print(f"运行中: {len(running)}")
print(f"排队中: {len(pending)}")
# 取消当前任务
# client.cancel_current()
# 清空队列
# client.clear_queue()
4. 列出所有可用节点类型
all_nodes = sorted(nodes.NODE_CLASS_MAPPINGS.keys())
print(f"可用节点类型 ({len(all_nodes)}):")
for name in all_nodes:
print(f" {name}")
按关键词搜索节点
keyword = "sampler" # 修改为需要搜索的关键词
matches = [n for n in nodes.NODE_CLASS_MAPPINGS.keys() if keyword.lower() in n.lower()]
print(f"包含 '{keyword}' 的节点:")
for m in matches:
print(f" {m}")
5. 查询节点参数 Schema
# 查询 KSampler 的输入参数定义
class_name = "KSampler"
NodeClass = nodes.NODE_CLASS_MAPPINGS[class_name]
input_types = NodeClass.INPUT_TYPES()
print(f"=== {class_name} ===")
print(f"RETURN_TYPES: {NodeClass.RETURN_TYPES}")
print(f"FUNCTION: {NodeClass.FUNCTION}")
print(f"CATEGORY: {NodeClass.CATEGORY}")
print("\nRequired inputs:")
for name, spec in input_types.get("required", {}).items():
print(f" {name}: {spec}")
if "optional" in input_types:
print("\nOptional inputs:")
for name, spec in input_types.get("optional", {}).items():
print(f" {name}: {spec}")
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 331 lines · 81 tokens per session scan A ca2f453094e6
comfyui-context is a skill published in the GitHub repository IvanYangYangXi/artclaw_bridge (35 stars, last pushed 4mo ago), licensed MIT. It adds 81 tokens to every session and 2,236 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
dcc-mcp-core
Foundation library for the DCC Model Context Protocol (MCP) ecosystem. Provides Rust-powered action management, skills system, IPC transport, MCP Streamable HTTP server (2025-03-26 spec, with 2025-06-18 and 2025-11-25 awareness), sandbox security, shared memory, screen capture, USD scene support, and telemetry for…
maya-pipeline
Domain skill — Maya asset pipeline orchestration: set up project directory structures, export scenes to USD, and coordinate multi-step DCC workflows. Use when initialising a Maya project or exporting assets for a downstream pipeline. Not for raw geometry editing — use maya-geometry for that. Not for low-level USD file…
imagemagick-tools
Infrastructure skill — image processing and manipulation via ImageMagick: resize, composite, convert formats, add watermarks. Use when batch-processing textures, thumbnails, or rendered images at the file level. Not for in-DCC texture or material editing — use a domain skill bound to the specific DCC for that.
asset-source
Gateway skill for cross-DCC asset import — search and resolve assets into a validated AssetDescriptor (local path + attribution). Demo source returns static catalog entries; production sources can add download or remote resolution without changing the contract.
ffmpeg-media
Infrastructure skill — media conversion and processing via FFmpeg: convert video/audio formats, extract frames, resize, and transcode. Use when manipulating raw media files (mp4, mov, wav, image sequences) regardless of DCC context. Not for DCC-specific render output handling — use a domain pipeline skill for…
maya-geometry
Domain skill — Maya geometry primitives: create spheres, cubes, cylinders; bevel, extrude, and merge polygon components. Use for individual geometry creation or editing operations inside Maya. Not for full asset export pipelines — use maya-pipeline for that. Not for USD scene inspection — use usd-tools for that.