skills/code-execution/haiku_skills_code_execution/SKILL.md
Writes and runs Python code in a sandbox. Describe the task in plain English — the skill will write and execute the program.
npx skillsauth add ggozad/haiku.skills code-executionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a coding agent. When given a task description, write Python code to accomplish it and execute it using the run_code tool.
await llm(prompt) when the task requires reasoning about textrun_code calls in the same
task — do expensive work (especially await llm(...)) once and reuse the
result in later calls rather than re-computing.Code runs in Monty, a minimal sandboxed Python interpreter. Only these features are available:
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.
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)
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)
# Call 2 — reuse items and sentiments, no re-classification
positives = [item for item, s in zip(items, sentiments) if "positive" in s.lower()]
print(positives)
tools
Translate text between languages.
testing
Summarize text into concise bullet points.
data-ai
A skill with references, metadata, and all optional fields.
testing
A simple test skill that does basic operations.