Experiment Coding Stage 6
Turn frozen research plans into reproducible, auditable experiment code with data leak prevention.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/light-experiment-coding-light0305/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Use in the experiment-coding stage of research — turns a frozen research plan into reproducible, auditable experiment code with data-leak checks.
What this skill does
This skill transforms a frozen research plan into reproducible, auditable experiment code with strict data-leak prevention. Rather than writing a working notebook, the goal is to implement the upstream frozen plan line-by-line into code that is falsifiable, re-runnable, and fully auditable. The core priorities are: preserve the research question unchanged; prevent evaluation information from leaking into training; ensure reproducibility with fixed environment and seed; retain raw evidence for downstream result analysis to recalculate; and keep code clean only insofar as it serves these constraints.
What it does
- Establishes a minimal runnable project using the provided scaffold:
pyproject.toml,uv.lock, configuration schemas, data/model/metric interfaces, and reproducibility helpers. - Implements test-first validation with gold tests, property tests, metamorphic tests, and train-only-fit tests before writing preprocessing, training, or evaluation logic.
- Enforces holdout and cross-validation leakage prevention: splits before fitting, uses sklearn
Pipelinefor grouped preprocessing per fold, and blocks data leakage across train/test boundaries. - Controls randomness systematically by separating fixed-seed reproducibility runs from multi-seed randomness estimation, covering all RNG sources (Python hash seed, NumPy, framework, CUDA, cuDNN, deterministic algorithms).
- Preserves raw run bundles using
light.run_manifest.v3: config snapshots, code commit/hash, data SHA256, environment details, stdout/stderr, per-fold metrics, entity-level predictions, and test evidence for every matrix row × config × seed × attempt. - Applies gating checkpoints via
experiment_execution_contract.py,review_gate.py,seed_audit.py, andrepro_gate.pyto verify scope, frozen budget, failure-tree binding, reproducibility level, and remote authorization before handoff to result analysis.
How to use it
Invoke this skill at the experiment-coding stage after the research plan is frozen. You provide the frozen research plan, experiment matrix, pre-registration, failure-tree report, data lineage with split IDs and leakage evidence, and result-analysis consumption contract. The skill reads and hashes all frozen inputs, then implements the plan into code that passes test-first validation, data-leak checks, reproducibility gates, and produces verifiable raw-run bundles with full provenance for downstream analysis.
Related skills
Documentation Co-Authoring
anthropics
Guide structured workflows for writing docs, proposals, and technical specs collaboratively.
MCP Server Builder
anthropics
Build protocol servers that connect language models to external APIs and services.
Skill Builder & Optimizer
anthropics
Create, edit, and optimize Claude skills with performance testing and benchmarking.
Multi-Component Web Artifacts
anthropics
Build complex React artifacts with Tailwind CSS and shadcn/ui components.