This generates and refines ML experiment code for research papers, handling the full cycle from initial implementation to debugging and plotting. It enforces a specific structure with separate run directories, JSON logging, and mandatory visualization outputs. The iterative improvement loop is interesting: it reads results, reflects on what worked, makes targeted edits, and keeps the best variant. Works with PyTorch or scikit-learn, explicitly avoids placeholder code, and includes safeguards like verifying your accuracy isn't accidentally zero. Best for when you're implementing experiments and need something more structured than ad-hoc scripting but don't want to set up a full MLOps pipeline.

skills.sh installs
1.6K
GitHub stars
459
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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/
└── ...

Sponsors

Details

Repository
github.com/lingzhi227/agent-research-skills
Categories
AI & Agent Building, Data Science & ML, Debugging
First seen
Jun 3, 2026

More from lingzhi227/agent-research-skills

All 31
1auth0 avatarauth0-nextjsauth0/agent-skillsUse when adding Auth0 login, logout, protected pages, or middleware to a Next.js application. Supports App Router and Pages Router with @auth0/nextjs-auth0 — us1.6Kskills.sh installs
2github avatardotnet-timezonegithub/awesome-copilot.NET timezone handling guidance for C# applications. Use when working with TimeZoneInfo, DateTimeOffset, NodaTime, UTC conversion, daylight saving time, schedul1.6Kskills.sh installs
3figma avatarfigma-create-design-system-rulesfigma/mcp-server-guideGenerates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design r1.6Kskills.sh installs
4github avatargtm-board-and-investor-communicationgithub/awesome-copilotBoard meeting preparation, investor updates, and executive communication. Use when preparing board decks, writing investor updates, handling bad news with the b1.6Kskills.sh installs
5github avatarquality-playbookgithub/awesome-copilotRun a complete quality engineering audit on any codebase. Derives behavioral requirements from the code, generates spec-traced functional tests, runs a three-pa1.6Kskills.sh installs
6github avatargtm-partnership-architecturegithub/awesome-copilotBuild and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing co-1.6Kskills.sh installs