Code Execution Skills

Skills for running code and shell commands via artifacts and execute_shell in the Daytona sandbox

/api/skills/code

1 Skill

execute_code

Run Python code and shell commands safely in a sandboxed environment for data processing, automation, and scripting tasks

/api/skills/code/execute_code
Skill python Unlocks 8 tools
Content Type
Static (Markdown)
Language
python
Widgets
n/a

Unlocks Tools

These tools become available when this skill is activated:

write_artifactread_artifactlist_artifactsgrep_artifactsedit_artifactexecute_shellfetch_documentsearch_documents

Trigger Keywords

codescriptexecutesandboxpythonbashshellartifacts

Instructions Preview

# Code Execution Skill Use this skill whenever you need to run custom code in the Daytona sandbox. This skill **replaces the legacy `execute_code` tool**. All code execution now happens via: - scripts stored as artifacts under `scripts/`, and - the `execute_shell` tool, using its `command` field to run those scripts. The **canonical pattern** is: 1. **Write scripts as artifacts** under `scripts/` (via `write_artifact`). 2. **Write inputs as artifacts** under `files/` (via `write_artifact`) or pull them from Vertesia with `fetch_document`. 3. **Run scripts via `execute_shell`** in a bash shell by setting the `command` field (for example, `python /home/daytona/scripts/analyze.py`). 4. **Prefer writing outputs to `/home/daytona/out/`** so they become `out/*` artifacts and can be reused across steps instead of returning large raw text in tool results. Avoid relying on ad-hoc inline code execution where possible; scripts in artifacts are easier to inspect, patch, and reuse. --- ## ...