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.
npx skills add MCKRUZ/ComfyUI-Expert --skill comfyui-lora-traininggit clone --depth 1 https://github.com/MCKRUZ/ComfyUI-ExpertWrote 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.
[](https://agentmods.dev/skills/mckruz/comfyui-expert/comfyui-lora-training)<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.
<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>- Socket pass
- Snyk pass
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.
| Model | Per session | Once 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 |
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.
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.
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.
- 3mo ago First seen · 264 lines · 58 tokens per session scan A 20e773ffe290
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.
comfyui-lora-training compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| comfyui-lora-trainingMCKRUZ/ComfyUI-Expert | Skill | 95 | 8mo ago | MIT | A | 58 | Claude Code |
| Prompt craft for ComfyUI generationhowdeploy/deploychan_mcp | Skill | 21 | 21d ago | MIT | A | 52 | Claude Code, Codex |
| emotion-to-camera-languageL-Trunks/ai-film-skills | Skill | 32 | 2mo ago | none | A | 202 | Claude Code, Codex |
| flux-txt2imgartokun/comfyui-mcp | Skill | 971 | today | MIT | A | 44 | Claude Code |
| prompt-engineeringartokun/comfyui-mcp | Skill | 971 | today | MIT | A | 28 | Claude Code |
| civitaiartokun/comfyui-mcp | Skill | 971 | today | MIT | A | 76 | Claude Code |
| model-registryartokun/comfyui-mcp | Skill | 971 | today | MIT | A | 100 | Claude Code |