gemini-sandbox-configuration
Central authority for Gemini CLI sandboxing and isolation. Covers Docker, Podman, macOS Seatbelt profiles, and security boundaries. Use when enabling sandboxing, choosing sandbox methods, configuring Seatbelt profiles, or troubleshooting sandbox issues. Delegates 100% to gemini-cli-docs for official documentation.
What this skill does
# Gemini Sandbox Configuration
## MANDATORY: Invoke gemini-cli-docs First
> **STOP - Before providing ANY response about Gemini sandboxing:**
>
> 1. **INVOKE** `gemini-cli-docs` skill
> 2. **QUERY** for the specific sandbox topic
> 3. **BASE** responses EXCLUSIVELY on official documentation loaded
## Overview
Meta-skill for configuring Gemini CLI's sandbox isolation. Sandboxing isolates potentially dangerous operations from your host system.
## When to Use This Skill
**Keywords:** sandbox, docker, podman, seatbelt, isolation, container, safe execution, -s flag, GEMINI_SANDBOX
**Use this skill when:**
- Enabling sandboxing for the first time
- Choosing between sandbox methods
- Configuring Seatbelt profiles (macOS)
- Troubleshooting sandbox issues
- Understanding security boundaries
## Sandbox Methods
| Method | Platform | Isolation |
| --- | --- | --- |
| Docker | All | Full container |
| Podman | All | Rootless container |
| Seatbelt | macOS | Process sandbox |
## Configuration
### Enable via Command Flag
```bash
gemini -s -p "command"
```
### Enable via Environment
```bash
export GEMINI_SANDBOX=true
gemini "command"
# Or specify method
export GEMINI_SANDBOX=docker
export GEMINI_SANDBOX=podman
export GEMINI_SANDBOX=sandbox-exec
```
### Enable via Settings
Add to `settings.json`:
```json
{
"tools": {
"sandbox": true
}
}
```
Or specify method:
```json
{
"tools": {
"sandbox": "docker"
}
}
```
## Seatbelt Profiles (macOS)
Set via `SEATBELT_PROFILE` environment variable:
| Profile | Writes | Network |
| --- | --- | --- |
| `permissive-open` (default) | Restricted | Allowed |
| `permissive-closed` | Restricted | Blocked |
| `permissive-proxied` | Restricted | Via proxy |
| `restrictive-open` | Strict | Allowed |
| `restrictive-closed` | Strict | Blocked |
## Custom Sandbox Flags
For container-based sandboxing, inject custom flags:
```bash
export SANDBOX_FLAGS="--security-opt label=disable"
```
## Keyword Registry (Delegates to gemini-cli-docs)
| Topic | Query Keywords |
| --- | --- |
| Enable | `enable sandbox`, `-s flag`, `GEMINI_SANDBOX` |
| Docker | `docker sandbox`, `container isolation` |
| Podman | `podman sandbox`, `rootless container` |
| Seatbelt | `seatbelt profiles`, `sandbox-exec macos` |
| Custom flags | `SANDBOX_FLAGS`, `custom docker flags` |
| Troubleshooting | `sandbox troubleshooting`, `operation not permitted` |
## Quick Decision Tree
**What do you want to do?**
1. **Enable sandbox quickly** -> Use `-s` flag
2. **Make it persistent** -> Add to settings.json
3. **Use Docker** -> Set `GEMINI_SANDBOX=docker`
4. **Use stricter macOS** -> Set `SEATBELT_PROFILE=restrictive-closed`
5. **Debug issues** -> Use `DEBUG=1 gemini -s`
## Troubleshooting
| Error | Cause | Solution |
| --- | --- | --- |
| "Operation not permitted" | Sandbox restriction | Expected behavior |
| "Docker not found" | Docker not running | Start Docker daemon |
| Network blocked | Restrictive profile | Use `permissive-open` |
| Missing commands | Not in sandbox image | Add to custom Dockerfile |
## Security Notes
- Sandboxing reduces but doesn't eliminate all risks
- Use most restrictive profile that allows your work
- GUI applications may not work in sandbox
- Container overhead is minimal after first build
## Verification Checkpoint
- [ ] Did I invoke gemini-cli-docs skill?
- [ ] Did official documentation load?
- [ ] Is my response based EXCLUSIVELY on official docs?
## Test Scenarios
### Scenario 1: Enable Sandbox
**Query**: "How do I enable sandboxing in Gemini CLI?"
**Expected Behavior**:
- Skill activates on "sandbox" keyword
- Delegates to gemini-cli-docs for configuration options
**Success Criteria**: User receives -s flag and settings.json configuration
### Scenario 2: macOS Seatbelt
**Query**: "How do I configure Seatbelt profiles for Gemini CLI?"
**Expected Behavior**:
- Skill activates on "seatbelt" or "macos sandbox"
- Provides SEATBELT_PROFILE environment variable options
**Success Criteria**: User receives profile comparison table
### Scenario 3: Troubleshoot Sandbox
**Query**: "Getting 'operation not permitted' in Gemini sandbox"
**Expected Behavior**:
- Skill activates on "sandbox troubleshooting" or "operation not permitted"
- Explains expected sandbox restrictions
**Success Criteria**: User understands behavior is expected and gets workarounds
## References
Query `gemini-cli-docs` for official documentation on:
- "sandbox"
- "seatbelt profiles"
- "docker sandbox"
## User-Facing Interface
When invoked directly by the user, this skill executes a command in Gemini CLI's sandboxed environment.
### Execution Workflow
1. **Parse Arguments** - Extract the shell command from `$ARGUMENTS`. If no command provided, ask the user what to execute in sandbox.
2. **Validate Command** - Ensure the command is non-empty and reasonable for sandboxed execution.
3. **Execute in Sandbox** - Run the command using Gemini CLI's `-s` flag for sandbox enforcement with appropriate sandbox type (Docker, Podman, or macOS Seatbelt).
4. **Report Results** - Present execution output including stdout, stderr, exit code, and observations about command behavior in the sandboxed environment.
## Version History
- v1.1.0 (2025-12-01): Added Test Scenarios section
- v1.0.0 (2025-11-25): Initial release
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.