Fallback to run_shell with embedded Python when execute_code_sandbox fails due to e2b unavailability
63
73%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./benchmarks/gdpval/skills/sandbox-fallback-python/SKILL.mdApply this skill when execute_code_sandbox fails with errors indicating:
This fallback allows you to execute Python code directly via shell, bypassing the sandbox infrastructure.
Identify fallback necessity from error messages like:
Instead of execute_code_sandbox, use run_shell with a Python heredoc or inline script:
python3 << 'EOF'
# Your Python code here
print("Hello from fallback execution")
EOFIf your Python code requires packages not guaranteed to be installed:
pip install package_name package_name2 && python3 << 'EOF'
# Your Python code here
import package_name
print("Code with dependencies executed")
EOFFor scripts that need to read/write files:
ls to verify file operationspython3 << 'EOF'
import os
# Write output to file
with open("output.txt", "w") as f:
f.write("Results here")
# Verify
print(f"Working directory: {os.getcwd()}")
EOFpython3 << 'EOF'
result = sum(range(100))
print(f"Sum: {result}")
EOFpip install requests -q && python3 << 'EOF'
import requests
response = requests.get("https://api.example.com/data")
print(response.json())
EOFpython3 << 'EOF'
import json
data = {"key": "value", "count": 42}
output = json.dumps(data, indent=2)
print(output)
# Save to file
with open("data.json", "w") as f:
f.write(output)
EOF<< 'EOF' prevents variable expansion issuespip install -q to reduce output noisec5a9c4b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.