Skip to content
design-experiment logo

Design Experiment

design-experiment

Plan LLM fine-tuning and evaluation experiments. Use when the user wants to design a new experiment, plan training runs, or create an experiment_summary.yaml file.

SKILL.md

Full skill instructions

Design Experiment

You help users plan experiments for fine-tuning and evaluating LLMs. Create a plan that specifies the complete workflow from training through evaluation, verifies resources, and documents all steps in a structured YAML configuration.

Your Task

Guide the user through designing their experiment by asking questions, verifying resources, and creating a comprehensive experiment_summary.yaml file that documents the complete plan.

Workflow

Follow the three-stage process:

1. Parameter Selection → param_selection.md

Guide the user through 9 interactive steps to gather all experiment parameters:

  1. Determine experiment purpose and location (workflow test vs research experiment)
  2. Understand the experiment (scientific question, variables)
  3. Confirm tool choices (torchtune for preparation, inspect-ai for evaluation)
  4. Design training runs (models, datasets, hyperparameters)
  5. Design evaluation runs (tasks, epochs, evaluation matrix)
  6. Establish naming (experiment name, run names)
  7. Verify resources (models, datasets, eval scripts exist)
  8. Get approval (validate first, then present)
  9. Create files (proceed to generation stage)

See param_selection.md for:

  • Complete question flow for each step
  • Auto-detection logic for experiment location
  • Resource verification commands
  • Conversation patterns

2. Validation → validation.md

Before presenting plan to user (step 8), validate completeness:

  • ✓ All YAML sections present and properly structured
  • ✓ All run names follow convention
  • ✓ All parameters documented (variables and controls)
  • ✓ Evaluation plan is consistent (0-indexed epochs, base vs fine-tuned)
  • ✓ System prompt matches between training and evaluation (critical!)
  • ✓ All resources verified (or noted as prerequisites)

See validation.md for:

  • Complete validation checklist
  • Common issues to check
  • How to handle missing prerequisites

3. Experiment Generation → experiment_generation.md

After user approves, create output files:

  1. experiment_summary.yaml - Structured experiment configuration (use templates/​experiment_summary.yaml)
  2. design-experiment.jsonl - Machine-readable audit trail (see logging.md)

Then ask about next steps (scaffold-experiment?).

See experiment_generation.md for:

  • File creation instructions
  • YAML formatting guidance
  • Next steps conversation pattern
  • Prerequisites handling

Cross-Cutting Concerns

Logging → logging.md

IMPORTANT: Throughout param_selection and generation, create detailed log at {experiment_dir}/​design-experiment.jsonl.

What to log:

  • ✓ Resource verification (ls, du, df commands and results)
  • ✓ Prior run searches (if performed)
  • ✓ Decisions (naming, recipe, configuration)
  • ✓ File creation

Format: JSON Lines (.jsonl) - one JSON object per line

See logging.md for:

  • Complete log format specification
  • All action types with schemas
  • Example entries for each action type
  • When to log during workflow

Templates → templates/

Reference materials for output generation:

  • templates/​experiment_summary.yaml - YAML schema and structure for experiment plan

Important Reminders

  • Use paths from claude.local.md for models, datasets, scratch directories
  • Always verify resources exist before finalizing plan (log all verification)
  • System prompt consistency is critical - must match between training and evaluation for inspect-ai
  • Epochs are 0-indexed - Use [0, 1, 2] in evaluation matrix
  • Base models use epochs: null, fine-tuned models use epochs: [0, 1]
  • Document tool choices in YAML - torchtune for training, inspect-ai for evaluation
  • Handle missing resources gracefully - note as prerequisites, don't block the plan
  • If inspect-ai task doesn't exist - note that create-inspect-task skill should be run first
  • Generate YAML, not Markdown - Use structured YAML format with proper indentation

Module Organization

This skill uses the param_selection → validation → generation pattern:

ModulePurposeLines
param_selection.md9-step interactive workflow~340
validation.mdCompleteness checklist~140
experiment_generation.mdCreate YAML and JSONL files~125
logging.mdJSONL audit trail specification~400
templates/​experiment_summary.yamlYAML schema and structure~150

Pattern: Three action verbs (selection, validation, generation) matching scaffold/​run skills, plus cross-cutting logging and templates.

See README.md for: Complete pattern documentation and rationale.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View