Agent skill · DevOps & Cloud

run-experiment

Deploy and run ML experiments on local, remote, Vast.ai, or Modal serverless GPU. Use when user says "run experiment", "deploy to server", "跑实验", or needs to launch training jobs.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill run-experiment --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 12 KB
Bundled scripts: none
Allowed tools: Bash(*)ReadGrepGlobEditWriteAgentSkill(serverless-modal)
Path: skills/ai-ml/run-experiment/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Run Experiment Deploy and run ML experiment: $ARGUMENTS ## Workflow ### Step 1: Detect Environment Read the project's `CLAUDE.md` to determine the experiment environment: - **Local GPU** (`gpu: local`): Look for local CUDA/MPS setup info - **Remote server** (`gpu: remote`): Look for SSH alias, conda env, code directory - **Vast.ai** (`gpu: vast`): Check for `vast-instances.json` at project root — if a running instance exists, use it. Also check `CLAUDE.md` for a `## Vast.ai` section. - **Modal** (`gpu: modal`): Serverless GPU via Modal. No SSH, no Docker, auto scale-to-zero. Delegate to `/serverless-modal`. **Modal detection:** If `CLAUDE.md` has `gpu: modal` or a `## Modal` section, the entire deployment is handled by `/serverless-modal`. Jump to **Step 4: Deploy (Modal)** — Steps 2-3 are not needed (Modal handles code sync and GPU allocation automatically). **Vast.ai detection priority:** 1. If `CLAUDE.md` has `gpu: vast` or a `## Vast.ai` section: - If `vast-instances.json` exists and has a running instance → use that instance - If no running instance → call `/vast-gpu provision` which analyzes the task, presents cost-optimized GPU options, and rents the user's choice 2. If no

What's inside
Steps it walks through
  1. Workflow
  2. Step 1: Detect Environment
  3. Step 2: Pre-flight Check
  4. Step 3: Sync Code (Remote Only)
  5. Step 3.5: W&B Integration (when wandb: true in CLAUDE.md)
  6. Step 4: Deploy
  7. Step 5: Verify Launch
  8. Step 6: Feishu Notification (if configured)
  9. Step 7: Auto-Destroy Vast.ai Instance (when gpu: vast and autodestroy: true)
  10. Key Rules
  11. CLAUDE.md Example
Ships with 1 file
  • metadata.json
Commands it runs
ssh <server> nvidia-smi --query-gpu=index,memory.used,memory.total --format=csv,noheader
ssh -p <PORT> root@<HOST> nvidia-smi --query-gpu=index,memory.used,memory.total --format=csv,noheader
nvidia-smi --query-gpu=index,memory.used,memory.total --format=csv,noheader
or for Mac MPS:
python -c "import torch; print('MPS available:', torch.backends.mps.is_available())"
rsync -avz --include='*.py' --exclude='*' <local_src>/ <server>:<remote_dst>/
git add -A && git commit -m "sync: experiment deployment" && git push
ssh <server> "cd <remote_dst> && git pull"
rsync -avz -e "ssh -p <PORT>" \
scp -P <PORT> requirements.txt root@<HOST>:/workspace/
More from claude-skill-registry
All skills →
About this skill
What does the run-experiment skill do?

Deploy and run ML experiments on local, remote, Vast.ai, or Modal serverless GPU. Use when user says "run experiment", "deploy to server", "跑实验", or needs to launch training jobs.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill run-experiment --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going