huajing-image-gen
БесплатноЗапускает вложенные скриптыНе проверенGenerate images through a local Huajing (AI Image Studio) server. Use when the user asks to create or generate an image, polish an image prompt, or look up…
от starrysea1412353 установки в других каталогахОб этом скилле
Huajing Image Generation
Drive a locally running Huajing (AI Image Studio) server to generate images. Huajing manages your own image-model providers (OpenAI-compatible relays, chat-based image adapters, etc.) and stores every generated image in a local gallery, so generation is cheap to retry and fully auditable.
Setup
- Start the Huajing server (single instance per machine):
- Windows: run
start.batin the Huajing repo, ornpm start. - Any OS:
npm start(listens on127.0.0.1:4173by default).
- Windows: run
- Add at least one image provider in the Huajing UI (Service & Models page): base URL + API key + image model.
- Optional environment overrides:
HUAJING_BASE_URL— server base URL, defaulthttp://127.0.0.1:4173.HUAJING_DATA_DIR— Huajingdata/directory; when set, results include absolute local file paths instead of only HTTP URLs.
Usage
All commands print JSON on stdout and human-readable diagnostics on stderr.
Exit codes: 0 success, 1 generation failed, 2 server unreachable, 3 bad usage.
Check the server before doing anything else:
node {baseDir}/scripts/huajing.mjs health
Generate an image (blocks until the image is done, polling internally):
node {baseDir}/scripts/huajing.mjs generate \
--prompt "a tiny red paper crane on a wooden desk, soft window light" \
--size 1024x1024 --count 1 --timeout 300
Options: --prompt (required), --size (WxH, default 1024x1024),
--count (1–4), --provider (provider id or case-insensitive name; default:
first enabled provider with an image model), --model (override the provider's
default image model), --negative (negative prompt), --timeout seconds (default 300),
--plain (human-readable output instead of JSON).
Polish a rough prompt into a richer one using the provider's prompt model:
node {baseDir}/scripts/huajing.mjs polish --prompt "一只纸鹤" --provider <id-or-name>
Search the local gallery for previously generated images:
node {baseDir}/scripts/huajing.mjs gallery --limit 5 --query "crane"
Notes
- If
generateexits with code2, the server is not running — tell the user to start it withstart.bat/npm startin the Huajing repo. - If generation fails with a provider error (exit code
1), the error text from the upstream model service is included in the JSONerrorfield; retrying with a different--providerusually helps. - All generated images are kept in the local gallery (
gallerysubcommand), so you can re-reference earlier results without regenerating.
Установить huajing-image-gen в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huajing-image-gen?
Generate images through a local Huajing (AI Image Studio) server. Use when the user asks to create or generate an image, polish an image prompt, or look up previously generated images. Supports text-to-image with polling, batch count, size, negative prompt, and provider/model selection. Requires the local Huajing server (default http://127.0.0.1:4173) and Node 18+.
Как установить скилл huajing-image-gen?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huajing-image-gen запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic