code-execution

code-execution is a skill for Claude Code, Codex from ggozad/haiku.skills. It costs 29 tokens per session (610 once invoked), scanned A, original, MIT.

A sandboxed workflow that writes and runs Python code from a plain-language task description.

In plain words
What is it for?
Use it for Python programs that process data, automate a task, or need language-model reasoning through an available llm function.
Why use it?
It lets you solve a coding task and test the result while reporting errors and retrying when needed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for Python programs that process data, automate a task, or need language-model reasoning through an available llm function.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ggozad/haiku.skills/haiku_skills_code_execution
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ggozad/haiku.skills --skill haiku_skills_code_execution
Clone the repo
git clone --depth 1 https://github.com/ggozad/haiku.skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-execution

README.md
[![agentmods](https://agentmods.dev/badge/skills/ggozad/haiku.skills/haiku_skills_code_execution/github.svg)](https://agentmods.dev/skills/ggozad/haiku.skills/haiku_skills_code_execution)
Your own site
<a href="https://agentmods.dev/skills/ggozad/haiku.skills/haiku_skills_code_execution"><img src="https://agentmods.dev/badge/skills/ggozad/haiku.skills/haiku_skills_code_execution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-execution

Your own site · 80×15
<a href="https://agentmods.dev/skills/ggozad/haiku.skills/haiku_skills_code_execution"><img src="https://agentmods.dev/badge/skills/ggozad/haiku.skills/haiku_skills_code_execution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 610 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00610
Opus 5 $0.00015 $0.00305
Sonnet 5 $0.00006 $0.00122
Haiku 4.5 $0.00003 $0.00061

Measured 10d ago against content hash cfffe5034db4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

code-execution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (__init__.py, sandbox.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/code-execution/haiku_skills_code_execution/SKILL.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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, most standard library modules, third-party packages, file/network access.

Example

items = ["The food was great!", "Terrible service.", "Okay experience."]
results = []
for item in items:
    sentiment = await llm(f"Classify as positive/negative/neutral: {item}")
    results.append({"text": item, "sentiment": sentiment})
print(results)

Splitting across calls

Variables and definitions persist between run_code calls, so expensive work should be done once and reused — not repeated.

# Call 1 — classify once
items = ["The food was great!", "Terrible service.", "Okay experience."]
sentiments = [await llm(f"positive/negative/neutral: {item}") for item in items]
print(sentiments)

Read the full file on GitHub · 64 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 64 lines · 29 tokens per session scan A cfffe5034db4

Subscribe to this mod's changes

code-execution is a skill published in the GitHub repository ggozad/haiku.skills (9 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 610 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.