data-rule

Defines dataset provenance, split, label, and sample-size constraints for experiments.

75|7|Updated May 2, 2026
One-click install
npx skills add https://github.com/zjunlp/Mechanist --skill data-rule-zjunlp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-rule
Source: https://github.com/zjunlp/Mechanist/tree/main/skills/data-rule
Command: npx skills add https://github.com/zjunlp/Mechanist --skill data-rule-zjunlp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Experiments often fail because of inconsistent or leaky data practices: unclear dataset provenance, train/test leakage, proxy labels that miss the target behavior, or sample sizes too small to trust. This Skill centralizes every data constraint an experiment must satisfy so results are valid and comparable across methods and milestones. ## Core Features & Use Cases - Provenance Rules: Enforces a preference order of existing, then adapted, then constructed datasets, and requires recording which was used. - Split and Label Integrity: Mandates explicit train/validation/test splits with deduplication and group-based separation, plus labels grounded in the dataset rather than another model's output. - Sample Size Floors: Sets minimum effective sample sizes — at least 50 examples for inference-time mechanism exploration or intervention, and roughly 100 for tuning or editing — unless the user specifies an amount. - Use Case: When designing a mechanistic interpretability experiment (e.g., steering coefficient sweeps), apply this Skill to guarantee each coefficient setting is evaluated on at least 50 held-out examples with no leakage. ## Quick Start Apply the data-rule skill to define the dataset, splits, labels, and minimum sample size for my mechanism exploration experiment.

Frequently Asked Questions about data-rule

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose a dataset for a mechanism exploration experiment?

Prefer an existing dataset that directly tests the target behavior, then adapt one via relabeling or filtering if none fits, and construct your own only as a last resort. Record which of the three provenance types was used.

What is the minimum sample size for an intervention experiment?

Inference-time mechanism exploration or intervention requires at least 50 examples per run, including preliminary sweeps such as steering coefficient searches. Tuning or weight editing requires on the order of hundreds of examples, at least roughly 100.

How should train, validation, and test splits be created?

Partition data into explicit train, validation, and test sets with deduplication and group- or entity-based splitting so near-duplicates cannot cross boundaries. Never evaluate a probe or classifier on data it was fit on.

Can I use another model's output as ground truth labels?

No. Labels must reflect the actual target behavior and ground truth must come from the dataset itself, never from another model's output, to avoid validating against a loose proxy.

Does the data rule apply differently to early milestones like M0?

No. Use one consistent dataset across all methods and milestones, including M0 phenomenon validation. Do not special-case data per method or per phase.