技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
api-automation【数据与研究】Build and validate Stable Diffusion WebUI REST API calls for generation, metadata, options, assets, scripts, progress, server control, and training endpoints.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task asks for /sdapi/v1/* calls, JSON payloads, base64 image handling, script_name, script_args, alwayson_scripts, API 400/401/422 recovery, metadata endpoints, option mutation, refresh endpoints, or safe API smoke checks.
GET /sdapi/v1/samplersGET /sdapi/v1/schedulersGET /sdapi/v1/sd-modelsGET /sdapi/v1/upscalersGET /sdapi/v1/scriptsGET /sdapi/v1/script-infoadd_api_route(...) registrations from a WebUI modules/api/api.py file using only the Python standard library.txt2img, img2img-inpaint, extras-single, png-info, progress, and options-set; optional image inputs are base64-encoded locally.Example helper usage:
python sub-skills/api-automation/scripts/build_api_payload.py txt2img --prompt "test prompt" --steps 3 --width 64 --height 64
python sub-skills/api-automation/scripts/build_api_payload.py img2img-inpaint --image-path input.png --mask-path mask.png
python sub-skills/api-automation/scripts/extract_api_routes.py --source modules/api/api.py --format markdown
--api, --nowebui, --subpath, and API logging setup, route to launch-and-config.assets-and-models.extension-scripting.training-and-postprocessing; this sub-skill only catalogs API call shapes and hazards.GET /sdapi/v1/cmd-flags, /samplers, /schedulers, /sd-models, /options, /scripts, /script-info.steps, width, height, batch_size, and n_iter small, set send_images: false when image bytes are not needed, and avoid save_images: true unless persistence is required./options, read the original value, change only the intended key, then restore it; options are saved to the WebUI config file./server-kill, /server-restart, or /server-stop unless the user explicitly requests lifecycle control and the server was launched with the stop endpoints enabled.