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
9200 skills5 MCP

Claude Code

$ npx -y skills add gaelic-ghost/socket --skill prepare-language-model-dataset --agent claude-code

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
@gaelic-ghost
Ships withsocket

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

9200 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of gaelic-ghost/socket on GitHub, a chart by star-history.com

Other skills on socket.

orchestrate-agent-work

orchestrate-agent-work

Coordinate bounded worker tasks with a launch envelope, report-back, escalation, and synthesis contract. Use before spawning,…

@gaelic-ghost@gaelic-ghostInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about prepare-language-model-dataset.

Which coding agents can use prepare-language-model-dataset?
prepare-language-model-dataset installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.