ai-co-scientist
Transform Claude Code into an AI Scientist that orchestrates research workflows using tree-based hypothesis exploration. Triggers…
Guidelines for creating high-quality datasets for LLM post-training (SFT/DPO/RLHF). Use when preparing data for fine-tuning, evaluating data quality, or designing data collection strategies.
$ npx -y skills add sundial-org/skills --skill training-data-curation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/training-data-curationContext preview
The summary Claude sees to decide when to auto-load this skill.
Guidelines for creating high-quality datasets for LLM post-training (SFT/DPO/RLHF). Use when preparing data for fine-tuning, evaluating data quality, or designing data collection strategies.
name: training-data-curation description: Guidelines for creating high-quality datasets for LLM post-training (SFT/DPO/RLHF). Use when preparing data for fine-tuning, evaluating data quality, or designing data collection strategies.
Best practices for gathering and preparing training data for LLM fine-tuning.
**Quality over quantity.** Llama 2 used only 27,540 high-quality SFT examples and outperformed models trained on larger noisy datasets [[1]](#references). Focus on clean, diverse, well-formatted data.
**Garbage in, garbage out.** The model will learn patterns from your data—including errors, biases, and formatting issues. Inspect samples manually before training.
**Match the target distribution.** Training data should reflect the tasks and style you want the model to perform. If you want formal responses, don't train on casual chat data.
Use the **messages format** (OpenAI/Anthropic/Tinker standard) [[5]](#references):
{"messages": [{"role": "user", "content": "..."}, {"role": "assistant", "content": "..."}]}Requires **paired comparisons** [[2]](#references):
{"prompt": "...", "chosen": "...", "rejected": "..."}For KTO, pairs aren't required—just binary labels on completions [[7]](#references):
{"prompt": "...", "completion": "...", "label": true/false}Needs **ranked responses** [[1]](#references):
{"prompt": "...", "responses": ["best", "second", "worst"]}Before training, verify:
| Issue | Detection | Fix | Source | |-------|-----------|-----|--------| | Duplicates | Hash-based dedup | Remove exact matches, MinHash for near-dupes | [[3]](#references) | | Boilerplate | Keyword filter | Remove "subscribe", "cookie policy", etc. | [[8]](#references) | | Repetitive text | N-gram analysis | Flag if <30% unique trigrams | [[4]](#references) | | Low-quality text | Alpha ratio | Remove if <50% alphabetic characters | [[8]](#references) | | Wrong language | Language detection | fastText classifier, filter to target | [[3]](#references) | | Too short | Length check | Minimum 3-5 sentences, 100+ words for documents | [[8]](#references) |
**High quality:**
**Medium quality:**
**Use with caution:**
| Dataset Size | Use Case | Source | |--------------|----------|--------| | 100-1K | Quick experiments, specific behaviors | — | | 1K-10K | Production SFT, domain adaptation | — | | 10K-100K | Comprehensive instruction tuning | [[1]](#references) | | 1M+ preference pairs | Large-scale RLHF | [[1]](#references) |
Llama 2 used ~27K SFT examples and 1M+ preference comparisons [[1]](#references).
1. [Llama 2 Paper](https://arxiv.org/abs/2307.09288) — Touvron et al. (2023). SFT/RLHF data quality practices, 27K SFT examples, >70% annotator agreement threshold 2. [TRL Library](https://huggingface.co/docs/trl/) — HuggingFace trainer implementations for SFT, DPO, KTO, ORPO 3. [FineWeb Paper](https://arxiv.org/abs/2406.17557) — Penedo et al. (2024). Large-scale filtering: MinHash dedup, language detection, quality classifiers 4. [Data-Juicer](https://github.com/alibaba/data-juicer) — Alibaba's quality filtering toolkit with repetition filters, n-gram analysis 5. [Tinker API](https://tinker-docs.thinkingmachines.ai/) — Training API using messages format for SFT, DPO/RLHF support 6. [Data Provenance Initiative](https://arxiv.org/abs/2310.16787) — Longpre et al. (2023). Dataset licensing and attribution audit 7. [KTO Paper](https://arxiv.org/abs/2402.01306) — Ethayarajh et al. (2024). Binary preference learning without pairs 8. [C4/T5 Paper](https://arxiv.org/abs/1910.10683) — Raffel et al. (2020). Foundational filtering: terminal punctuation, min sentences, alpha ratio, boilerplate removal
The skill skill can help you find, improve, and publish skills — install it with npx sundial-hub add skill. You'll be able to peruse this library of curated skills, plus 50,000+ more aggregated from the web.
Transform Claude Code into an AI Scientist that orchestrates research workflows using tree-based hypothesis exploration. Triggers…
Run OpenAI's Codex CLI agent in non-interactive mode using `codex exec`. Use when delegating coding tasks to Codex, running Codex…
Split large sets of uncommitted changes into logical, well-organized commits. Use when the user has many uncommitted changes and…
Conduct a literature review and develop a CS research proposal. Use when asked to review a research area, find gaps in existing…
Paper reviewer that evaluates machine learning research projects following official ICML reviewer guidelines. Provides…
Neuro-symbolic AI combining LLMs with symbolic solvers. Use when exploring neuro-symbolic approaches (ideation, no code) or…