بنقرة واحدة
code-reproducer
Automate paper reproduction on remote GPU servers via mcp-ssh, using code-analyzer's reports.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Automate paper reproduction on remote GPU servers via mcp-ssh, using code-analyzer's reports.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Beamer LaTeX slide workflow: create, compile, review, and polish academic presentations. Use this skill whenever the user works on Beamer .tex slide decks, or asks to create slides, make a presentation, prepare a lecture, build a talk, or generate Beamer slides from a paper. Covers: creation, editing, compilation, proofreading, visual audit, pedagogical review, TikZ diagrams, figure extraction, and comprehensive quality checks. Trigger on: beamer, slides, lecture, presentation, seminar talk, conference talk, defense slides, tikz, compile latex, proofread slides, slide review, 讨论班, 论文讲解. Do NOT trigger on: powerpoint, pptx, PPT, 做PPT — use the powerpoint-slides skill instead.
Compare reproduced results against paper-reported values. Generate Markdown/JSON/Beamer reports.
Deep analysis of ML source code repositories — AST call graphs, training loop dissection, reproducibility scoring.
Generate implementation code scaffolding from paper descriptions when no source code exists.
Convert LaTeX math formulas from papers into executable PyTorch/NumPy code.
Prepare structured presentation materials from parsed papers for beamer-skill's create workflow.
| name | code-reproducer |
| description | Automate paper reproduction on remote GPU servers via mcp-ssh, using code-analyzer's reports. |
Automate the full reproduction of a research paper's experiments on remote GPU servers. This skill reads the analysis report from code-analyzer and executes the reproduction plan via mcp-ssh.
code-analyzer (analysis) → code-reproducer (this skill) → mcp-ssh (SSH)
└── code_analysis.json └── Reads analysis report └── SSH connection
├── Framework ├── Environment setup ├── Command execution
├── Training scripts ├── Training execution ├── File upload/download
├── Configs ├── Progress monitoring ├── tmux sessions
└── Reproduction plan └── Result downloading └── Persistent sessions
code_analysis.json)git clone https://github.com/shuakami/mcp-ssh.git && cd mcp-ssh && npm install && npm run buildmcp.json)Run the code-analyzer skill first:
python code-analyzer/analyze.py workspace/<paper>/code/<repo>/ -o workspace/<paper>/code_analysis.json
This produces a comprehensive JSON report containing framework detection, AST call graph, training loop analysis, reproducibility score, and a step-by-step reproduction plan. See code-analyzer/SKILL.md for full details.
First-time setup — ask the user these questions:
Then use mcp-ssh to:
echo "Connected" and nvidia-smitmux new-session -d -s repromkdir -p ~/reproduce/<project>ls -la ~/reproduce/<project>/Based on code_analysis.json, execute the appropriate commands IN the tmux session:
For conda + requirements.txt:
tmux send-keys -t repro "conda create -n repro_<project> python=3.10 -y" Enter
# Wait for completion, then:
tmux send-keys -t repro "conda activate repro_<project>" Enter
tmux send-keys -t repro "cd ~/reproduce/<project> && pip install -r requirements.txt" Enter
For environment.yml:
tmux send-keys -t repro "conda env create -f ~/reproduce/<project>/environment.yml -n repro_<project>" Enter
For Docker:
tmux send-keys -t repro "cd ~/reproduce/<project> && docker build -t repro ." Enter
After setup, verify:
# For PyTorch
python -c "import torch; print(f'CUDA: {torch.cuda.is_available()}, GPUs: {torch.cuda.device_count()}')"
# For TensorFlow
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
[!IMPORTANT] Always use tmux for training. This ensures the training continues even if the SSH session drops.
tmux send-keys -t repro "cd ~/reproduce/<project>" Enter
tmux send-keys -t repro "python <training_script> <args> 2>&1 | tee training.log" Enter
code_analysis.json → reproduction_plan:
[!TIP] For long training runs: After starting training, wait/sleep for a reasonable interval (e.g., 10-30 minutes for quick tests, 1-2 hours for full training), then check progress.
Check progress via mcp-ssh:
# Get latest log lines
tmux capture-pane -t repro -p | tail -20
# Or check the log file
tail -20 ~/reproduce/<project>/training.log
# Check if process is still running
ps aux | grep python | grep train
# Check GPU usage
nvidia-smi
What to look for:
Error recovery: If training fails:
After training completes:
find ~/reproduce/<project> -name "*.pt" -o -name "*.pth" -o -name "*.ckpt" -o -name "*.png" -o -name "*.csv" -o -name "*.log" | head -30
Download result files via mcp-ssh to local:
Save to workspace/<paper>/results/
Tell the user:
| Problem | Solution |
|---|---|
| CUDA version mismatch | Check nvcc --version and install matching PyTorch |
| OOM (Out of Memory) | Reduce batch size, enable gradient checkpointing |
| Missing data | Check README for dataset download instructions |
| Deprecated API calls | Check the paper's publication year, install matching lib versions |
| Training too slow | Verify GPU is being used: nvidia-smi during training |
| tmux session lost | tmux ls to list sessions, tmux attach -t repro to reattach |
| Permission denied | chmod +x <script> or check directory permissions |