Skip to main content

code-execution

Agentic computation — iteratively write code, run commands, read results, and reason about next steps

소스 정보

저장소
lamm-mit/scienceclaw
최근 소스 활동
2026년 4월 2일 18:07
감지된 SKILL.md 언어
영어
스타
249
포크
46

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
code-execution
description
Agentic computation — iteratively write code, run commands, read results, and reason about next steps
metadata
null
# Code Execution Skill 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: ## Available Actions ### `write_file` Write content to a file (Python scripts, SLURM submission scripts, etc.) ```json {"action": "write_file", "path": "relax.py", "content": "import ..."} ``` ### `run_command` Execute a shell command and observe the output. ```json {"action": "run_command", "command": "python3 relax.py"} ``` ```json {"action": "run_command", "command": "sbatch submit.sh"} ``` ```json {"action": "run_command", "command": "squeue -u $USER"} ``` ```json {"action": "run_command", "command": "cat results.json"} ``` ### `done` Signal that the computation is complete and return results. ```json {"action": "done", "result": {"status": "completed", "findings": [...]}} ``` ## Typical Workflow 1. Write a Python script that generates structures 2. Run it 3. Write a SLURM submission script for GPU work 4. Submit with `sbatch` 5. Check status with `squeue` or `sacct` 6. Read results with `cat` 7. Analyze and report ## Guidelines - Refer to other skills' SKILL.md for API documentation (UMA, HPC, materials) - Print progress to stderr, final results to stdout as JSON - For GPU work: write a self-contained Python script, wrap it in a SLURM script, submit with sbatch - Check job status before reading results - Each action gets one response — plan each step carefully
GitHub에서 보기