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.
npx skills add majiayu000/claude-skill-registry --skill run-experiment --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Workflow
- Step 1: Detect Environment
- Step 2: Pre-flight Check
- Step 3: Sync Code (Remote Only)
- Step 3.5: W&B Integration (when wandb: true in CLAUDE.md)
- Step 4: Deploy
- Step 5: Verify Launch
- Step 6: Feishu Notification (if configured)
- Step 7: Auto-Destroy Vast.ai Instance (when gpu: vast and autodestroy: true)
- Key Rules
- CLAUDE.md Example
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/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.
