monitor-experiment
Skill75 starsChanged 4 months agoMITView on GitHub
Monitor running experiments, check progress, collect results. Use when user says "check results", "is it done", "monitor", or wants experiment output.
6 other projects use a version of this, 5 of them edited.
Adopted by
Most recently taken up by
- allenai/open-instructtheir own version, first seen Oct 8, 2026
- talhaMah56/claude_skillsedited, first seen Sep 12, 2026
- EarthOnlinePlayer5732/my-skillsedited, first seen Aug 11, 2026
- wanshuiyin/Auto-claude-code-research-in-sleepedited, first seen Jul 15, 2026
- raja21068/AutoResearchedited, first seen May 5, 2026
- Yusong-Enceladus/claude-skillsedited, first seen Mar 18, 2026
Used with
Projects with it also use invention-structuring, jurisdiction-format and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
raja21068Skillinvention-structuring
Structure a raw invention idea into a formal invention disclosure. Use when user says \"构建发明\", \"structure invention\", \"发明构建\", \"invention disclosure\", or wants to formalize a rough idea into a patent-ready structure.
Also in 3 projects that use this
raja21068Skilljurisdiction-format
Compile patent application into jurisdiction-specific filing format. Use when user says \"格式转换\", \"jurisdiction format\", \"国家格式\", \"compile patent\", or wants formatted patent documents for CN/US/EP filing.
Also in 3 projects that use this
- +6 more from raja21068
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- wanshuiyin/Auto-claude-code-research-in-sleep★ 19k81% same
- EarthOnlinePlayer5732/my-skills★ 1781% same
- Yusong-Enceladus/claude-skills★ 881% same
- raja21068/AutoResearch★ 293% same
- talhaMah56/claude_skills★ 081% same
Wrote their own version · 1
- allenai/open-instruct★ 3.9ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository52 other files it gives its agents.
- ablation-plannerSkill
- analyze-resultsSkill
- arxivSkill
- auto-claimSkill
- auto-experimentSkill
- auto-iteration-loopSkill
- autoSkill
- verify-pick-alternativesSkill
- auto-verifySkill
- data-ruleSkill
- experiment-auditSkill
- experiment-planSkill
- experiment-queueSkill
- finetune-hyperparameter-sweepSkill
- imageSkill
- multiple-choice-evaluationSkill
- experiment-tipsSkill
- steering-block-selectionSkill
- steering-coefficient-tuningSkill
- hypothesis-batchSkill
- idea-creatorSkill
- impact-checkSkill
- mechanic-db-searchSkill
- mechanism-auditSkill
- mechanism-behavior-discoverySkill
- mechanism-exploreSkill
- causal-attributionSkill
- CircuitSkill
- Feature Dictionary LearningSkill
- gradient-detectionSkill
- Magnitude AnalysisSkill
- Multi-Modal InterpretabilitySkill
- Neural Feature LearningSkill
- ProbingSkill
- Representation and Parameter AnalysisSkill
- SHAPSkill
- mechanism-skillsSkill
- Vocabulary ProjectionSkill
- mguideSkill
- mhistorySkill
- msearchSkill
- next-roundSkill
- notifySkill
- novelty-checkSkill
- paper-figureSkill
- research-litSkill
- research-refine-pipelineSkill
- research-refineSkill
- research-reviewSkill
- result-to-claimSkill
- run-experimentSkill
- training-checkSkill
The file
We split this skill into the rules it gives an agent
6 rules. 4 are common, 0 are distinctive, and 2 are very specific to this project.
4
Common
Most of the 6 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 46
If hardcopy fails, check for log files or tee output.
- Common: line 53
If JSON results exist, fetch and parse them:
- Very specific: line 121
If cost.json is missing entirely (legacy run launched before this contract was active), write a best-effort version: derive gpu_hours from …
- Common: line 139
Always show raw numbers before interpretation
- Common: line 142
If results look wrong, check training logs for errors before concluding
- Very specific: line 143
Vast.ai cost awareness: When monitoring vast.ai instances, report the running cost (hours * $/hr from vast-instances.json).
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Monitor Experiment Results
Monitor: $ARGUMENTS
Workflow
Step 1: Check What's Running
Queue-batch context (when invoked as part of an
/experiment-queuebatch). If the caller invokes this skill with a job-ID that belongs to an active/experiment-queuebatch, the batch'squeue_state.json(under$REMOTE_RUN_DIR/queue_state.jsonon the SSH host) is the authoritative source for that job'sstatus,started, andcompletedtimestamps — the queue scheduler has already verifiedexpected_outputexists. Phase 3.6 below still runs (it's howcost.jsongets finalized), but Step 1 / 2 / 3 may usequeue_state.jsonto skip thescreen -ls+ log-parsing path for jobs the scheduler has already marked terminal. For standalone use (no active queue), Step 1'sscreen -lsis the canonical check.
SSH server:
ssh <server> "screen -ls"Vast.ai instance (read ssh_host, ssh_port from vast-instances.json):
ssh -p <PORT> root@<HOST> "screen -ls"Also check vast.ai instance status:
vastai show instancesModal (when gpu: modal in CLAUDE.md):
modal app list # List running/recent apps
modal app logs <app> # Stream logs from a running appModal apps auto-terminate when done — if it's not in the list, it already finished. Check results via modal volume ls <volume> or local output.
Step 2: Collect Output from Each Screen
For each screen session, capture the last N lines:
ssh <server> "screen -S <name> -X hardcopy /tmp/screen_<name>.txt && tail -50 /tmp/screen_<name>.txt"If hardcopy fails, check for log files or tee output.
Step 3: Check for JSON Result Files
ssh <server> "ls -lt <results_dir>/*.json 2>/dev/null | head -20"If JSON results exist, fetch and parse them:
ssh <server> "cat <results_dir>/<latest>.json"Step 3.5: Pull W&B Metrics (when wandb: true in CLAUDE.md)
Skip this step entirely if wandb is not set or is false in CLAUDE.md.
Pull training curves and metrics from Weights & Biases via Python API:
# List recent runs in the project
ssh <server> "python3 -c \"
import wandb
api = wandb.Api()
runs = api.runs('<entity>/<project>', per_page=10)
for r in runs:
print(f'{r.id} {r.state} {r.name} {r.summary.get(\"eval/loss\", \"N/A\")}')
\""
# Pull specific metrics from a run (last 50 steps)
ssh <server> "python3 -c \"
import wandb, json
api = wandb.Api()
run = api.run('<entity>/<project>/<run_id>')
history = list(run.scan_history(keys=['train/loss', 'eval/loss', 'eval/ppl', 'train/lr'], page_size=50))
print(json.dumps(history[-10:], indent=2))
\""
# Pull run summary (final metrics)
ssh <server> "python3 -c \"
import wandb, json
api = wandb.Api()
run = api.run('<entity>/<project>/<run_id>')
print(json.dumps(dict(run.summary), indent=2, default=str))
\""What to extract:
- Training loss curve — is it converging? diverging? plateauing?
- Eval metrics — loss, PPL, accuracy at latest checkpoint
- Learning rate — is the schedule behaving as expected?
- GPU memory — any OOM risk?
- Run status — running / finished / crashed?
W&B dashboard link (include in summary for user):
https://wandb.ai/<entity>/<project>/runs/<run_id>This gives the auto-review-loop richer signal than just screen output — training dynamics, loss curves, and metric trends over time.
Step 3.6: Finalize cost manifest (mandatory whenever a run completes)
For every run detected as completed (or failed) in Step 1, finalize its runs/<run-id>/cost.json (/run-experiment Step 5.5 wrote the initial stub with status: running):
- Compute or fetch:
ended_at— UTC ISO 8601 timestamp at which the run terminated (from screen log timestamps, modal API, or the result JSON's writeback time).wall_clock_seconds—ended_at - started_atin seconds (from the cost.json'sstarted_atfield). Round to 1 decimal.gpu_seconds— forgpu_providerin{remote, local, vast}:wall_clock_seconds * len(gpu_ids). Formodal: read from the Modal API's billing record (authoritative) — fall back towall_clock_seconds * <tier_count>only if the API call fails.gpu_hours—gpu_seconds / 3600, rounded to 2 decimals.status—completedon clean exit,failedif the screen log shows a non-zero exit or the result file is missing.
- Rewrite
runs/<run-id>/cost.jsonwith all fields populated (keep thestarted_at/gpu_ids/gpu_providerfrom the initial stub — do not invent new values). - Log
[cost] run=<run-id> wall=<H>h gpu=<H>h status=<status>.
This file is the canonical record consumed by /auto-experiment Phase 5, /auto-iteration-loop Phase C bookkeeping (incrementing runs_total / gpu_hours_total), and /auto-verify budget tracking. Do not let downstream consumers parse free-form deploy logs — they read this file.
If cost.json is missing entirely (legacy run launched before this contract was active), write a best-effort version: derive gpu_hours from screen log start/end timestamps and label the file with "legacy": true so consumers can choose to trust it loosely.
Step 4: Summarize Results
Present results in a comparison table:
| Experiment | Metric | Delta vs Baseline | Status |
|-----------|--------|-------------------|--------|
| Baseline | X.XX | — | done |
| Method A | X.XX | +Y.Y | done |Step 5: Interpret
- Compare against known baselines
- Flag unexpected results (negative delta, NaN, divergence)
- Suggest next steps based on findings
Key Rules
- Always show raw numbers before interpretation
- Compare against the correct baseline (same config)
- Note if experiments are still running (check progress bars, iteration counts)
- If results look wrong, check training logs for errors before concluding
- Vast.ai cost awareness: When monitoring vast.ai instances, report the running cost (hours * $/hr from
vast-instances.json). If all experiments on an instance are done, remind the user to run/vast-gpu destroy <instance_id>to stop billing - Modal cost awareness: Modal auto-scales to zero — no idle billing. When reporting results from Modal runs, note the actual execution time and estimated cost (time * $/hr from the GPU tier used). No cleanup action needed
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

