python_exec

Execute Python code in an isolated subprocess with timeout protection.

Updated Dec 30, 2025
One-click install
npx skills add https://github.com/landonking-gif/King-ai-v2 --skill python-exec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python_exec
Source: https://github.com/landonking-gif/King-ai-v2/tree/main/references/agentic-framework-main/code-exec/skills/code_execution/python_exec
Command: npx skills add https://github.com/landonking-gif/King-ai-v2 --skill python-exec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python>=3.11, python-docx>=1.1.0, openpyxl>=3.1.0, pandas>=2.0.0, matplotlib>=3.8.0, reportlab>=4.0.0, Pillow>=10.0.0.

What problem does it solve?

Execute Python code in an isolated subprocess with timeout protection, enabling calculations, document generation, and data processing.

Core Features & Use Cases

  • Isolation and timeout protection for safe execution
  • Generate binary documents (Word, Excel, PDF) and visuals
  • Perform calculations and data transformations
  • Support multi-step research workflows with intermediate results

Quick Start

Provide Python code via the code field and an optional timeout_seconds to run. The tool returns stdout, stderr, and a return value from the last expression when available.