Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bighardperson avatar

Code Executor

  • 8 installs
  • 33 repo stars
  • Updated April 26, 2026
  • bighardperson/computer-science-skills-collection

code-executor is a skill that lets an agent write and run Python, JavaScript, TypeScript, Bash or SQL code dynamically in a sandbox.

About

code-executor is a skill that lets an agent write and run code dynamically in Python, JavaScript, TypeScript, Bash and SQL. It runs the generated code in a sandbox and returns the result, with environment variables to control timeout, network and filesystem access. A developer uses it for one-off calculations, custom data transformations and quick prototyping when no dedicated skill covers the task.

  • Lets the agent write and run Python, JavaScript, TypeScript, Bash and SQL on the fly
  • Sandbox execution with configurable timeout, network and filesystem controls
  • For one-off calculations, data transforms and quick prototyping when no dedicated skill exists

Code Executor by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #1,522 of 2,719 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
At a glance

code-executor capabilities & compatibility

Capabilities
code execution · sandbox runtime · prototyping
Use cases
debugging · data analysis
Pricing
Free
From the docs

What code-executor says it does

Ejecuta código Python, JavaScript, Bash dinámicamente. El bot puede crear y ejecutar código al vuelo.
SKILL.md
CODE_SANDBOX=true # Ejecutar en sandbox
SKILL.md
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill code-executor

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars33
Last updatedApril 26, 2026
Repositorybighardperson/computer-science-skills-collection

What it does

Have the agent generate and run Python, JavaScript, Bash or SQL in a sandbox for one-off calculations and automations.

Who is it for?

one-off calculations, custom data transformations, and quick prototyping when no dedicated skill exists

When should I use this skill?

the agent needs to run code to solve a task that no existing skill covers

By the numbers

  • 5 supported language runtimes

Files

SKILL.mdMarkdownGitHub ↗

Code Executor (Ejecutor de Código) 🔥

PODER INFINITO. El bot puede escribir y ejecutar código para resolver cualquier problema.

¿Qué Hace?

Si el bot necesita hacer algo que no tiene una skill: 1. Escribe el código necesario 2. Lo ejecuta en un sandbox 3. Retorna el resultado

Comandos

# Ejecutar código directamente
run python "print('Hello World')"
run js "console.log(2+2)"
run bash "ls -la"

# Ejecutar archivo
run ~/script.py
execute ~/automation.js

# El bot decide qué código escribir
solve "calcula el factorial de 100"
compute "genera 10 números primos"

Ejemplo Real

Usuario: calcula cuántos días faltan para mi cumpleaños (15 de marzo)

Bot: ⚡ Necesito calcular esto...

     📝 Código generado:

from datetime import date

today = date.today() birthday = date(today.year, 3, 15)

if birthday < today: birthday = date(today.year + 1, 3, 15)

days = (birthday - today).days print(f"Faltan {days} días para tu cumpleaños")

     
     ⚡ Ejecutando...
     
     ✅ Resultado:
     Faltan 40 días para tu cumpleaños (15 de marzo, 2026)

Resolución de Problemas

Usuario: necesito renombrar 500 archivos agregando la fecha

Bot: ⚡ Generando script...

import os from datetime import datetime

folder = "/ruta/a/archivos" date_str = datetime.now().strftime("%Y%m%d")

for filename in os.listdir(folder): name, ext = os.path.splitext(filename) new_name = f"{date_str}_{name}{ext}" os.rename( os.path.join(folder, filename), os.path.join(folder, new_name) ) print(f"Renamed: {filename} -> {new_name}")

     
     ⚠️ Este script renombrará 500 archivos.
     ¿Ejecutar? [Sí] [Ver preview] [Cancelar]

Lenguajes Soportados

LenguajeRuntime
Pythonpython3
JavaScriptnode
TypeScriptts-node
Bashbash/sh
SQLsqlite3

Modo Interactivo

Usuario: abre un REPL de Python

Bot: ⚡ Python REPL iniciado:

     >>> 
     
Usuario: import math; math.pi

Bot: >>> import math; math.pi
     3.141592653589793
     
Usuario: exit

Bot: ⚡ REPL cerrado

Instalación de Dependencias

Usuario: necesito usar pandas para analizar este CSV

Bot: ⚡ pandas no está instalado
     
     ¿Instalar pandas? [Sí] [No]

Usuario: sí

Bot: ⚡ pip install pandas
     ✅ pandas instalado
     
     Continuando con el análisis...

Seguridad

CODE_SANDBOX=true           # Ejecutar en sandbox
CODE_TIMEOUT=30             # Timeout en segundos
CODE_ALLOW_NETWORK=false    # Bloquear red por defecto
CODE_ALLOW_FILESYSTEM=read  # Solo lectura por defecto
CODE_REQUIRE_CONFIRM=true   # Confirmar antes de ejecutar

Casos de Uso

1. Cálculos complejos que no tiene ninguna skill 2. Transformación de datos personalizada 3. Automatizaciones únicas que no ameritan una skill 4. Prototipado rápido de soluciones 5. Debugging y testing

Related skills

Automation & Workflowsagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.