# python-executor

Runs Python 3.10 scripts inside an isolated inference.sh sandbox. Helpful when your agent needs to crunch data, scrape websites, or render graphics without touching your local system.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 109700 installs · ★ 12
- Author: 101-skills
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/101-skills/superpowers/tree/HEAD/tools/utilities/python-executor/SKILL.md
- Updated: 2026-08-31
- HTML: https://affpapa.org/en/nevibecode/skills/python-executor

## What it does

The skill offloads script execution to an inference.sh container via the `belt` CLI. The sandbox runs Python 3.10 with an execution window between 1 and 300 seconds, defaulting to 30 seconds. The base configuration provides 8GB RAM, while memory-heavy jobs can switch to a 16GB tier.

Over one hundred libraries come pre-installed. The environment bundles data tools like `pandas` and `scipy`, browser automation drivers like `playwright` and `selenium`, alongside media packages like `moviepy` and `trimesh`. Every artifact written to the `outputs/` directory is captured and returned directly to the caller.

This container provides CPU compute only, meaning GPU model training will fail. Interactive GUI displays are unsupported, so scripts must save plots via `plt.savefig()` instead of `plt.show()`. Before executing scripts, you need the `belt` CLI installed and authenticated with `belt login`.

## Requirements
- Works with: Playwright

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill python-executor -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/python-executor/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/python-executor/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill python-executor -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/python-executor/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill python-executor -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/python-executor/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install 101-skills/superpowers python-executor
```

2. **Manually: put the files in place**
- File: `.github/skills/python-executor/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill python-executor -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/101-skills/superpowers --path tools/utilities/python-executor
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/python-executor/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill python-executor -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/101-skills/superpowers/tree/HEAD/tools/utilities/python-executor/SKILL.md

## When to use it
- scrape web pages using Playwright or BeautifulSoup
- generate charts with Matplotlib and export images
- inspect and transform 3D STL meshes with Trimesh
- render short video clips with text overlays via MoviePy

## Example prompts
- Run this scraping script using python-executor and save the titles
- Analyze the sales dataset with Pandas and save a chart to outputs/chart.png
- Generate an icosphere STL file using Trimesh and return the output

## Similar
- [kernel-python-sdk](https://affpapa.org/en/nevibecode/skills/kernel-python-sdk.md) — skill · 353 installs
- [web-scraping](https://affpapa.org/en/nevibecode/skills/web-scraping.md) — skill · 6100 installs
- [browser-automation](https://affpapa.org/en/nevibecode/skills/browser-automation.md) — skill · 636 installs
- [lightpanda-browser](https://affpapa.org/en/nevibecode/skills/lightpanda-browser.md) — skill · 1500 installs
- [playwright-bot-bypass](https://affpapa.org/en/nevibecode/skills/playwright-bot-bypass.md) — skill · 775 installs
- [extract](https://affpapa.org/en/nevibecode/skills/actionbook-extract.md) — skill · 2300 installs

From the same set: [101-skills/superpowers](https://affpapa.org/en/nevibecode/by/101-skills/superpowers.md) — 22 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
