SkillsGrove
SkillsGrove/Design & Bilder/norsizu/comfyui-zimage-skill/comfyui-zimage

comfyui-zimage

Installation

$npx skills add https://github.com/norsizu/comfyui-zimage-skill --skill comfyui-zimage
$git clone --depth 1 https://github.com/norsizu/comfyui-zimage-skill.git /tmp/comfyui-zimage-skill && mkdir -p ~/.claude/skills && cp -r /tmp/comfyui-zimage-skill/. ~/.claude/skills/comfyui-zimage
Bitte installiere diesen Agent Skill für mich: https://github.com/norsizu/comfyui-zimage-skill/tree/3ea60b833396a14a97d3946ed8725653b24ccf59/ – lies zuerst seine SKILL.md und seine Skripte und installiere ihn erst dann in meinen Skills-Ordner, wenn du bestätigt hast, dass er sicher ist.

Zusammenfassung

Originalbeschreibung · MITGenerate manga and anime illustrations via local ComfyUI API using Z-Image model with Hojo Tsukasa (80s manga) and Satoshi Urushihara (90s anime) LoRA styles. Supports character-consistent Riko portraits, text-to-image generation, and image upscaling. Use when the user asks to generate manga art, anime illustrations, character portraits, comic-style drawings, or artwork in Hojo/Satoshi style, or mentions Riko, ComfyUI, or Z-Image.
Die folgende SKILL.md ist aus norsizu/comfyui-zimage-skill (Commit 3ea60b8) unter der Lizenz MIT wiedergegeben. Der Text ist unverändert; lediglich die Metadaten im Dateikopf sind weggelassen, Bilder werden als Links angezeigt und sehr lange Dateien werden gekürzt. Copyright 2026. Lizenz: LICENSE. Es wird nur die Anleitungsdatei angezeigt; etwaige Skripte finden Sie im Original-Repository.

Z-Image Image Generation System

Run all generation scripts directly with Bash. Do not use ToolSearch — all scripts are local.

Riko routing rule: Any request mentioning "Riko" must use generate_riko_*.py (not generate_manga_*.py). Riko's fixed appearance and outfit definitions only exist in the Riko scripts. Style LoRAs can be layered on top via --lora and --style_trigger flags. See the decision table below.

Step 1: Identify Route

Priority Keyword Route Script prefix
1 (Highest) Riko (even with a style) riko generate_riko_*
2 Hojo, Tsukasa Hojo manga generate_manga_*
3 Satoshi, Urushihara manga generate_manga_*

Resolution keyword guide

User says Meaning Script suffix
high quality, masterpiece, professional Good prompt quality *_quick.py
high-res, upscale, 4K, large image High resolution output *_highres.py or upscale_*.py
default (no specification) Quick preview *_quick.py

Prompt extraction for Riko requests

When extracting a prompt from a reference image for Riko generation, pass only scene-level elements to --scene:

  • Include: actions, poses, emotions, expressions, scene/background, lighting/atmosphere, composition/angle
  • Discard: hair color/style, skin tone, body type, facial features, clothing (unless user specifies maid instead of school_uniform) — Riko has fixed definitions for these in data/riko_character.py

Step 2: Execute Generation

DIR=/path/to/your/comfyui-zimage-skill

Riko route

# Pure Riko (realistic style)
python3 $DIR/generate_riko_quick.py \
  --outfit_type school_uniform \
  --scene "[scene description]"

# Riko + Hojo style (black and white manga-style Riko)
python3 $DIR/generate_riko_quick.py \
  --outfit_type school_uniform \
  --scene "[scene description]" \
  --lora "Z-image\\z-image-hojo.safetensors" \
  --style_trigger "Zanshou_kin_Hojo, monochrome, greyscale"

# Riko + Satoshi style (90s anime-style Riko)
python3 $DIR/generate_riko_quick.py \
  --outfit_type school_uniform \
  --scene "[scene description]" \
  --lora "Z-image\\z-image-satoshi.safetensors" \
  --style_trigger "sato, 90s anime style" \
  --style_tags "shiny skin, sparkle"

Outfit options: school_uniform (JK uniform) | maid (maid outfit) View options: --view_type full (full body) | --view_type upper (upper body)

Manga route (no Riko)

# Hojo style
python3 $DIR/generate_manga_quick.py \
  --lora "Z-image\\z-image-hojo.safetensors" \
  --prompt "[full prompt]"

# Satoshi style
python3 $DIR/generate_manga_quick.py \
  --lora "Z-image\\z-image-satoshi.safetensors" \
  --prompt "[full prompt]"

High-resolution version

Replace *_quick.py with *_highres.py. Set timeout=300000 for high-res generation.

Step 3: Validate and Display Results

After running a generation script, check the exit code before displaying:

python3 $DIR/generate_riko_quick.py --outfit_type school_uniform --scene "standing by window"
if [ $? -ne 0 ]; then
  echo "Generation failed — check that ComfyUI is running and the model/LoRA paths are correct."
else
  # Display the generated image
  echo '<a href="[image_url]"><img src="[image_url]" width="350"></a>'
fi

Save the returned image_url for later upscaling.

Step 4: Upscale Existing Images

When the user says "upscale" for an already generated image:

# Riko image upscale (no LoRA needed)
python3 $DIR/upscale_riko.py --image_url "[image_url]"

# Manga image upscale (needs original LoRA)
python3 $DIR/upscale_manga.py --image_url "[image_url]" --lora "[original LoRA]"

Quick Decision Table

User Request Route Script LoRA
Draw Riko riko generate_riko_quick.py None
Riko in Hojo style riko generate_riko_quick.py hojo + style_trigger
Riko in Satoshi style riko generate_riko_quick.py satoshi + style_trigger
Mecha girl in Hojo style manga generate_manga_quick.py hojo
Cyberpunk in Satoshi style manga generate_manga_quick.py satoshi

Notes

  • LoRA path uses double backslash \\ in the --lora argument
  • High-res and upscale require timeout=300000
  • Style guides in data/ (style_hojo.md, style_satoshi.md) — consult for prompt crafting, do not delete
Vollständigen Lizenztext ansehen (MIT)
MIT License

Copyright (c) 2026

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.