Skip to content
Back to skills

Skill

ASecurity

**Tier 2 #7 — ComfyUI CLI harness**

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
ai-agentsbashnodetestingbackend

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 11, 2026

npx -y skills add SkyyRoseLLC/DevSkyy --skill skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill?

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

Security grade badge for Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/skyyrosellc-skill/badge)](https://www.skillsdirectory.com/skills/skyyrosellc-skill)

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
# cli-anything-comfyui — Claude Skill Brief

**Tier 2 #7 — ComfyUI CLI harness**

## Purpose

Manage ComfyUI from the command line: queue workflows, inspect nodes and models,
browse history, run health checks, manage persistent sessions, and apply batched
operation manifests.

## Package

```
cli-anything-comfyui 1.0.0
Entry points: comfyui | cli-anything-comfyui
Source: vendor/cli-anything/comfyui/agent-harness/
```

## Quick Install

```bash
pip install -e vendor/cli-anything/comfyui/agent-harness/
# or with REPL:
pip install -e "vendor/cli-anything/comfyui/agent-harness/[all]"
```

## Environment

| Variable | Purpose | Default |
|----------|---------|---------|
| `COMFYUI_HOST` | Server URL | `http://127.0.0.1:8188` |
| `COMFYUI_AUTH_TOKEN` | Bearer token | — |
| `COMFYUI_JSON` | JSON output globally | — |
| `CLI_ANYTHING_HOME` | Session/manifest data dir | `~/.cli_anything` |

## Command Map

```
comfyui
├── system    stats | embeddings
├── nodes     list [--filter] | info <class>
├── models    list [type] | types
├── queue     list | submit <file> | interrupt --confirm | clear --confirm
├── history   list | show <id> | extract-outputs <id> | clear --confirm [id]
├── workflow  validate | show | save | nodes
├── session   new | list | show <id> | delete --confirm <id>
├── manifest  plan | show | apply --confirm
├── doctor    check | deps
└── repl      (interactive REPL)
```

## Key Patterns

- `--json` flag → all output as JSON (machine-readable)
- `--confirm` required for: `queue clear`, `queue interrupt`, `history clear`, `session delete`, `manifest apply`
- `--host` overrides `COMFYUI_HOST` per invocation
- `--token` overrides `COMFYUI_AUTH_TOKEN` per invocation
- 429 rate-limit → automatic retry (up to 3× with backoff, honors `Retry-After`)
- Session files → `~/.cli_anything/comfyui/sessions/<uuid>.json`
- Manifest files → local JSON, plan/show/apply workflow

## Architecture

```
cli_anything/comfyui/
├── comfyui_cli.py       Root Click group + REPL
├── core/
│   ├── secrets.py       ComfyUISecrets (host + token resolution)
│   ├── workflow.py      NodeInfo + Workflow data model
│   ├── queue.py         QueueItem + build_prompt_payload
│   ├── history.py       HistoryItem + OutputFile parsing
│   ├── manifest.py      ActionManifest plan/apply with atomic JSON write
│   └── session.py       Session persistence (MAX_HISTORY=50)
├── utils/
│   ├── comfyui_backend.py  Full REST client (14 endpoints, retry logic)
│   └── repl_skin.py     ReplSkin — emerald #10B981 accent, table formatter
└── commands/
    ├── system_cmds.py   doctor_cmds.py   history_cmds.py
    ├── manifest_cmds.py models_cmds.py   nodes_cmds.py
    ├── queue_cmds.py    session_cmds.py  workflow_cmds.py
    └── doctor_cmds.py
```

## Testing

```bash
# Offline (no server) — CI default
pytest vendor/cli-anything/comfyui/agent-harness/cli_anything/comfyui/tests/ -v

# With live ComfyUI
COMFYUI_E2E=1 pytest vendor/cli-anything/comfyui/agent-harness/cli_anything/comfyui/tests/ -v
```

~165 tests across `test_core.py` (offline unit) + `test_full_e2e.py` (integration).
E2E gate: skip when `COMFYUI_E2E` unset; FAIL (not skip) when set + server unreachable.

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.

Comments

Loading comments…

Newsletter

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