Agent skill

Python Executor

by cortega26 in cortega26/chile-hub

Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh).

MITAuto-check passedData & Analytics

Install Python Executor

skills CLI
$ npx skills add cortega26/chile-hub --skill python-executor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cortega26/chile-hub python-executor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cortega26/chile-hub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/python-executor .claude/skills/python-executor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
python-executor
GitHub stars
113
Used in
2 other repos
Token cost
~1.5k tokens
SKILL.md length
259 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh).

  • : data processing
  • SKILL.md covers Quick Start, App Details, Input Schema and Pre-installed Libraries, plus 7 more sections
  • Calls npx; reaches api.github.com
  • Image manipulation

What it does

Python Executor is an agent skill from cortega26/chile-hub. Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh). Pre-installed: NumPy, Pandas, Matplotlib, requests, BeautifulSoup, Selenium, Playwright, MoviePy, Pillow, OpenCV, trimesh, and 100+ more libraries. Use for: data processing, web scraping, image manipulation, video creation, 3D model processing, PDF generation, API calls, automation scripts. Triggers: python, execute code, run script, web scraping, data analysis, image processing, video editing, 3D models, automation…

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Data & Analytics, covering DataFrames, 3D graphics and WebGL and Web scraping. It works with Python, Matplotlib, pandas and NumPy. The repository describes itself as: Datos públicos de Chile curados, normalizados y validados: geografía, demografía, economía, salud, educación y distritos electorales. Listos para consumir en una línea de código… The licence is MIT.

When your agent uses it

  • : data processing
  • Image manipulation
  • 3D model processing
  • Automation scripts

Example prompts

  • “/python-executor”

Requirements

  • Python 3
  • Node.js
  • Pre-approved tools (allowed-tools): Bash(belt *)

What it can do on your machine

Read from SKILL.md and the folder at commit a0e6cc1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(belt *)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.github.com

    Also links to:

    • inference.sh
    • cloud.inference.sh
    • raw.githubusercontent.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Python Executor loads about 1.5k tokens when it runs. Until then it costs about 137 tokens; SKILL.md has 259 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~137
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cortega26/chile-hub at commit a0e6cc1, republished under its MIT licence (© cortega26). 259 words, ~1,528 tokens.

Download SKILL.mdSave it as .claude/skills/python-executor/SKILL.md (or your agent's skills folder).
name
python-executor
description
Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh). Pre-installed: NumPy, Pandas, Matplotlib, requests, BeautifulSoup, Selenium, Playwright, MoviePy, Pillow, OpenCV, trimesh, and 100+ more libraries. Use for: data processing, web scraping, image manipulation, video creation, 3D model processing, PDF generation, API calls, automation scripts. Triggers: python, execute code, run script, web scraping, data analysis, image processing, video editing, 3D models, automation, pandas, matplotlib
allowed-tools
Bash(belt *)

Python Code Executor

Execute Python code in a safe, sandboxed environment with 100+ pre-installed libraries.

Image: Python Code Executor

Quick Start

Requires inference.sh CLI (belt). Install instructions

bash
belt login

# Run Python code
belt app run infsh/python-executor --input '{
  "code": "import pandas as pd\nprint(pd.__version__)"
}'

App Details

PropertyValue
App IDinfsh/python-executor
EnvironmentPython 3.10, CPU-only
RAM8GB (default) / 16GB (high_memory)
Timeout1-300 seconds (default: 30)

Input Schema

json
{
  "code": "print('Hello World!')",
  "timeout": 30,
  "capture_output": true,
  "working_dir": null
}

Pre-installed Libraries

Web Scraping & HTTP
  • requests, httpx, aiohttp - HTTP clients
  • beautifulsoup4, lxml - HTML/XML parsing
  • selenium, playwright - Browser automation
  • scrapy - Web scraping framework
Data Processing
  • numpy, pandas, scipy - Numerical computing
  • matplotlib, seaborn, plotly - Visualization
Image Processing
  • pillow, opencv-python-headless - Image manipulation
  • scikit-image, imageio - Image algorithms
Video & Audio
  • moviepy - Video editing
  • av (PyAV), ffmpeg-python - Video processing
  • pydub - Audio manipulation
3D Processing
  • trimesh, open3d - 3D mesh processing
  • numpy-stl, meshio, pyvista - 3D file formats
Documents & Graphics
  • svgwrite, cairosvg - SVG creation
  • reportlab, pypdf2 - PDF generation

Examples

Web Scraping
bash
belt app run infsh/python-executor --input '{
  "code": "import requests\nfrom bs4 import BeautifulSoup\n\nresponse = requests.get(\"https://example.com\")\nsoup = BeautifulSoup(response.content, \"html.parser\")\nprint(soup.find(\"title\").text)"
}'
Data Analysis with Visualization
bash
belt app run infsh/python-executor --input '{
  "code": "import pandas as pd\nimport matplotlib.pyplot as plt\n\ndata = {\"name\": [\"Alice\", \"Bob\"], \"sales\": [100, 150]}\ndf = pd.DataFrame(data)\n\nplt.bar(df[\"name\"], df[\"sales\"])\nplt.savefig(\"outputs/chart.png\")\nprint(\"Chart saved!\")"
}'
Image Processing
bash
belt app run infsh/python-executor --input '{
  "code": "from PIL import Image\nimport numpy as np\n\n# Create gradient image\narr = np.linspace(0, 255, 256*256, dtype=np.uint8).reshape(256, 256)\nimg = Image.fromarray(arr, mode=\"L\")\nimg.save(\"outputs/gradient.png\")\nprint(\"Image created!\")"
}'
Video Creation
bash
belt app run infsh/python-executor --input '{
  "code": "from moviepy.editor import ColorClip, TextClip, CompositeVideoClip\n\nclip = ColorClip(size=(640, 480), color=(0, 100, 200), duration=3)\ntxt = TextClip(\"Hello!\", fontsize=70, color=\"white\").set_position(\"center\").set_duration(3)\nvideo = CompositeVideoClip([clip, txt])\nvideo.write_videofile(\"outputs/hello.mp4\", fps=24)\nprint(\"Video created!\")",
  "timeout": 120
}'
3D Model Processing
bash
belt app run infsh/python-executor --input '{
  "code": "import trimesh\n\nsphere = trimesh.creation.icosphere(subdivisions=3, radius=1.0)\nsphere.export(\"outputs/sphere.stl\")\nprint(f\"Created sphere with {len(sphere.vertices)} vertices\")"
}'
API Calls
bash
belt app run infsh/python-executor --input '{
  "code": "import requests\nimport json\n\nresponse = requests.get(\"https://api.github.com/users/octocat\")\ndata = response.json()\nprint(json.dumps(data, indent=2))"
}'

File Output

Files saved to outputs/ are automatically returned:

python
# These files will be in the response
plt.savefig('outputs/chart.png')
df.to_csv('outputs/data.csv')
video.write_videofile('outputs/video.mp4')
mesh.export('outputs/model.stl')

Variants

bash
# Default (8GB RAM)
belt app run infsh/python-executor --input input.json

# High memory (16GB RAM) for large datasets
belt app run infsh/python-executor@high_memory --input input.json

Use Cases

  • Web scraping - Extract data from websites
  • Data analysis - Process and visualize datasets
  • Image manipulation - Resize, crop, composite images
  • Video creation - Generate videos with text overlays
  • 3D processing - Load, transform, export 3D models
  • API integration - Call external APIs
  • PDF generation - Create reports and documents
  • Automation - Run any Python script

Important Notes

  • CPU-only - No GPU/ML libraries (use dedicated AI apps for that)
  • Safe execution - Runs in isolated subprocess
  • Non-interactive - Use plt.savefig() not plt.show()
  • File detection - Output files are auto-detected and returned
bash
# AI image generation (for ML-based images)
npx skills add inference-sh/skills@ai-image-generation

# AI video generation (for ML-based videos)
npx skills add inference-sh/skills@ai-video-generation

# LLM models (for text generation)
npx skills add inference-sh/skills@llm-models

Documentation

© cortega26, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/python-executor of cortega26/chile-hub.

Open the folder on GitHubat commit a0e6cc1

Used in 2 other repositories

We found 18 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in cortega26/chile-hub, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Python Executor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Python Executor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Python Executor this skillcortega26/chile-hub1132 repos~1.5kAutomated safety check: PassMIT
Hybrid-Engine Data Analysiscode-yeongyu/oh-my-openagent70k—~1.4kAutomated safety check: PassCustom licence
Analytics Data AnalysisMindrally/skills267—~1.6kAutomated safety check: PassApache-2.0
Vaex Out-of-Core DataFramesdavila7/claude-code-templates32k12 repos~1.6kAutomated safety check: PassMIT
SeabornK-Dense-AI/scientific-agent-skills48k1 repos~3.4kAutomated safety check: NotesBSD-3-Clause
Owid Catalogowid/etl158—~2.3kAutomated safety check: PassMIT

Similar skills

  • Hybrid-Engine Data Analysis

    code-yeongyu/oh-my-openagent

    Analyzes CSV, Parquet and JSON data with DuckDB, Polars, numpy and matplotlib, preferring a persistent kernel over repeated one-shot processes.

    70k GitHub stars~1.4k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Analytics Data Analysis

    Mindrally/skills

    Best practices for analytics, data analysis, and visualization using Python, pandas, matplotlib, seaborn, and Jupyter notebooks.

    267 GitHub stars~1.6k tokensUpdated 1 mo ago
    Data & AnalyticsAuto-check passed
  • Vaex Out-of-Core DataFrames

    davila7/claude-code-templates

    Processes tabular datasets too large for RAM with Vaex: lazy DataFrames, fast aggregations, big-data plots and ML pipelines over CSV, HDF5, Arrow and Parquet.

    32k GitHub starsUsed in 12 repos~1.6k tokens
    Data & AnalyticsAuto-check passed
  • Seaborn

    K-Dense-AI/scientific-agent-skills

    Creates Seaborn statistical visualizations with pandas integration for distributions, relationships, categorical comparisons, regression displays, pair plots, and heatmaps.

    48k GitHub starsUsed in 1 repo~3.4k tokens
    Data & AnalyticsAuto-check: notes
  • Owid Catalog

    owid/etl

    Access Our World in Data from Python with the owid-catalog library: load chart data, catalog tables or individual indicators as pandas DataFrames that carry their own units, descriptions, sources…

    158 GitHub stars~2.3k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Seaborn

    aipoch/medical-research-skills

    Statistical visualization library integrated with pandas; use it when you need fast EDA of distributions, relationships, and categorical comparisons (e.g., box/violin/pair plots and heatmaps) with…

    2k GitHub stars~2.1k tokensUpdated 20 days ago
    Data & AnalyticsAuto-check passed

Questions about Python Executor

What does Python Executor do?

Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh). Python Executor is an agent skill from cortega26/chile-hub.sh).

When should I use Python Executor?

Python Executor fits situations like: : data processing; image manipulation; 3D model processing; automation scripts.

How do I install Python Executor in Claude Code?

Run `npx skills add cortega26/chile-hub --skill python-executor -a claude-code`. Or copy the skill folder (.agents/skills/python-executor in cortega26/chile-hub) into .claude/skills/python-executor in your project. Claude Code loads it when a task matches its description.

How do I install Python Executor in Codex?

Run `npx skills add cortega26/chile-hub --skill python-executor -a codex`. Or copy the skill folder (.agents/skills/python-executor in cortega26/chile-hub) into .agents/skills/python-executor in your project. Codex loads it when a task matches its description.

Can I use Python Executor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cortega26/chile-hub --skill python-executor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/python-executor, .gemini/skills/python-executor, .github/skills/python-executor and .opencode/skills/python-executor in your project.

What does Python Executor need to run?

Going by SKILL.md and its folder, Python Executor needs the command-line tools its instructions call (npx). Our summary lists: Python 3; Node.js. Its frontmatter pre-approves these tools: Bash(belt *).

Does Python Executor access the network?

SKILL.md names 4 domains. In commands or code: api.github.com; the agent is likely to contact it when it follows the instructions. As links in the text: inference.sh, cloud.inference.sh and raw.githubusercontent.com. This is read from the text; nothing was executed.

Is Python Executor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Python Executor use?

Python Executor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Python Executor use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Python Executor?

Skills that share tags, products or a category with Python Executor: Hybrid-Engine Data Analysis (code-yeongyu/oh-my-openagent, 70k stars), Analytics Data Analysis (Mindrally/skills, 267 stars), Vaex Out-of-Core DataFrames (davila7/claude-code-templates, 32k stars) and Seaborn (K-Dense-AI/scientific-agent-skills, 48k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Python Executor?

cortega26 (a GitHub user) maintains it in cortega26/chile-hub, which has 113 GitHub stars. The repository was last updated on October 6, 2026.

Source: cortega26/chile-hub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.