unsloth-mcp-server: Skill for Claude Code

.claude/skills/dataset-engineering/SKILL.md

dataset-engineering is a skill for Claude Code from ScientiaCapital/unsloth-mcp-server. It costs 48 tokens per session (6,185 once invoked), scanned A, original, Apache-2.0.

A guide for creating, cleaning, and improving datasets used to fine-tune language models. It covers formats such as Alpaca, ShareGPT, and ChatML, plus data generation, filtering, splitting, and quality checks.

In plain words
What is it for?
Use it to prepare training data, remove duplicates and low-quality records, create synthetic examples, make train-validation-test splits, or work with Hugging Face datasets.
Why use it?
It helps turn inconsistent or noisy examples into data that can be used for model training. It also explains how to assess and improve the dataset before loading or uploading it.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ScientiaCapital/unsloth-mcp-server's own configuration. It tells Claude Code how to work on unsloth-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unsloth-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ScientiaCapital/unsloth-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ScientiaCapital/unsloth-mcp-server/main/.claude/skills/dataset-engineering/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ScientiaCapital/unsloth-mcp-server

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 dataset-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/scientiacapital/unsloth-mcp-server/dataset-engineering/github.svg)](https://agentmods.dev/skills/scientiacapital/unsloth-mcp-server/dataset-engineering)
Your own site
<a href="https://agentmods.dev/skills/scientiacapital/unsloth-mcp-server/dataset-engineering"><img src="https://agentmods.dev/badge/skills/scientiacapital/unsloth-mcp-server/dataset-engineering/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 dataset-engineering

Your own site · 80×15
<a href="https://agentmods.dev/skills/scientiacapital/unsloth-mcp-server/dataset-engineering"><img src="https://agentmods.dev/badge/skills/scientiacapital/unsloth-mcp-server/dataset-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,185 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.
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.00048 $0.06185
Opus 5 $0.00024 $0.03093
Sonnet 5 $0.00010 $0.01237
Haiku 4.5 $0.00005 $0.00619

Measured 9d ago against content hash 5cfb8535342f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

dataset-engineering 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 9d 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.

.claude/skills/dataset-engineering/SKILL.md · 1,081 lines

How it starts

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

Dataset Engineering

Complete guide for creating, cleaning, and optimizing datasets for LLM fine-tuning.

Overview

Quality data >> model size. This skill covers:

  • Dataset formats - Alpaca, ShareGPT, ChatML, custom
  • Data generation - Synthetic data with Claude/GPT-4
  • Cleaning & filtering - Remove noise, duplicates, low-quality
  • Augmentation - Expand datasets effectively
  • Quality assessment - Measure and improve data quality
  • Splitting strategies - Train/val/test splits
  • HuggingFace integration - Load, transform, upload datasets

Quick Start

Format Existing Data (Alpaca)

# Convert your data to Alpaca format
data = [
    {
        "instruction": "What is the capital of France?",
        "input": "",
        "output": "The capital of France is Paris."
    },
    {
        "instruction": "Translate to Spanish",
        "input": "Hello, how are you?",
        "output": "Hola, ¿cómo estás?"
    }
]

import json
with open("dataset.json", "w") as f:
    json.dump(data, f, indent=2)

Load and Use with Unsloth

from datasets import load_dataset
from unsloth import FastLanguageModel, standardize_sharegpt

# Load dataset
dataset = load_dataset("json", data_files="dataset.json", split="train")

# Format for training
def formatting_func(examples):
    texts = []
    for instruction, input_text, output in zip(
        examples["instruction"],
        examples["input"],
        examples["output"]
    ):
        text = f"### Instruction:\n{instruction}\n\n"
        if input_text:
            text += f"### Input:\n{input_text}\n\n"
        text += f"### Response:\n{output}"
        texts.append(text)
    return {"text": texts}

dataset = dataset.map(formatting_func, batched=True)

Generate Synthetic Data

import anthropic

client = anthropic.Anthropic(api_key="sk-...")

def generate_training_examples(topic: str, num_examples: int = 10):
    """Generate synthetic training data using Claude"""

    prompt = f"""Generate {num_examples} high-quality question-answer pairs about {topic}.

Format each as JSON:
{{
  "instruction": "The question or task",
  "input": "",
  "output": "The detailed answer"
}}

Make answers informative, accurate, and varied in style."""

    response = client.messages.create(
        model="claude-3-5-sonnet-20241022",
        max_tokens=4000,
        messages=[{"role": "user", "content": prompt}]
    )

    # Parse JSON from response
    return parse_json_examples(response.content[0].text)

# Generate medical Q&A data
medical_data = generate_training_examples("medical diagnosis", num_examples=100)

Read the full file on GitHub · 1,081 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. 9d ago First seen · 1,081 lines · 48 tokens per session scan A 5cfb8535342f

Subscribe to this mod's changes

dataset-engineering is a skill published in the GitHub repository ScientiaCapital/unsloth-mcp-server (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 48 tokens to every session and 6,185 once invoked, about $0.0002 per session on Opus 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-31.