Skip to content

Iterative ML experiment code generator for research papers, covering generate, improve, debug, and plot actions.

CCM score
43 of 100
skills.sh installs
1.7K
GitHub stars
483
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the generate, improve, debug, and plot actions for writing and refining training and evaluation pipelines
  • Requires a planned list of runs, a mandatory experiment.py, plot.py, notes.txt, and per-run final_info.json output
  • Enforces self-contained code with no placeholder stubs, real datasets, PyTorch or scikit-learn only, and seeded reproducibility
  • Designed for research papers, with links to experiment-design, data-analysis, and code-debugging companion skills

Install

$ npx -y skills add lingzhi227/agent-research-skills --skill experiment-code -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Experiment Code

Generate and iteratively improve ML experiment code for research papers.

Input

  • $0 — Task: generate, improve, debug, plot
  • $1 — Research plan, idea description, or error message

References

  • Experiment prompts and patterns: ~/.claude/skills/experiment-code/references/experiment-prompts.md
  • Code patterns (error handling, repair, hill-climbing): ~/.claude/skills/experiment-code/references/code-patterns.md

Action: generate

Generate initial experiment code following this structure:

  1. Plan experiments first — List all runs needed (hyperparameter sweeps, ablations, baselines)
  2. Write self-contained code — All code in project directory, no external imports from reference repos
  3. Include proper logging — Save results to JSON, print intermediate metrics
  4. Generate figures — At minimum Figure_1.png and Figure_2.png

Mandatory Structure

project/
├── experiment.py      # Main experiment script
├── plot.py            # Visualization script
├── notes.txt          # Experiment descriptions and results
├── run_1/             # Results from run 1
│   └── final_info.json
├── run_2/
└── ...

Details

Repository
github.com/lingzhi227/agent-research-skills
Categories
Data Science & Analytics, Research & Academic
First seen
Jun 3, 2026

More from lingzhi227/agent-research-skills

All 31

Similar to Experiment Code

More Data Science & Analytics