{
  "schemaVersion": "1.0",
  "item": {
    "slug": "code-executor",
    "name": "Code Executor",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/miguelguerra200022-sudo/code-executor",
    "canonicalUrl": "https://clawhub.ai/miguelguerra200022-sudo/code-executor",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/code-executor",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=code-executor",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/code-executor"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/code-executor",
    "agentPageUrl": "https://openagent3.xyz/skills/code-executor/agent",
    "manifestUrl": "https://openagent3.xyz/skills/code-executor/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/code-executor/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Code Executor (Ejecutor de Código) 🔥",
        "body": "PODER INFINITO. El bot puede escribir y ejecutar código para resolver cualquier problema."
      },
      {
        "title": "¿Qué Hace?",
        "body": "Si el bot necesita hacer algo que no tiene una skill:\n\nEscribe el código necesario\nLo ejecuta en un sandbox\nRetorna el resultado"
      },
      {
        "title": "Comandos",
        "body": "# Ejecutar código directamente\nrun python \"print('Hello World')\"\nrun js \"console.log(2+2)\"\nrun bash \"ls -la\"\n\n# Ejecutar archivo\nrun ~/script.py\nexecute ~/automation.js\n\n# El bot decide qué código escribir\nsolve \"calcula el factorial de 100\"\ncompute \"genera 10 números primos\""
      },
      {
        "title": "Ejemplo Real",
        "body": "Usuario: calcula cuántos días faltan para mi cumpleaños (15 de marzo)\n\nBot: ⚡ Necesito calcular esto...\n\n     📝 Código generado:\n     ```python\n     from datetime import date\n     \n     today = date.today()\n     birthday = date(today.year, 3, 15)\n     \n     if birthday < today:\n         birthday = date(today.year + 1, 3, 15)\n     \n     days = (birthday - today).days\n     print(f\"Faltan {days} días para tu cumpleaños\")\n     ```\n     \n     ⚡ Ejecutando...\n     \n     ✅ Resultado:\n     Faltan 40 días para tu cumpleaños (15 de marzo, 2026)"
      },
      {
        "title": "Resolución de Problemas",
        "body": "Usuario: necesito renombrar 500 archivos agregando la fecha\n\nBot: ⚡ Generando script...\n\n     ```python\n     import os\n     from datetime import datetime\n     \n     folder = \"/ruta/a/archivos\"\n     date_str = datetime.now().strftime(\"%Y%m%d\")\n     \n     for filename in os.listdir(folder):\n         name, ext = os.path.splitext(filename)\n         new_name = f\"{date_str}_{name}{ext}\"\n         os.rename(\n             os.path.join(folder, filename),\n             os.path.join(folder, new_name)\n         )\n         print(f\"Renamed: {filename} -> {new_name}\")\n     ```\n     \n     ⚠️ Este script renombrará 500 archivos.\n     ¿Ejecutar? [Sí] [Ver preview] [Cancelar]"
      },
      {
        "title": "Lenguajes Soportados",
        "body": "LenguajeRuntimePythonpython3JavaScriptnodeTypeScriptts-nodeBashbash/shSQLsqlite3"
      },
      {
        "title": "Modo Interactivo",
        "body": "Usuario: abre un REPL de Python\n\nBot: ⚡ Python REPL iniciado:\n\n     >>> \n     \nUsuario: import math; math.pi\n\nBot: >>> import math; math.pi\n     3.141592653589793\n     \nUsuario: exit\n\nBot: ⚡ REPL cerrado"
      },
      {
        "title": "Instalación de Dependencias",
        "body": "Usuario: necesito usar pandas para analizar este CSV\n\nBot: ⚡ pandas no está instalado\n     \n     ¿Instalar pandas? [Sí] [No]\n\nUsuario: sí\n\nBot: ⚡ pip install pandas\n     ✅ pandas instalado\n     \n     Continuando con el análisis..."
      },
      {
        "title": "Seguridad",
        "body": "CODE_SANDBOX=true           # Ejecutar en sandbox\nCODE_TIMEOUT=30             # Timeout en segundos\nCODE_ALLOW_NETWORK=false    # Bloquear red por defecto\nCODE_ALLOW_FILESYSTEM=read  # Solo lectura por defecto\nCODE_REQUIRE_CONFIRM=true   # Confirmar antes de ejecutar"
      },
      {
        "title": "Casos de Uso",
        "body": "Cálculos complejos que no tiene ninguna skill\nTransformación de datos personalizada\nAutomatizaciones únicas que no ameritan una skill\nPrototipado rápido de soluciones\nDebugging y testing"
      }
    ],
    "body": "Code Executor (Ejecutor de Código) 🔥\n\nPODER INFINITO. El bot puede escribir y ejecutar código para resolver cualquier problema.\n\n¿Qué Hace?\n\nSi el bot necesita hacer algo que no tiene una skill:\n\nEscribe el código necesario\nLo ejecuta en un sandbox\nRetorna el resultado\nComandos\n# Ejecutar código directamente\nrun python \"print('Hello World')\"\nrun js \"console.log(2+2)\"\nrun bash \"ls -la\"\n\n# Ejecutar archivo\nrun ~/script.py\nexecute ~/automation.js\n\n# El bot decide qué código escribir\nsolve \"calcula el factorial de 100\"\ncompute \"genera 10 números primos\"\n\nEjemplo Real\nUsuario: calcula cuántos días faltan para mi cumpleaños (15 de marzo)\n\nBot: ⚡ Necesito calcular esto...\n\n     📝 Código generado:\n     ```python\n     from datetime import date\n     \n     today = date.today()\n     birthday = date(today.year, 3, 15)\n     \n     if birthday < today:\n         birthday = date(today.year + 1, 3, 15)\n     \n     days = (birthday - today).days\n     print(f\"Faltan {days} días para tu cumpleaños\")\n     ```\n     \n     ⚡ Ejecutando...\n     \n     ✅ Resultado:\n     Faltan 40 días para tu cumpleaños (15 de marzo, 2026)\n\nResolución de Problemas\nUsuario: necesito renombrar 500 archivos agregando la fecha\n\nBot: ⚡ Generando script...\n\n     ```python\n     import os\n     from datetime import datetime\n     \n     folder = \"/ruta/a/archivos\"\n     date_str = datetime.now().strftime(\"%Y%m%d\")\n     \n     for filename in os.listdir(folder):\n         name, ext = os.path.splitext(filename)\n         new_name = f\"{date_str}_{name}{ext}\"\n         os.rename(\n             os.path.join(folder, filename),\n             os.path.join(folder, new_name)\n         )\n         print(f\"Renamed: {filename} -> {new_name}\")\n     ```\n     \n     ⚠️ Este script renombrará 500 archivos.\n     ¿Ejecutar? [Sí] [Ver preview] [Cancelar]\n\nLenguajes Soportados\nLenguaje\tRuntime\nPython\tpython3\nJavaScript\tnode\nTypeScript\tts-node\nBash\tbash/sh\nSQL\tsqlite3\nModo Interactivo\nUsuario: abre un REPL de Python\n\nBot: ⚡ Python REPL iniciado:\n\n     >>> \n     \nUsuario: import math; math.pi\n\nBot: >>> import math; math.pi\n     3.141592653589793\n     \nUsuario: exit\n\nBot: ⚡ REPL cerrado\n\nInstalación de Dependencias\nUsuario: necesito usar pandas para analizar este CSV\n\nBot: ⚡ pandas no está instalado\n     \n     ¿Instalar pandas? [Sí] [No]\n\nUsuario: sí\n\nBot: ⚡ pip install pandas\n     ✅ pandas instalado\n     \n     Continuando con el análisis...\n\nSeguridad\nCODE_SANDBOX=true           # Ejecutar en sandbox\nCODE_TIMEOUT=30             # Timeout en segundos\nCODE_ALLOW_NETWORK=false    # Bloquear red por defecto\nCODE_ALLOW_FILESYSTEM=read  # Solo lectura por defecto\nCODE_REQUIRE_CONFIRM=true   # Confirmar antes de ejecutar\n\nCasos de Uso\nCálculos complejos que no tiene ninguna skill\nTransformación de datos personalizada\nAutomatizaciones únicas que no ameritan una skill\nPrototipado rápido de soluciones\nDebugging y testing"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/miguelguerra200022-sudo/code-executor",
    "publisherUrl": "https://clawhub.ai/miguelguerra200022-sudo/code-executor",
    "owner": "miguelguerra200022-sudo",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/code-executor",
    "downloadUrl": "https://openagent3.xyz/downloads/code-executor",
    "agentUrl": "https://openagent3.xyz/skills/code-executor/agent",
    "manifestUrl": "https://openagent3.xyz/skills/code-executor/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/code-executor/agent.md"
  }
}