# LoRA Training Suite: Dataset Doctor + One-Confirm Trainer

> Bring a folder of images, leave with a trained LoRA. Catches dataset problems before the GPU runs, then trains after one confirmation.

LoRA Training Suite: Dataset Doctor + One-Confirm Trainer is a free AI agent skill pack (several skills in one listing) on Agensi by 四糸凜音（Rinne414）, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [四糸凜音（Rinne414）](https://www.agensi.io/creators/rinne414)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-02
- Security: scan passed (2026-10-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/lora-training-suite-dataset-doctor-one-confirm-trainer
- Tags: ai-agents, research, lora-training, flux-ai, sdxl, civitai, comfyui, captioning

## About this skill

Most bad LoRAs are decided before training starts: a corrupt image, a caption the trainer silently cuts off, a trigger word missing from a fifth of the captions, a step budget that is far too low or too high. The trainer only checks that the folder exists and has images. This suite checks the rest, fixes what can be fixed safely, and then runs training with one plain-language confirmation.

### Three skills, three jobs

dataset-doctor - Audits a kohya-style dataset and returns PASS, WARN, or FAIL with fixes in priority order. It checks image count and step budget, resolution and aspect buckets, exact and near duplicates, corrupt and non-RGB images, missing, empty, or multi-line captions, trigger coverage, and tag hygiene (watermark/signature tags, tags present in every caption). Offline, takes seconds, no GPU. Works before any kohya-based trainer, not only SD-Trainer.

lora-trainer - Give it a folder of images. It organizes the folder, auto-captions, runs the doctor as a gate, picks repeats and epochs from your image count and detected VRAM, and shows one confirmation card. After you reply "confirm" it launches lora-scripts-next (SD-Trainer) through its local API and watches the log. An expert path accepts your own presets, dims, and learning rates.

lora-pipeline - Give it just a character or style name. It collects images from Danbooru, curates and captions them, runs the doctor, trains through lora-trainer, renders a fixed-seed sample gallery in ComfyUI, and fills the Civitai upload form up to Draft. You review and click Publish yourself.

### Safety model

- Every repair prints its plan first and changes nothing until you confirm.
- Displaced files move to _quarantine/ inside your dataset. Nothing is ever deleted.
- Training never starts without the confirmation card.
- Civitai uploads stop at Draft. Nothing is published automatically.

### Models

Anima first, with SD1.5, SDXL, and Flux through the same trainer. Caption rules were checked against the Anima model card and the trainer's own source code, not forum folklore (for example: kohya reads only the first line of a .txt caption, so the doctor flags multi-line captions).

### Open source

MIT licensed, same code as github.com/Rinne414/lora-training-skill.

## Requires

- Python

## Known limitations

Requires local installation of lora-scripts-next. Does not support video training. Staging to Civitai stops at the draft stage; final publishing requires manual user action.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the LoRA Training Suite: Dataset Doctor + One-Confirm Trainer skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent failed training runs compared to manual methods?

This skill automates the most error-prone parts of LoRA creation, specifically dataset auditing and parameter selection. It uses a quality-gated pipeline to catch resolution mismatches and tagging errors before you spend time and money on GPU cycles.

### Which Stable Diffusion model versions are supported by this training skill?

The skill is fully compatible with Stable Diffusion 1.5, SDXL, and Flux models. It utilizes the lora-scripts-next framework to handle the specific architecture requirements of each model type automatically.

### What exactly is included in the purchase package?

You will receive the complete agent workflow files, optimized parameter presets for characters and styles, and a custom integration tool for staging Civitai uploads. Please note that the lora-scripts-next trainer must be installed on your local machine separately.

### Does the dataset auditing feature modify or delete my original images?

Unlike basic training scripts, this skill includes a built-in safety protocol that identifies problematic files and moves them to a quarantine folder for review. This ensures your source dataset remains intact while preventing corrupt data from ruining the training process.

### Can this skill help me prepare my model for sharing on platforms like Civitai?

Yes, the skill includes a validation phase that generates sample images using your new LoRA and specific test prompts. It then packages these samples along with the model metadata to prepare a draft upload for Civitai.

### Is this the same as the GitHub version?

Yes. MIT licensed, same code as github.com/Rinne414/lora-training-skill, plus a top-level SKILL.md that routes to the three skills.

### Will it delete my images?

No. Every repair is a dry-run first. After you confirm, displaced files move to _quarantine/ inside the dataset. Move them back to undo.

### Will it start training or publish without asking?

No. Training needs an explicit "confirm" on the confirmation card. Civitai uploads stop at Draft; you click Publish.

### I use kohya_ss, OneTrainer, or ai-toolkit. Is it useful?

dataset-doctor is. It checks the standard kohya layout (<repeats>_<concept> folders + sidecar captions). Launching training is SD-Trainer specific.

### Which base models?

Anima first. SD1.5, SDXL, and Flux work through the same trainer.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
