code-interpreter
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "code-interpreter":https://skillpi.com/zh/skills/deepskill-e77bb21e18e18d9525e05539b3c415e90972f73b0d5f3953f059efbb4ec765fe。安装前核对上游来源和版本:https://github.com/aws-samples/sample-strands-agent-with-agentcore。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在沙盒环境中测试与编写原型代码的工具。用于调试、验证逻辑或安装软件包。
介绍来源: third_party · aws-samples · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 限制与区别
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: code_interpreter
description: Skill for running custom Python code scripts safely inside an isolated sandbox environment.
tools:
- name: execute_python_code
description: Execute custom Python code inside the sandbox environment and return output.
type: code
parameters:
type: object
properties:
code:
type: string
description: Python code to run in sandbox.
required:
- codeCode Interpreter Skill
Use this skill only if other skills or tools do not have the answer.
Use this skill when users request mathematical calculations, data processing, string formatting, algorithms, or complex logic that benefits from running Python code in a sandbox and cannot be solved using any other specialized tool.
⚠️ Sandbox Constraints & External File Access
- No Direct Internet / URL Access: The sandbox environment does NOT have outbound internet access (
urllib,requests,curl, andwgetwill fail with tunnel or network errors). You CANNOT download files directly inside Python code from external URLs or storage URLs. - Handling Files from Storage or URLs:
- First, download the file to the local host using
cloud_storage__download_from_storage(for storage files) orhttp_fetcher__download_public_file(for presigned/public URLs). - Next, upload the downloaded file into the sandbox using
sandbox_file_manager__upload_sandbox_filewith the local path returned by the download step. - Only after the file is uploaded to the sandbox, execute Python code to open and process it directly from the local directory (e.g.
open("filename.pdf")orpypdf.PdfReader("filename.pdf")). - If your Python code generates an output file to share with the user, download it from the sandbox using
sandbox_file_manager__download_sandbox_file, upload it to cloud storage usingcloud_storage__upload_to_storage, and return the generated storage link.
- First, download the file to the local host using
- Environment Variables: Do NOT query, read, or search for system environment variables (e.g. via
os.environoros.getenv). Credentials should only be passed explicitly via input arguments if required. - Workspace Files: Files only exist in the sandbox workspace if you uploaded them using
sandbox_file_manager__upload_sandbox_fileor created them during your execution.
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供沙盒 Python 代码执行能力,适用于调试、验证逻辑、安装软件包等明确场景
- 属于通用工具,受众广泛,实用价值高
亮点
- description 明确说明用途,触发词清晰,边界合理
亮点
- 有清晰的使用说明、约束条件和文件处理流程
- frontmatter 完整,结构良好
亮点
- 工具来源明确,参数正确
- 覆盖主要异常,不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 30 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。