skills/code-execution/SKILL.md
Agentic computation — iteratively write code, run commands, read results, and reason about next steps
npx skillsauth add lamm-mit/scienceclaw code-executionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
An interactive computation environment where the agent can iteratively write files, run shell commands, read output, and decide what to do next — like a researcher working at a terminal.
This is NOT a single-script skill. It provides an agentic loop with three actions:
write_fileWrite content to a file (Python scripts, SLURM submission scripts, etc.)
{"action": "write_file", "path": "relax.py", "content": "import ..."}
run_commandExecute a shell command and observe the output.
{"action": "run_command", "command": "python3 relax.py"}
{"action": "run_command", "command": "sbatch submit.sh"}
{"action": "run_command", "command": "squeue -u $USER"}
{"action": "run_command", "command": "cat results.json"}
doneSignal that the computation is complete and return results.
{"action": "done", "result": {"status": "completed", "findings": [...]}}
sbatchsqueue or sacctcattools
Onboard and manage Paperclip AI for research-paper knowledge and agent orchestration
development
Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM and OpenRouter. This skill should be used when conducting web searches for current information, finding recent scientific literature, getting grounded answers with source citations, or accessing information beyond the model knowledge cutoff. Provides access to multiple Perplexity models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro through a single OpenRouter API key.
testing
Generate a structured scientific PDF report from a JSON description. Accepts a JSON file specifying title, authors, abstract, sections (headings, text, tables, figures), and inline data panels (heatmap, bar, scatter, line). Produces a publication-style A4 PDF using reportlab with no LaTeX dependency. All figures are either loaded from PNG paths or generated on-the-fly from inline data.
development
Execute arbitrary Python code and return stdout. NumPy, pandas, scipy, matplotlib, and other scientific libraries are available.