comfyui-lora-training

comfyui-lora-training is a skill for Claude Code from MCKRUZ/ComfyUI-Expert. It costs 58 tokens per session (2,048 once invoked), scanned A, original, MIT.

A step-by-step guide for training a LoRA, a small add-on model that helps an image generator keep a character's appearance consistent. It covers dataset preparation, training tools, settings, checkpoints, and evaluation for FLUX and SDXL.

In plain words
What is it for?
Use it to create character LoRAs, prepare and caption image datasets, configure training, compare checkpoints, and add the result to ComfyUI.
Why use it?
It helps when ordinary prompting cannot keep a character looking the same across many images. The process gives you a structured way to prepare reference images, train the model, and choose a suitable checkpoint.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: built for openclaw.

Good fit Use it to create character LoRAs, prepare and caption image datasets, configure training, compare checkpoints, and add the result to ComfyUI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mckruz/comfyui-expert/comfyui-lora-training
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MCKRUZ/ComfyUI-Expert --skill comfyui-lora-training
Clone the repo
git clone --depth 1 https://github.com/MCKRUZ/ComfyUI-Expert

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for comfyui-lora-training

README.md
[![agentmods](https://agentmods.dev/badge/skills/mckruz/comfyui-expert/comfyui-lora-training/github.svg)](https://agentmods.dev/skills/mckruz/comfyui-expert/comfyui-lora-training)
Your own site
<a href="https://agentmods.dev/skills/mckruz/comfyui-expert/comfyui-lora-training"><img src="https://agentmods.dev/badge/skills/mckruz/comfyui-expert/comfyui-lora-training/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for comfyui-lora-training

Your own site · 80×15
<a href="https://agentmods.dev/skills/mckruz/comfyui-expert/comfyui-lora-training"><img src="https://agentmods.dev/badge/skills/mckruz/comfyui-expert/comfyui-lora-training.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,048 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.02048
Opus 5.5 $0.00023 $0.00819
Sonnet 5.5 $0.00012 $0.00410
Haiku 4.5 $0.00006 $0.00205

Measured 3mo ago against content hash 20e773ffe290, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

comfyui-lora-training scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/comfyui-lora-training/SKILL.md · 264 lines

How it starts

The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ComfyUI LoRA Training

Guide the user through dataset preparation, training configuration, and evaluation for character LoRAs.

When to Train vs Zero-Shot

Scenario Recommendation
Need absolute consistency across many images Train LoRA
Building a character series or ongoing project Train LoRA
Quick one-off generation Use zero-shot (InstantID/PuLID)
Limited references (1-5 images) Use zero-shot
Testing concepts Use zero-shot first, train if committing

Training Pipeline

1. DATASET PREP
   |-- Collect/generate 15-30 reference images
   |-- Preprocess (crop, resize, diversify styles)
   |-- Caption with trigger word + descriptions
   |
2. CONFIGURE TRAINING
   |-- Select training tool (Kohya/AI-Toolkit/FluxGym)
   |-- Set hyperparameters based on model type
   |-- Configure checkpointing
   |
3. TRAIN
   |-- Monitor loss curve
   |-- Save checkpoints every 250-500 steps
   |
4. EVALUATE
   |-- Test each checkpoint with identical prompts
   |-- Check identity accuracy, flexibility, overfitting
   |-- Select best checkpoint
   |
5. INTEGRATE
   |-- Copy to ComfyUI models/loras/
   |-- Update character profile with trigger word + strength
   |-- Test in full workflow (LoRA + identity method)

Dataset Preparation

Image Requirements

Aspect Minimum Optimal Maximum
Count 10-15 20-30 50+
Resolution 512x512 1024x1024 -
Format PNG/high JPEG PNG -

Content Diversity Checklist

  • Multiple angles (front, 3/4, profile, back)
  • Various expressions (neutral, smile, serious, laugh, etc.)
  • Different lighting conditions (studio, natural, dramatic)
  • Varied backgrounds (or transparent/solid)
  • Multiple outfits/contexts
  • Some close-ups, some medium shots
  • If from 3D renders: include style variations (see below)

Preprocessing 3D Renders

Problem: Training directly on 3D renders bakes in the "3D" aesthetic.

Read the full file on GitHub · 264 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 264 lines · 58 tokens per session scan A 20e773ffe290

Subscribe to this mod's changes

comfyui-lora-training is a skill published in the GitHub repository MCKRUZ/ComfyUI-Expert (95 stars, last pushed 8mo ago), licensed MIT. It adds 58 tokens to every session and 2,048 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

comfyui-lora-training compared with skills from other repositories

comfyui-lora-training next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comfyui-lora-trainingMCKRUZ/ComfyUI-ExpertSkill958mo agoMITA58Claude Code
Prompt craft for ComfyUI generationhowdeploy/deploychan_mcpSkill2121d agoMITA52Claude Code, Codex
emotion-to-camera-languageL-Trunks/ai-film-skillsSkill322mo agononeA202Claude Code, Codex
flux-txt2imgartokun/comfyui-mcpSkill971todayMITA44Claude Code
prompt-engineeringartokun/comfyui-mcpSkill971todayMITA28Claude Code
civitaiartokun/comfyui-mcpSkill971todayMITA76Claude Code
model-registryartokun/comfyui-mcpSkill971todayMITA100Claude Code