# Execute Code

> Execute code safely using RLM Runtime with Docker isolation when you need to run tests, validate implementations, or execute complex computations. Use when the user asks to run code, test implementations, or when you need to verify code behavior. Use when this capability is needed.

- Skill: `tomevault-io/execute-code` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/execute-code`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/execute-code/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/execute-code

---


When you need to execute code safely:

1. Check if RLM Runtime is installed:
   - Run: `which rlm` or `rlm --version`
   - If not found, suggest: `pip install rlm-runtime[all]`

2. For safe execution, use Docker environment:
   - `rlm run --env docker "Your task here"`
   - Docker provides isolation from host system

3. For quick local execution (trusted code only):
   - `rlm run "Your task here"`

4. Common patterns:
   - **Run tests**: `rlm run --env docker "Run pytest for the authentication module"`
   - **Validate code**: `rlm run --env docker "Check if the API endpoint returns valid JSON"`
   - **Complex computation**: `rlm run --env docker "Parse logs and extract top 5 error messages"`

5. View execution logs:
   - `rlm logs` - See recent executions
   - `rlm visualize` - Launch interactive trajectory viewer

**When to use:**
- User asks to "run tests", "execute code", "validate implementation"
- You need to verify code behavior before suggesting changes
- Complex data processing or computation needed
- Running potentially unsafe user code (always use Docker)

**When NOT to use:**
- Simple code review or explanation
- Reading or editing files (use Read/Edit tools instead)
- git operations (use Bash tool instead)

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/snipara) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-14 -->

