Sandbox Setup Skill
Configure Claude Code for optimal autonomous agent execution in this repository.
What This Skill Does
Analyzes your codebase to detect:
- Programming languages (Go, Python, Node.js, Rust, etc.)
- Package managers (go mod, npm, pip, cargo, etc.)
- Build tools and test runners
- Dev servers and their ports
Generates tailored permissions for .claude/settings.json:
- Allow commands for detected tools
- Network access for package registries
- File system permissions for build outputs
Preserves existing settings:
- Merges with hooks configuration
- Keeps deny rules for secrets
- Maintains ask rules for git push
How to Use
When invoked, I will:
- Scan the repository for configuration files (package.json, go.mod, Cargo.toml, requirements.txt, etc.)
- Ask clarifying questions about your workflow
- Present proposed settings for your approval
- Update .claude/settings.json
Detection Patterns
I look for these files to detect your stack:
go.mod → Go (go build, go test, go mod)
package.json → Node.js (npm, yarn, pnpm, node)
Cargo.toml → Rust (cargo build, cargo test)
requirements.txt / pyproject.toml → Python (pip, python, pytest)
Gemfile → Ruby (bundle, ruby, rake)
pom.xml / build.gradle → Java (mvn, gradle)
devbox.json → Devbox (devbox run)
Settings Structure
The generated settings follow this structure:
{
"sandbox": {
"enabled": true,
"autoAllowBashIfSandboxed": true
},
"permissions": {
"allow": ["Bash(detected-tools:*)"],
"deny": ["Read(./.env)", "Read(./secrets/**)"],
"ask": ["Bash(juggle:*)", "Bash(git push:*)"]
},
"hooks": { ... }
}
Reference
For detailed sandbox configuration options, see:
https://www.nathanonn.com/claude-code-sandbox-explained/
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: sandbox-setup3description: Configure Claude Code sandbox settings for this repository Use when this capability is needed.4---56# Sandbox Setup Skill78Configure Claude Code for optimal autonomous agent execution in this repository.910## What This Skill Does11121. **Analyzes your codebase** to detect:13 - Programming languages (Go, Python, Node.js, Rust, etc.)14 - Package managers (go mod, npm, pip, cargo, etc.)15 - Build tools and test runners16 - Dev servers and their ports17182. **Generates tailored permissions** for `.claude/settings.json`:19 - Allow commands for detected tools20 - Network access for package registries21 - File system permissions for build outputs22233. **Preserves existing settings**:24 - Merges with hooks configuration25 - Keeps deny rules for secrets26 - Maintains ask rules for git push2728## How to Use2930When invoked, I will:311. Scan the repository for configuration files (package.json, go.mod, Cargo.toml, requirements.txt, etc.)322. Ask clarifying questions about your workflow333. Present proposed settings for your approval344. Update .claude/settings.json3536## Detection Patterns3738I look for these files to detect your stack:39- `go.mod` → Go (go build, go test, go mod)40- `package.json` → Node.js (npm, yarn, pnpm, node)41- `Cargo.toml` → Rust (cargo build, cargo test)42- `requirements.txt` / `pyproject.toml` → Python (pip, python, pytest)43- `Gemfile` → Ruby (bundle, ruby, rake)44- `pom.xml` / `build.gradle` → Java (mvn, gradle)45- `devbox.json` → Devbox (devbox run)4647## Settings Structure4849The generated settings follow this structure:50```json51{52 "sandbox": {53 "enabled": true,54 "autoAllowBashIfSandboxed": true55 },56 "permissions": {57 "allow": ["Bash(detected-tools:*)"],58 "deny": ["Read(./.env)", "Read(./secrets/**)"],59 "ask": ["Bash(juggle:*)", "Bash(git push:*)"]60 },61 "hooks": { ... }62}63```6465## Reference6667For detailed sandbox configuration options, see:68https://www.nathanonn.com/claude-code-sandbox-explained/6970---71> Converted and distributed by [TomeVault](https://tomevault.io/claim/ohare93) — claim your Tome and manage your conversions.72<!-- tomevault:4.0:skill_md:2026-04-11 -->