Code Execution

Writes and runs Python code in a sandbox. Describe the task in plain English — the skill will write and execute the program.

9 stars 4 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add ggozad/haiku.skills --skill code-execution
Manual install
git clone --depth 1 https://github.com/ggozad/haiku.skills.git /tmp/haiku.skills
mkdir -p ~/.claude/skills
cp -r /tmp/haiku.skills/skills/code-execution/haiku_skills_code_execution ~/.claude/skills/code-execution

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 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
- Use `await llm(prompt)` when the task requires reasoning about text
- Execute the code and return the result
- Report any errors clearly and retry with a fix if needed
- Variables and definitions persist across `run_code` calls in the same
  task — do expensive work (especially `await llm(...)`) once and reuse the
  result in later calls rather than re-computing.

## Sandbox

Code runs in Monty, a minimal sandboxed Python interpreter. Only these
features are available:

- Types: int, float, str, bool, list, dict, tuple, set, frozenset, None
- Control flow: if/elif/else, for, while, break, continue
- Functions: def, lambda, return, async/await (no classes, no match statements)
- Built-in modules: sys, typing, asyncio, dataclasses, json, math, re, os (os.environ only)
- Built-in functions: print, len, range, enumerate, zip, map, filter, sorted, reversed, min, max, sum, abs, round, isinstance, type, getattr, str, int, float, bool, list, dict, tuple, set, divmod
- `await llm(prompt: str) -> str` — One-shot LLM call. Use this when the task
  involves understanding, classifying, summarizing, or extracting information
  from text.

**Not available**: classes, match statements, context managers, generators,
Read the full skill on GitHub

Details

Skill name
code-execution
Path
skills/code-execution/haiku_skills_code_execution/SKILL.md
License
MIT
Repo updated
18 September 2026

FAQ

What does the Code Execution skill do?

Writes and runs Python code in a sandbox. Describe the task in plain English — the skill will write and execute the program.

How do I install the Code Execution skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add ggozad/haiku.skills --skill code-execution. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Code Execution popular?

It lives in ggozad/haiku.skills, which has 9 GitHub stars and 4 forks.

Related skills

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.