Local Sandboxed Execution
Execute bash scripts or Python code inside an isolated container to verify the solution safely.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- Local Sandboxed Execution
- description
- Execute bash scripts or Python code inside an isolated container to verify the solution safely.
03 SKILL.md 正文
Local Sandboxed Execution Instructions
When asked to write and run code that might be destructive (e.g., deleting files, installing unknown packages, modifying system paths), DO NOT run it directly on the host machine.
Instead, execute the code inside an isolated Docker container.
Workflow
- Ensure Docker is running via CLI.
- Write the untrusted code to a temporary file (e.g.,
/tmp/untrusted_script.py). - Execute the script inside an ephemeral container using the
run_commandaction:docker run --rm -v /tmp/untrusted_script.py:/script.py python:3.9 python /script.py - Capture the output and report it back to the user.
04 同仓库更多 Skills
Web Scraper
Scrape text content from URLs without launching a slow GUI browser.
TDD (Test-Driven Development) Workflow
Enforces a strict Test-Driven Development workflow for new features and bug fixes.
Strict Output Formatting
Enforces strict JSON schemas for any data the agent outputs to ensure reliability across systems.
Session Continuity
Maintains state across multiple agent commands to handle complex, multi-step logins or navigate paginated dashboards.
Plan-Before-Code
A workflow that forces the agent to output a structured implementation plan and identify edge cases before writing any production code.
macOS System Admin
Expert commands and workflows for controlling macOS hardware and system settings via CLI.