code-interpreter

A tool for testing and prototyping code in a sandboxed environment. Used for debugging, verifying logic, or installing packages.

Last repository push
GitHub Stars
203
Forks
61
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "code-interpreter" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e77bb21e18e18d9525e05539b3c415e90972f73b0d5f3953f059efbb4ec765fe. Verify the upstream source and version against https://github.com/aws-samples/sample-strands-agent-with-agentcore before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A tool for testing and prototyping code in a sandboxed environment. Used for debugging, verifying logic, or installing packages.

0 Downloads

Introduction source: third_party · aws-samples · 0.0.1 Reference

SkillPi interpretation

Tasks
Skill for running custom Python code scripts safely inside an isolated sandbox environment.
Limits and differences
**No Direct Internet / URL Access**: The sandbox environment does NOT have outbound internet access (`urllib`, `requests`, `curl`, and `wget` will 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**: 1. First, download the file to the local host using `cloud_storage__download_from_storage` (for storage files) or `http_fetcher__download_public_file` (for presigned/public URLs). 2. Next, upload the downloaded file into the sandbox using `sandbox_file_manager__upload_sandbox_file` with the local path returned by the download step. 3. Only after the file is uploaded to the sandbox,
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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:
        - code

Code 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, and wget will 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:
    1. First, download the file to the local host using cloud_storage__download_from_storage (for storage files) or http_fetcher__download_public_file (for presigned/public URLs).
    2. Next, upload the downloaded file into the sandbox using sandbox_file_manager__upload_sandbox_file with the local path returned by the download step.
    3. 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") or pypdf.PdfReader("filename.pdf")).
    4. 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 using cloud_storage__upload_to_storage, and return the generated storage link.
  • Environment Variables: Do NOT query, read, or search for system environment variables (e.g. via os.environ or os.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_file or created them during your execution.

Version history

  1. v1.0.0 GitHub ↗
    Original release notes

    Initial release with demo video

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供沙盒 Python 代码执行能力,适用于调试、验证逻辑、安装软件包等明确场景
  • 属于通用工具,受众广泛,实用价值高
Trigger Precision90/100

Highlights

  • description 明确说明用途,触发词清晰,边界合理
Structure and Standards90/100

Highlights

  • 有清晰的使用说明、约束条件和文件处理流程
  • frontmatter 完整,结构良好
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确
  • 覆盖主要异常,不可逆操作有确认机制
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 30

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.