# Fine-tuning a language model (/ai--fine-tuning)

/ai--fine-tuning is a Claude Code skill in the AI & Agents section. Decides honestly whether an LLM needs fine-tuning or better prompts, and if so prepares data, trains and compares before and after on held-out data.

- Web version: https://skills.sgomez.dev/en/s/ai--fine-tuning
- Section: [AI & Agents](https://skills.sgomez.dev/en/ai.md)
- Author: Santiago Gómez de la Torre
- License: MIT
- Source: https://github.com/sgomez-dev/claude-skills/blob/main/skills/ai/fine-tuning.md
- Updated 10 Jul 2026

## How to ask for it

- `/ai--fine-tuning should I fine-tune or just improve my prompt?`
- `/ai--fine-tuning prep my conversation dataset for training`
- `/ai--fine-tuning compare model performance before and after fine-tuning`

## Install

macOS · Linux:

```
curl -fsSL https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.sh | bash
```

Windows:

```
irm https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.ps1 | iex
```

Claude Code plugin:

```
/plugin marketplace add sgomez-dev/claude-skills
/plugin install ai-skills@claude-skills-collection
```

## Permissions

- Reads: `**/*`
- Writes: `**/*`
- Runs: `project test/eval runners, training scripts`
- Network: No
- Destructive: No

## Author's description

Fine-tune an LLM - decide vs prompting, prep dataset, train, eval before/after

- [How we review this](https://skills.sgomez.dev/en/methodology.md)
