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-controlnetgit 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-controlnet)<a href="https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/comfyui-controlnet"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/comfyui-controlnet/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-controlnet"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/comfyui-controlnet.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.00071 | $0.02016 |
| Opus 5 | $0.00036 | $0.01008 |
| Sonnet 5 | $0.00014 | $0.00403 |
| Haiku 4.5 | $0.00007 | $0.00202 |
Grade A, and why
comfyui-controlnet 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 11d 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 — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ComfyUI ControlNet
使用 ControlNet 控制图像生成:姿态、边缘、深度等。
预注入变量
run_python 已注入:submit_workflow, folder_paths, save_preview
ControlNet 类型
| 类型 | 预处理器 | 用途 | 适用场景 |
|---|---|---|---|
| Canny | CannyEdgePreprocessor | 边缘检测 | 保持轮廓结构 |
| OpenPose | OpenposePreprocessor | 人体姿态 | 人物动作控制 |
| Depth | DepthPreprocessor | 深度图 | 空间关系控制 |
| Lineart | LineartPreprocessor | 线稿提取 | 动漫线稿上色 |
| MLSD | M-LSDPreprocessor | 直线检测 | 建筑/室内设计 |
| Scribble | ScribblePreprocessor | 涂鸦识别 | 草图生成 |
| Seg | SemanticSegmentor | 语义分割 | 场景布局控制 |
| Normal | NormalMapPreprocessor | 法线贴图 | 3D 表面细节 |
使用方法
方法 1: 使用便捷函数
from comfyui_controlnet import build_controlnet_workflow
wf = build_controlnet_workflow(
control_type="canny", # 或 "openpose", "depth", "lineart"
image_path="reference.png",
prompt="masterpiece, best quality, a girl standing",
negative_prompt="low quality",
checkpoint="sdxl_base.safetensors",
controlnet_model="controlnet-canny-sdxl.safetensors",
control_strength=0.8, # ControlNet 强度
width=1024,
height=1024,
seed=42
)
result = submit_workflow(wf)
if result.get("images"):
save_preview(result["images"][0])
方法 2: 分步构建 Canny
import random
wf = {}
# 1. 加载模型
wf["1"] = {"class_type": "CheckpointLoaderSimple", "inputs": {"ckpt_name": "sdxl.safetensors"}}
# 2. 加载 ControlNet 模型
wf["2"] = {"class_type": "ControlNetLoader", "inputs": {"control_net_name": "control_v11p_sd15_canny.pth"}}
# 3. 加载参考图
wf["3"] = {"class_type": "LoadImage", "inputs": {"image": "pose_reference.png"}}
# 4. Canny 预处理
wf["4"] = {
"class_type": "CannyEdgePreprocessor",
"inputs": {
"image": ["3", 0],
"low_threshold": 100,
"high_threshold": 200
}
}
# 5. 编码提示词
wf["5"] = {"class_type": "CLIPTextEncode", "inputs": {"text": "masterpiece, best quality", "clip": ["1", 1]}}
wf["6"] = {"class_type": "CLIPTextEncode", "inputs": {"text": "low quality", "clip": ["1", 1]}}
# 6. 应用 ControlNet
wf["7"] = {
"class_type": "ControlNetApply",
"inputs": {
"conditioning": ["5", 0], # 正面提示词
"control_net": ["2", 0], # ControlNet 模型
"image": ["4", 0], # 预处理后的图像
"strength": 0.8 # ControlNet 强度
}
}
# 7. 生成
wf["8"] = {"class_type": "EmptyLatentImage", "inputs": {"width": 1024, "height": 1024, "batch_size": 1}}
wf["9"] = {
"class_type": "KSampler",
"inputs": {
"model": ["1", 0],
"positive": ["7", 0], # 使用 ControlNet 后的 conditioning
"negative": ["6", 0],
"latent_image": ["8", 0],
"seed": random.randint(0, 2**32),
"steps": 20,
"cfg": 7.0,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1.0
}
}
# 8. 解码保存
wf["10"] = {"class_type": "VAEDecode", "inputs": {"samples": ["9", 0], "vae": ["1", 2]}}
wf["11"] = {"class_type": "SaveImage", "inputs": {"images": ["10", 0], "filename_prefix": "controlnet"}}
result = submit_workflow(wf)
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.
- 11d ago First seen · 271 lines · 71 tokens per session scan A 481a6c21b3fb
comfyui-controlnet is a skill published in the GitHub repository IvanYangYangXi/artclaw_bridge (35 stars, last pushed 4mo ago), licensed MIT. It adds 71 tokens to every session and 2,016 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.