Skip to content
Back to skills

Comfyui Api

ASecurity

自动检测 URL 设置,直接输入提示词即可生成图片。

  • 21 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 7, 2026
toolsbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill comfyui-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Comfyui Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Comfyui Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-comfyui-api/badge)](https://www.skillsdirectory.com/skills/modbender-comfyui-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ComfyUI Skill - 智能图像生成
description: 自动检测 URL 设置,直接输入提示词即可生成图片。
---

# ComfyUI Skill - 智能图像生成

自动检测 URL 设置,直接输入提示词即可生成图片。

## 自动检测

用户输入包含 URL 时自动设置连接:
```
设置连接 https://localhost:8188
set url: https://localhost:8188
```

## 直接使用

设置连接后,直接发送提示词:
```
生成一只可爱的猫
a beautiful sunset over mountains
```

## API 端点

### REST API (HTTPS)
| 方法 | 端点 | 说明 |
|------|------|------|
| POST | `{server}/api/prompt` | 提交工作流 |
| GET | `{server}/history/{id}` | 获取结果 |
| GET | `{server}/view?filename=xxx` | 获取图像 |

### WebSocket (WSS)
- URL: `wss://{server}/ws`
- 发送: `{"prompt": {...}, "client_id": "xxx"}`
- 接收: `executing`, `executed`, `status`

## 命令

| 命令 | 说明 |
|------|------|
| `set_url <url>` | 手动设置服务器地址 |
| `status` | 检查服务器状态 |
| `generate <提示词>` | 生成图像 |

## 中文翻译

自动将中文提示词转换为英文:
- "可爱的猫" → "masterpiece, best quality, high resolution, cute cat"
- "美丽的日落" → "masterpiece, best quality, high resolution, beautiful sunset"

## 示例

```bash
# 设置连接 (多种方式)
设置连接 https://localhost:8188
set_url https://localhost:8188

# 直接生成
生成一只可爱的猫
a beautiful sunset over mountains

# 查看状态
status
```

Files in this skill

  • SKILL.md1.5 KB
  • comfyui.py34.5 KB
  • skill.json635 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.