技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
extension-scripting【数据与研究】Author, debug, and package stable-diffusion-webui scripts and extensions, including Script classes, postprocessing scripts, callbacks, metadata ordering, preload hooks, UI component hooks, and API-visible script args.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when building or diagnosing a Stable Diffusion WebUI script or extension: selectable scripts, always-on scripts, postprocessing scripts for Extras, callback-only extensions, JavaScript UI hooks, metadata.ini load/callback ordering, or preload.py command-line options.
scripts/<name>.py with a modules.scripts.Script subclass, show() returning True, ui() returning a list of Gradio controls, and run(p, *args) returning a Processed result.show() returning scripts.AlwaysVisible, and lifecycle methods such as setup(), before_process(), process(), process_batch(), postprocess_image(), or postprocess().scripts/<name>.py with a modules.scripts_postprocessing.ScriptPostprocessing subclass, name, optional order, ui() returning a dict of controls, and process(pp, **args).modules.script_callbacks at module import time and omit a Script subclass if no script UI is needed.Script and postprocessing method contracts, argument slices, API metadata, and file layout.metadata.ini, preload.py, and UI hook timing.elem_id, or imports fail.modules.*.elem_id, preferably via self.elem_id("field_name") inside Script.ui().ui() in the exact order expected by lifecycle methods and API args arrays.ScriptInfo.args from each control's label, value, minimum, maximum, step, and choices.--allow-code; do not copy that pattern into extensions unless the user explicitly accepts the security risk.assets-and-models./sdapi/v1/txt2img, /sdapi/v1/img2img, and general API automation to api-automation.launch-and-config.training-and-postprocessing.