SAA Agent
БесплатноБез исполняемых скриптовНе проверенEnables AI agents to generate images using the Character Select Stand Alone App (SAA) image generation backend via command-line interface, and to polish…
от mirabarukaso2 568 установок в других каталогахОб этом скилле
SAA CLI Tool
A command-line interface for interacting with Character Select Stand Alone App (SAA) via WebSocket connections. Supports both ComfyUI and WebUI backends for AI image generation, and the AI Prompt panel (Remote / Local LLM) for polishing prompts.
Prerequisites
CRITICAL: Before invoking this tool, confirm with the user that:
- The SAA backend is running (image generation needs 2.9.0+; AI Prompt needs 2.11.0+)
- The SAAC (SAA Client) feature is enabled
- The WebSocket address is available
- For
--ai-prompt: the host AI PromptBackendisRemoteorLocal(notNone), with URL/key configured — or pass--ai-interface/--ai-url/--ai-keyexplicitly - Some Mac users use
python3instead ofpythonto invoke Python 3.x
For SAA setup details, let your owner visit the project repository.
Architecture (read this)
- Image generation does not call the language model. Matching the SAA UI since v2.11.0.
- Two separate steps: polish with
--ai-prompt, then generate with--positiveusing that text. - Do not confuse
--api-interface(ComfyUI/WebUI) with--ai-interface(Remote/Local). - Host Overwrite / Append into Common / Positive / Right positive / Negative is UI-only. This CLI prints the LLM result; it does not write host prompt boxes.
Basic Usage
Minimal Command With Model Selection (Recommended for Most Cases)
python saa-agent.py \
--ws-address "user_provided_ws_address" \
--model "waiIllustriousSDXL_v160.safetensors" \
--positive "your detailed prompt here" \
--negative "low quality, blurry, bad anatomy"
Regional Prompting (Split Composition)
python saa-agent.py \
--ws-address "user_provided_ws_address" \
--model "waiIllustriousSDXL_v160.safetensors" \
--regional \
--positive-left "1girl, warrior, red armor" \
--positive-right "1boy, mage, blue robes"
AI Prompt — Polish a Brief (No Image)
Prefer a host template. Built-ins: tag-brief (Tag scene), natural-brief (Natural scene), character-natural (Character natural).
python saa-agent.py \
--ws-address "user_provided_ws_address" \
--ai-prompt \
--ai-template "tag-brief" \
--brief "sunset villa, palm trees, golden hour"
List templates:
python saa-agent.py \
--ws-address "user_provided_ws_address" \
--list-ai-templates
Recommended agent workflow:
--ai-promptwith--briefand--ai-template- Read the text between
AI_PROMPT_RESULT_STARTandAI_PROMPT_RESULT_END - Call image generation with that text as
--positive(and a suitable--negative)
More Examples
python saa-agent.py
python saa-agent.py --help
Key Parameters
Required
--ws-address: WebSocket address (obtain from user)- Image mode:
--positiveOR--regionalwith--positive-leftand--positive-right - AI Prompt mode:
--ai-promptplus--brief, and either--ai-templateor--ai-system-prompt
Commonly Modified (image)
--model: Change the checkpoint model (default:waiIllustriousSDXL_v160.safetensors)--negative: Specify unwanted elements--width/--height: Image dimensions (defaults: 1024x1360)--steps: Sampling steps (default: 28)--seed: Set specific seed or -1 for random
AI Prompt
--ai-template: Template id or name from the host--ai-interface:RemoteorLocal(default: inherit from host panel)--ai-url/--ai-key/--ai-model: Override host backend settings when needed--ai-timeout/--ai-temperature/--ai-max-tokens: Override template values--ai-system-prompt: Override the template system prompt
Advanced (Use Sparingly)
--cfg: CFG scale (default: 7.0)--sampler: Sampling algorithm (default:euler_ancestral)--scheduler: Scheduler type (default:normal)
Important Guidelines
HiResFix Warning
DO NOT use --hifix unless specifically requested by the user.
HiResFix significantly increases generation time and requires substantial GPU resources. Only enable if:
- User explicitly requests high-resolution upscaling
- User confirms their GPU can handle the additional load
Backend Busy State
If the generation returns either of these errors:
Error: WebUI is busy, cannot run new generation, please try again later.
Error: ComfyUI is busy, cannot run new generation, please try again later.
Actions to take:
- DO NOT automatically retry the generation
- Inform the user: "That backend address is currently busy. The lock is per API address, so another ComfyUI or WebUI address can still run. This address is generating, or it is locked from a previous error."
- Advise: "Please wait 20-60 seconds before trying again."
- Let the user manually retry
Установить SAA Agent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл SAA Agent?
Enables AI agents to generate images using the Character Select Stand Alone App (SAA) image generation backend via command-line interface, and to polish prompts via the AI Prompt panel APIs.
Как установить скилл SAA Agent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл SAA Agent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic