modal-sandboxes-knowledge
This skill should be used when the user asks to run isolated or untrusted code on Modal.com. PROACTIVELY activate for: modal.Sandbox, safe user code execution, coding playgrounds, named sandboxes, PTY sessions, filesystem snapshots, timeout and resource limits, egress policies, sandbox lifecycle cleanup, terminate(), and security review for code execution. Provides: sandbox security checklist, lifecycle and cleanup patterns, egress/resource-limit recipes, and snapshot/PTY usage examples.
How do I install this agent skill?
npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill modal-sandboxes-knowledgeIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides a comprehensive and security-focused guide for using Modal Sandboxes to execute untrusted code. It explicitly emphasizes isolation, resource limits, and network restrictions as core safety principles.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Modal Sandboxes Knowledge
Use this skill for Modal Sandbox design, security, and operations. For ordinary functions, GPU jobs, or deployment topics, use modal-compute:modal-compute-knowledge.
Essential security checklist
- Treat all submitted code and files as untrusted.
- Use explicit timeout, CPU, memory, and disk constraints.
- Prefer deny-by-default network egress; allow only required destinations.
- Clean up every sandbox with
terminate()or a scoped lifecycle. - Avoid passing long-lived credentials into sandbox environments unless strictly required.
- Capture stdout/stderr and return codes separately for auditing and debugging.
Common patterns
- One-shot execution: create a sandbox, run a command, collect output, terminate.
- Named sandbox: reuse a per-session sandbox for interactive workflows.
- PTY session: support shell-like interaction while preserving resource limits.
- Snapshot workflow: prebuild filesystem state, then launch from a known baseline.
Detailed reference
See references/sandboxes-code-execution.md for code examples and operational notes.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/josiahsiegel/claude-plugin-marketplace/modal-sandboxes-knowledge">View modal-sandboxes-knowledge on skillZs</a>