Design experiment

From niznik-dev/cruijff_kit · View interactive version

Design experiment is an AI agent skill from the GitHub repository niznik-dev/cruijff_kit. 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.

How to use this skill

Skill file

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.

Prerequisites Check

Quick existence check — claude.local.md must be present before designing an experiment, because every output path and SLURM default is read from it:

ls -la claude.local.md

If missing, stop and tell the user to run /ck-setup first — that skill walks them through claude.local.md.template interactively. Do not try to write a claude.local.md from this skill.

If claude.local.md is present but you suspect drift (placeholders not filled in, fields that look stale), suggest the user run /ck-setup in validate mode to get a structured health check rather than trying to validate inline here.

Dependency version check

Run before proceeding to catch stale envs (user pulled new pins but didn't re-run pip install -e .):

python scripts/check_env.py

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 location
  2. Understand the experiment (scientific question, variables, and whether tabular-to-text data generation is needed)
  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:

2. Validation → `validation.md`

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

See validation.md for:

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. logs/design-experiment.log - Human-readable audit trail (see logging.md)

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

See experiment_generation.md for:


Cross-Cutting Concerns

Logging → `logging.md`

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

What to log:

Format: Plain text with timestamped action entries

See logging.md for:

Templates → `templates/`

Reference materials for output generation:


Important Reminders


Module Organization

This skill uses the param_selection → validation → generation pattern:

| Module | Purpose |

|--------|---------|

| param_selection.md | 9-step interactive workflow |

| validation.md | Completeness checklist |

| experiment_generation.md | Create YAML and log files |

| logging.md | Plain text audit trail specification |

| templates/experiment_summary.yaml | YAML schema and structure |

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.