python-executor
在安全沙盒中运行 Python 任务
Également disponible depuis: skillssh,inference-sh-skills,inferen-sh,infsh-skills,inference-sh-9,inference-skills
当环境差异较大时,在数据、网络和媒体任务中安全地运行 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". 用户要求从两列销售表中生成柱状图。
Résultat attendu:
返回确认消息和名为 outputs/chart.png 的图像文件。
Utilisation de "python-executor". 用户请求快速抓取公共页面的标题。
Résultat attendu:
返回提取的标题和请求的简要日志。
Utilisation de "python-executor". 用户希望从小型数据集生成 CSV 摘要。
Résultat attendu:
提供摘要行和名为 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
执行 Python 以打印 pandas 版本,并仅返回标准输出。
获取 https://example.com 并将页面标题作为纯文本返回。
使用示例数据构建小型柱状图并将其保存到 outputs/chart.png。
使用 high_memory 变体,读取 CSV,汇总关键指标,并保存 outputs/summary.csv。
Bonnes pratiques
- 明确描述输入、输出和文件名。
- 将工件写入 outputs/ 以便自动返回。
- 将网络请求限制在可信域名范围内。
Éviter
- 请求交互式图表或 GUI 输出。
- 运行超出超时窗口的任务。
- 要求在沙盒内安装新的系统包。