generate-sandbox-policy

generate-sandbox-policy is a skill for Claude Code, Codex from NVIDIA/OpenShell. It costs 98 tokens per session (8,580 once invoked), scanned A, original, Apache-2.0.

A skill for turning plain-language access requirements and API documentation into YAML sandbox network policies. These policies control which network connections and API endpoints an agent may use.

In plain words
What is it for?
Use it to define host, port, endpoint, access-level, middleware, and failure-behavior rules for an agent's API access.
Why use it?
It reduces the effort and mistakes involved in translating access rules into correctly structured security configuration.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to define host, port, endpoint, access-level, middleware, and failure-behavior rules for an agent's API access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia/openshell/generate-sandbox-policy
About the project

OpenShell is a runtime for autonomous AI agents that executes them in sandboxed environments governed by declarative policies. It is used to restrict agents' access to files, credentials, data, and network resources, and the catalogue includes skills and workflows for operating and contributing to it.

NVIDIA/OpenShell · 21,172 stars · on GitHub · docs.nvidia.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add NVIDIA/OpenShell --skill generate-sandbox-policy
Clone the repo
git clone --depth 1 https://github.com/NVIDIA/OpenShell

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-sandbox-policy

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia/openshell/generate-sandbox-policy/github.svg)](https://agentmods.dev/skills/nvidia/openshell/generate-sandbox-policy)
Your own site
<a href="https://agentmods.dev/skills/nvidia/openshell/generate-sandbox-policy"><img src="https://agentmods.dev/badge/skills/nvidia/openshell/generate-sandbox-policy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate-sandbox-policy

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia/openshell/generate-sandbox-policy"><img src="https://agentmods.dev/badge/skills/nvidia/openshell/generate-sandbox-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk warn 27 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
  • Socket pass 27 Oct 2026
SkillSpector: 1 finding, up to low

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • low Privilege Escalation · line 310
    Skill requests more permissions than appear necessary for its stated functionality. Review if elevated access is justified.
    Fix: Request only the minimum permissions required. Document why each permission is needed. Remove broad permissions like '*' or 'all'.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.08580
Opus 5.5 $0.00039 $0.03432
Sonnet 5.5 $0.00020 $0.01716
Haiku 4.5 $0.00010 $0.00858

Measured 10d ago against content hash 2a692a47770d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate-sandbox-policy scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- "Allow curl to hit api.github.com, read-only"
skills/generate-sandbox-policy/SKILL.md · 668 lines

How it starts

The opening of the file, as written. The whole thing — 668 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Sandbox Policy

Generate YAML sandbox network policies and network middleware configuration from API documentation and natural-language user requirements.

Overview

This skill translates a user's plain-language policy intent into a valid sandbox policy. The amount of detail the user provides determines the granularity of the generated policy — from broad L4 or preset-based policies (just a host:port) up to fine-grained per-endpoint L7 rules (full API docs).

The output is a network_policies YAML block, an optional network_middlewares block, and optionally a full policy file that conforms to the sandbox policy schema.

Step 1: Gather Inputs

Determine the Detail Tier

The user's input falls into one of three tiers. Work with whatever the user provides — do not require a higher tier than needed.

Tier User provides What you can generate
Minimal Host(s) and plain-language intent L4-only policies, or L7 with access presets (read-only, read-write, full)
Moderate Host(s) + some known URL paths or resources L7 with targeted glob rules for known paths, presets for the rest
Full Complete API docs (OpenAPI, Swagger, markdown, URL) Fine-grained per-endpoint L7 rules with specific method+path combinations

Minimal Tier (host + intent only)

The user provides API endpoints and a broad intent. No API docs needed.

Examples:

  • "Allow curl to hit api.github.com, read-only"
  • "Give claude full access to api.anthropic.com"
  • "Let /usr/bin/myapp talk to internal-svc:8080 but only for reading"

This is sufficient for:

  • L4-only policies (host:port + binary checks, no method or path rules)
  • Preset-based L7 policies (read-only, read-write, full on all paths)

For this tier, default to:

  • access: read-only when the user says "read", "browse", "view", "query", "fetch"
  • access: read-write when the user says "read-write", "create", "update" (but not "delete")
  • access: full when the user says "full access", "everything", "unrestricted"
  • L4-only when the user says "just allow it", "pass through", or "no inspection". Omit protocol for explicit-proxy clients. Use protocol: tcp only when the workload must use native DNS and direct socket calls, the endpoint has a valid DNS hostname, and the selected runtime support (currently Docker and Podman).

Read the full file on GitHub · 668 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · +1 lines 2a692a47770d
  2. 22d ago Changed · +2 lines 737036a0c7ef
  3. 29d ago Changed · +16 lines 6502915b05f4
  4. 1mo ago Changed · +2 lines da009fdc44eb
  5. 1mo ago Changed · +2 lines cc3290776d78
  6. 1mo ago Changed · +5 lines 6764108a156e
  7. 1mo ago Changed · -7 lines 639dbb1664bc
  8. 1mo ago Changed · +6 lines 5b70515b1fb4
  9. 1mo ago Changed c5885208e40a
  10. 2mo ago First seen · 641 lines · 98 tokens per session scan A 452141ee7fd7

Subscribe to this mod's changes

generate-sandbox-policy is a skill published in the GitHub repository NVIDIA/OpenShell (21,172 stars, last pushed yesterday), licensed Apache-2.0. It adds 98 tokens to every session and 8,580 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

generate-sandbox-policy compared with skills from other repositories

generate-sandbox-policy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-sandbox-policyNVIDIA/OpenShellSkill21kyesterdayApache-2.0A98Claude Code, Codex
imagegenopenai/codexSkill133ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
chat-pet-sprite-creationmicrosoft/vscodeSkill195ktodayMITA53Claude Code, Codex