fine-tuning

fine-tuning is a skill for Claude Code from nimadorostkar/Claude-Skills-collection. It costs 109 tokens per session (1,519 once invoked), scanned A, original, MIT.

Guidance for deciding whether to fine-tune a language model—train it further on examples for a specific task—and for carrying out that work. It covers data preparation, lightweight or full training, and evaluation against the original model.

In plain words
What is it for?
Use it when prompting has stopped meeting an accuracy, format, style, vocabulary, cost, or latency requirement, or when reviewing an existing fine-tuned model.
Why use it?
It helps avoid training when better prompts or search-based context would solve the problem. It also focuses on clean datasets and tests, which are common sources of failed fine-tuning projects.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the ai plugin — 12 skills shipped together

Good fit Use it when prompting has stopped meeting an accuracy, format, style, vocabulary, cost, or latency requirement, or when reviewing an existing fine-tuned model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nimadorostkar/claude-skills-collection/fine-tuning
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 nimadorostkar/Claude-Skills-collection --skill fine-tuning
Clone the repo
git clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collection

Made for: Claude Code.

Or install ai, the plugin that ships this one along with the rest of its 12 skills.

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 fine-tuning

README.md
[![agentmods](https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/fine-tuning/github.svg)](https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/fine-tuning)
Your own site
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/fine-tuning"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/fine-tuning/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 fine-tuning

Your own site · 80×15
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/fine-tuning"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/fine-tuning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,519 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
  • NVIDIA SkillSpector pass 7 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.00109 $0.01519
Opus 5.5 $0.00044 $0.00608
Sonnet 5.5 $0.00022 $0.00304
Haiku 4.5 $0.00011 $0.00152

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

Security

Grade A, and why

fine-tuning 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 1mo 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/ai/fine-tuning/SKILL.md · 121 lines

How it starts

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

Fine-Tuning

Purpose

Decide whether fine-tuning is warranted, and do it properly if it is. Most fine-tuning projects should have been prompt engineering or retrieval, and the ones that should be fine-tuning usually fail on dataset quality rather than on the training.

When to Use

  • A task where prompting has plateaued below the required accuracy.
  • A specific output format, style, or domain vocabulary the model will not adopt reliably.
  • Reducing cost by making a small model do what currently requires a large one.
  • Evaluating an existing fine-tuned model that underperforms.

Capabilities

  • Deciding between prompting, RAG, and fine-tuning.
  • Dataset construction, curation, and splitting.
  • LoRA and QLoRA versus full fine-tuning.
  • Hyperparameter selection and overfitting detection.
  • Evaluation against the base model on the same set.

Inputs

  • The task, and the accuracy prompting achieves on it.
  • Available training data — its volume, and honestly, its quality.
  • Latency and cost constraints.

Outputs

  • A justified decision to fine-tune, or not to.
  • A curated dataset with clean train/validation/test splits.
  • A model measurably better than the base model on a held-out set.

Workflow

  1. Exhaust prompting first — Few-shot examples, a clearer output contract, a better model. Fine-tuning cannot teach knowledge the model lacks; it teaches behavior. If the problem is that the model does not know something, use retrieval instead.
  2. Decide what fine-tuning is actually for — Format adherence, tone, a domain-specific classification boundary, or distilling a large model's behavior into a small one. Those are the cases where it works.
  3. Build the dataset carefully — This is where the project succeeds or fails. A thousand clean, consistent examples beat fifty thousand noisy ones. Inconsistent labels teach the model to be inconsistent.
  4. Split before you look — Train, validation, test. The test set is touched once, at the end. Selecting a checkpoint on the test set is how you produce a model that scores well and performs badly.
  5. Start with LoRA — It is cheap, fast, and sufficient for the majority of tasks. Full fine-tuning is warranted rarely.
  6. Compare against the base model on the same test set — With the same prompt. A fine-tuned model that does not beat a well-prompted base model is a liability, not an asset.

Read the full file on GitHub · 121 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. 1mo ago Changed · +63 tokens per session f62c79c275ee
  2. 3mo ago First seen · 121 lines · 46 tokens per session scan A 0143da6fc7d8

Subscribe to this mod's changes

fine-tuning is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (41 stars, last pushed today), licensed MIT. It adds 109 tokens to every session and 1,519 once invoked, about $0.0004 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

fine-tuning compared with skills from other repositories

fine-tuning next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fine-tuningnimadorostkar/Claude-Skills-collectionSkill41todayMITA109Claude Code
ai-ethics-reviewmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA88Claude Code
ai-product-canvasmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA73Claude Code
model-migration-planmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA99Claude Code
prompt-regression-suitemohitagw15856/pm-claude-skillsSkill1.6ktodayMITA102Claude Code
ai-context-primermohitagw15856/pm-claude-skillsSkill1.6ktodayMITA149Claude Code
ai-output-verifiermohitagw15856/pm-claude-skillsSkill1.6ktodayMITA142Claude Code