python-executor
在安全的沙盒中執行 Python 任務
Également disponible depuis: skillssh,inference-sh-9,inferen-sh
在不同環境中執行資料、網頁和媒體任務的 Python 程式碼時,安全性是一大挑戰。此技能會在受管制的沙盒環境中執行程式碼,並提供常用函式庫和檔案輸出功能。
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "python-executor". User asks for a bar chart from a two column sales table.
Résultat attendu:
Returns a confirmation message and an image file named outputs/chart.png.
Utilisation de "python-executor". User requests a quick scrape of a public page title.
Résultat attendu:
Responds with the extracted title and a short log of the request.
Utilisation de "python-executor". User wants a CSV summary from a small dataset.
Résultat attendu:
Provides a summary line and a file named outputs/summary.csv.
Audit de sécurité
Risque moyenDocumentation includes shell command examples for installing and running the CLI, including a pipe to shell installer. These are instructional and not executed by the skill itself, but they warrant caution. Network and crypto related flags appear to be documentation references without malicious intent.
Problèmes à risque moyen (1)
Problèmes à risque faible (4)
Facteurs de risque
⚙️ Commandes externes (56)
🌐 Accès réseau (9)
Motifs détectés
Score de qualité
Ce que vous pouvez construire
分析小型資料集
建立表格和圖表,並回傳檔案供審查。
驗證擷取邏輯
取得頁面並擷取特定欄位以供報告使用。
產生示範素材
為產品演示產生圖片或短影片。
Essayez ces prompts
Execute Python to print the pandas version and return stdout only.
Fetch https://example.com and return the page title as plain text.
Build a small bar chart from sample data and save it to outputs/chart.png.
Use the high_memory variant, read a CSV, summarize key metrics, and save outputs/summary.csv.
Bonnes pratiques
- Describe inputs, outputs, and file names explicitly.
- Write artifacts to outputs/ so they are returned automatically.
- Keep network requests limited to trusted domains.
Éviter
- Requesting interactive plots or GUI output.
- Running jobs that exceed the timeout window.
- Asking to install new system packages inside the sandbox.