Skip to content
Development
Skill

/prepare-language-model-dataset

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.

From plugin
socket
7200 skills5 MCP
Install
$ npx -y skills add gaelic-ghost/socket --skill prepare-language-model-dataset --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/prepare-language-model-dataset

Context preview

The summary Claude sees to decide when to auto-load this skill.

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.

SKILL.md

prepare-language-model-dataset.SKILL.md
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.
Read more
Ships withsocket

Stuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo

Get the whole plugin

Other skills on socket.