界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

inference-workflows

inference-workflows

【效率与协作】Guides Krita AI Diffusion WorkflowInput construction, prompt preparation, inpaint, refine, upscale, control-image, and ComfyUI workflow lowering tasks.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: inference-workflows description: "Guides Krita AI Diffusion WorkflowInput construction, prompt preparation, inpaint, refine, upscale, control-image, and ComfyUI workflow lowering tasks." disable-model-invocation: true metadata: disco-role: operating license: GPL 3.0

inference-workflows

Use this sub-skill when the task is about image-generation request payloads or how Krita AI Diffusion lowers plugin state into local ComfyUI/cloud work.

Trigger examples:

  • Building, inspecting, serializing, or deserializing WorkflowInput.
  • Choosing among WorkflowKind.generate, refine, inpaint, refine_region, upscale_simple, upscale_tiled, control_image, and custom.
  • Debugging prompt/style/LoRA/wildcard/layer-token preparation before a job is sent to a client.
  • Explaining inpaint fill/mask/reference choices or selection/crop extents.
  • Estimating passes_count, cost, or request image payload shape without running actual generation.
  • Reviewing ComfyUI workflow lowering in backend.workflow or backend.comfy_workflow.

Safe entry points

python sub-skills/inference-workflows/scripts/inspect_workflow_input.py --kind generate --round-trip
python sub-skills/inference-workflows/scripts/inspect_workflow_input.py --kind inpaint --round-trip
python sub-skills/inference-workflows/scripts/inspect_workflow_input.py --kind upscale-tiled --target 2048x1536 --round-trip

These commands construct tiny in-memory payloads and do not connect to ComfyUI, launch Krita, download models, call cloud APIs, or generate images.

References

Boundaries

  • For server URLs, model catalogs, custom nodes, cloud/local clients, or managed server errors, route to server-resources.
  • For Qt workspace state that decides when DocumentModel.generate() enqueues a particular workflow kind, route to ui-workspaces as well.
  • For custom ComfyUI Graph workspace metadata and ETN placeholders, route to custom-graphs.
  • For Image, Mask, Bounds, layer tokens, prompt comments, style JSON, or PNG metadata, route to document-image-state.
我的收藏