Prepare language-model training, preference, red-team, or evaluation datasets. Use when collecting, filtering, deduplicating, templating, splitting, or auditing examples for provenance, leakage, consent, or sensitive data.
Scanned 9/5/2026
Install to Claude Code
npx -y skills add gaelic-ghost/socket --skill prepare-language-model-dataset --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Prepare Language Model Dataset?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/gaelic-ghost-prepare-language-model-dataset-socket)More formats (shields.io, HTML) on the badges page.
---
name: prepare-language-model-dataset
description: Prepare language-model training, preference, red-team, or evaluation datasets. Use when collecting, filtering, deduplicating, templating, splitting, or auditing examples for provenance, leakage, consent, or sensitive data.
---
# Prepare Language Model Dataset
## Workflow
1. Define the dataset's task, unit of observation, schema, and intended use.
- SFT: ordered messages or prompt/response with explicit loss-mask semantics.
- Preference optimization: prompt/context plus `chosen` and `rejected` responses from the same comparison unit.
- Reward modeling: response or response pair plus label, score, ranking provenance, and annotator agreement.
- Synthetic data: generator model/revision, prompt, sampling settings, filters, and parent-record lineage.
- Adversarial/red-team data: target policy, attack family, authorization, severity, and safe retention boundary.
- Evaluation fixtures: stable case ID, inputs, expected behavior, grader, tags, and strict separation from training.
2. Record every source, revision, retrieval date, license, consent basis, and transformation.
3. Validate parseability and required fields before semantic filtering.
4. Normalize text and chat templates without erasing distinctions the task needs.
5. Remove secrets and unapproved personal or sensitive data before logging or upload.
6. Deduplicate before splitting. Use content hashes plus near-duplicate analysis where paraphrases matter.
7. Split by contamination boundary—document, conversation, author, repository, or time—not merely by row.
8. Search train data for evaluation overlap and record the matching method and threshold.
9. Measure language, length, label, source, safety, and quality distributions for every split.
10. Copy `assets/dataset-card.md` and document exclusions, known biases, and redistribution limits.
11. Freeze a versioned artifact or deterministic build recipe and record checksums.
## Acceptance Gates
- Every example is traceable to a source or a documented synthetic generator.
- Train, validation, and test boundaries match the leakage model.
- The tokenizer and chat template used for length checks match the intended model.
- Rejected records and filter counts are retained without retaining removed secrets.
- A human can reconstruct the released split from the documented inputs and transformations.
## Resources
- `assets/dataset-card.md`: dataset provenance and quality template.
- `references/dataset-controls.md`: split, leakage, and sensitive-data controls.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!