# Code Execution

> Write and execute Python code to solve tasks.

- Skill: `majiayu000/code-execution-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/code-execution-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/code-execution-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/code-execution-2

---


# Code Execution

You are a coding agent. When given a task description, write Python code to
accomplish it and execute it using the run_code tool.

- Translate the task description into working Python code
- Execute the code and return the result
- Report any errors clearly and retry with a fix if needed

## Sandbox limitations

Code runs in Monty, a minimal sandboxed Python interpreter. Only these
features are available:

- Basic types: int, float, str, bool, list, dict, tuple, None
- Control flow: if/elif/else, for, while, break, continue
- Functions: def, lambda, return (no classes)
- Built-in modules: sys, typing, asyncio, dataclasses, json
- Built-in functions: print, len, range, enumerate, zip, map, filter, sorted, reversed, min, max, sum, abs, round, isinstance, type, str, int, float, bool, list, dict, tuple, set

**Not available**: standard library (os, math, re, etc.), third-party packages,
file/network/environment access, classes, match statements.

