Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Sandbox

БесплатноЗапускает вложенные скриптыНе проверен

Provides read_file/write_file/exec/list_files/read_file/write_file for running process and managing filesystems in the sandbox. Ideal for code testing, file…

wecode-aiот wecode-ai★ 897 звёзд на GitHub

Об этом скилле

Sandbox Environment

Execute code, commands, and complex tasks securely in isolated Docker containers running AlmaLinux 9.4.

Core Capabilities

The sandbox environment provides fully isolated execution spaces with:

  1. Command Execution - Run shell commands, scripts, and programs
  2. File Operations - Read/write files, browse directories, manage filesystems
  3. Code Execution - Safely execute and test code
  4. Claude AI Tasks - Available for advanced use cases when explicitly requested by users
  5. Attachment Upload/Download - Upload generated files to Wegent for user download, or download user attachments for processing

When to Use

Use this skill when you need to:

  • ✅ Execute shell commands or scripts
  • ✅ Run and test code
  • ✅ Read, write, or manage files
  • ✅ Perform multi-step programming tasks
  • ✅ Git operations (clone, commit, push, etc.)
  • ✅ Require isolated environment for safety

Note: The sub_claude_agent tool should only be used when the user explicitly requests Claude AI assistance (e.g., "use Claude to generate...", "ask Claude to create...").

Available Tools

Command Execution

exec

Execute shell commands in the sandbox environment.

Use Cases:

  • Run single commands or scripts
  • Directory operations (create, delete, move)
  • Install dependencies, run tests
  • View system information

Parameters:

  • command (required): Shell command to execute
  • working_dir (optional): Working directory path
  • timeout (optional): Timeout in seconds

Example:

{
  "name": "exec",
  "arguments": {
    "command": "python script.py --arg value",
    "working_dir": "/home/user/project"
  }
}

sub_claude_agent

Run Claude AI to execute complex tasks in the sandbox.

⚠️ IMPORTANT: This tool should only be used when the user explicitly requests it. Do not use this tool automatically or as a default option.

Use Cases:

  • When user explicitly asks to use Claude (e.g., "use Claude to generate...", "ask Claude to create...")
  • Generate presentations and Word documents (when specifically requested)
  • Create code projects (when specifically requested)
  • Complex multi-step programming tasks (when specifically requested)

Parameters:

  • prompt (required): Task description for Claude
  • allowed_tools (optional): List of tools Claude can use
  • append_system_prompt (optional): Additional system prompt
  • timeout (optional): Timeout in seconds (minimum: 600 seconds / 10 minutes, default: 1800 seconds / 30 minutes)

Features:

  • ⚡ Real-time streaming output
  • 🔧 Customizable tool sets
  • 📊 WebSocket progress updates

Example:

{
  "name": "sub_claude_agent",
  "arguments": {
    "prompt": "Create a 5-page presentation about the history of artificial intelligence",
    "allowed_tools": "Edit,Write,Bash(*),skills,Read"
  }
}

File Operations

list_files

List files and subdirectories in a directory.

Parameters:

  • path (required): Directory path
  • depth (optional): Recursion depth, default 1

Returns:

  • File metadata including name, size, permissions, modification time

Example:

{
  "name": "list_files",
  "arguments": {
    "path": "/home/user/project",
    "depth": 2
  }
}

read_file

Read file contents.

Parameters:

  • file_path (required): File path to read

Limits:

  • Maximum file size: 1MB (configurable)

Example:

{
  "name": "read_file",
  "arguments": {
    "file_path": "/home/user/config.json"
  }
}

write_file

Write content to a file.

⚠️ IMPORTANT: Both file_path AND content are REQUIRED parameters. You must always provide the content to write.

Parameters:

  • file_path (REQUIRED): File path to write
  • content (REQUIRED): Content to write (MUST be provided, cannot be omitted)
  • format (optional): Content format - 'text' (default) or 'bytes' (base64-encoded)
  • create_dirs (optional): Auto-create parent directories (default: True)

Features:

  • Automatically creates parent directories
  • Maximum file size: 10MB (configurable)

Example - Text file:

{
  "name": "write_file",
  "arguments": {
    "file_path": "/home/user/output.txt",
    "content": "Hello, Sandbox!"
  }
}

Example - HTML file:

{
  "name": "write_file",
  "arguments": {
    "file_path": "/home/user/index.html",
    "content": "<!DOCTYPE html><html><head><title>Test</title></head><body><h1>Hello</h1></body></html>"
  }
}

Attachment Operations

upload_attachment

Upload a file from sandbox to Wegent and get a download URL for users.

Use Cases:

  • Upload generated documents (PDF, Word, etc.) for user download
  • Share files created in the sandbox with users
  • Export results from sandbox to Wegent storage
  • User can not access file directly, you MUST use upload_attachment tool for sending file to user.

Parameters:

  • file_path (required): Path to the file in sandbox to upl
Полный SKILL.md на GitHub

Установить Sandbox в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

name: exec
name: sub_claude_agent
name: list_files
name: read_file
name: write_file
name: upload_attachment
name: download_attachment

Вложенные файлы

__init__.py_base.pyclaude_tool.pycommand_tool.pydownload_attachment_tool.pylist_files_tool.pyprovider.pyread_file_tool.pyupload_attachment_tool.pywrite_file_tool.py

FAQ

Что делает скилл Sandbox?

Provides read_file/write_file/exec/list_files/read_file/write_file for running process and managing filesystems in the sandbox. Ideal for code testing, file management, and command execution. The sub_claude_agent tool is available for advanced use cases. You MUST load this skill BEFORE use sandbox tools.

Как установить скилл Sandbox?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Sandbox запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Sandbox с