generate-sandbox-policy
यह क्या करती है
यह स्किल AI को बताती है कि आप sandbox से क्या पहुँचवाना चाहते हैं, और उसे एक वैध नेटवर्क policy फ़ाइल में बदलती है। यह उन लोगों के लिए है जो OpenShell sandboxes सेट करते हैं और तय करना चाहते हैं कि कौन-सी साइटें और API कॉल अनुमत हैं।
कब इस्तेमाल करें
- ✓जब आप अपने sandbox वाले AI को किसी खास वेबसाइट या API तक पहुँचने देना चाहते हों।
- ✓जब आपके पास API दस्तावेज़ हों और आप policy को कुछ methods और paths तक सीमित करना चाहते हों।
- ✓जब आपको नेटवर्क middleware को sandbox से जोड़ने का तरीका या उसकी विफलता पर क्या हो, यह बदलना हो।
Skill का लिंक
https://github.com/NVIDIA/OpenShell/blob/main/skills/generate-sandbox-policy/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे AI को GitHub API से पढ़ने की अनुमति देने वाली sandbox policy लिखिए, और उसके अलावा कुछ नहीं।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI ज़रूरी hosts और पहुँच इकट्ठा करता है, आपके इनपुट के अनुसार विस्तार का स्तर चुनता है, और एक YAML policy लिखता है जो sandbox policy के format से मेल खाए, ताकि आप उसकी समीक्षा कर सकें।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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,fullon all paths)
For this tier, default to:
access: read-onlywhen the user says "read", "browse", "view", "query", "fetch"access: read-writewhen the user says "read-write", "create", "update" (but not "delete")access: fullwhen the user says "full access", "everything", "unrestricted"- L4-only when the user says "just allow it", "pass through", or "no
inspection". Omit
protocolfor explicit-proxy clients. Useprotocol: tcponly 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).
Moderate Tier (host + partial path knowledge)
The user knows some API paths but doesn't have full docs.
Examples:
- "Allow GET on /api/v1/models and POST on /api/v1/completions at integrate.api.nvidia.com"
- "Read-only on /repos/** at api.github.com, but also allow POST on /repos///issues"
Generate explicit rules for the known paths. If the user also wants broader access beyond the specific paths, combine with a catch-all rule or suggest a preset instead.
Full Tier (complete API docs)
The user provides full API documentation. Accepted formats:
| Format | How to consume |
|---|---|
| URL | Fetch with the agent's web access and parse the endpoint list |
| File path | Read the file (OpenAPI JSON/YAML, markdown, etc.) |
| Pasted text | Parse inline from the conversation |
| OpenAPI/Swagger spec | Extract paths object for all method+path combinations |
From the API docs, build an endpoint inventory — a list of (method, path, description) tuples. Group them logically (e.g., by resource or tag). Then generate precise rules that allow only what the user's intent requires.
Policy Intent
Regardless of tier, extract (or infer) these from the user's description:
| Aspect | What to identify | Required? |
|---|---|---|
| Scope | Which API host(s) and port(s) | Yes — always needed |
| Access level | Broad intent: read-only, read-write, full, or custom | Yes — ask if unclear |
| Methods | Specific HTTP methods to allow | Only for custom/fine-grained |
| Paths | Specific URL paths or patterns | Only for custom/fine-grained |
| Enforcement | enforce or audit? Default to enforce. |
No — has a default |
| Binary | Which binary/process should have access | Yes — ask if not stated |
| Middleware | Whether admitted HTTP requests, final HTTP responses, or client WebSocket text messages need an ordered built-in or operator-run processing stage | No |
If the host and access level are clear but binaries are not specified, ask the user w
अक्सर पूछे जाने वाले सवाल
क्या इसके लिए API दस्तावेज़ चाहिए?
नहीं। एक बुनियादी policy के लिए host और एक साधारण विवरण काफ़ी है। पूरे API दस्तावेज़ होने पर यह ज़्यादा सटीक नियम लिख सकती है।
access preset क्या है?
preset एक तैयार पहुँच स्तर है, जैसे read-only, read-write या full, जिसे AI तब इस्तेमाल कर सकता है जब विस्तृत नियमों की ज़रूरत न हो।
क्या यह केवल कुछ paths के लिए नियम लिख सकती है?
हाँ। कुछ ज्ञात URL paths दिए जाने पर यह उन paths के लिए लक्षित नियम लिख सकती है और बाकी के लिए presets इस्तेमाल कर सकती है।
जानकारी
लेखक का मूल विवरण
Generate sandbox security policies from plain-language requirements and optional REST API documentation. Produces L4 or fine-grained L7 network policies and ordered network middleware configuration. Use for API access rules, middleware host selection, failure behavior, or built-in and operator-run middleware attachment. Trigger keywords - generate policy, create policy, update policy, change policy, sandbox policy, network policy, API policy, security policy, allow API, restrict API, network middleware, supervisor middleware.
repo: NVIDIA/OpenShell
लोकप्रियता
- GitHub स्टार
- 21k
- रैंकिंग में स्थान
- #10367
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
create-github-issue
21kआपके एजेंट को gh कमांड लाइन टूल और प्रोजेक्ट के टेम्पलेट से बग, फ़ीचर अनुरोध या कार्य के लिए GitHub issue बनाने में मदद करती है।
create-github-pr
21kआपके एजेंट को gh टूल से आपकी branch के लिए GitHub pull request खोलने देती है, समीक्षा के लिए काम तैयार है या नहीं, यह जाँचने के बाद।
review-github-pr
21kआपके एजेंट को GitHub pull request पढ़कर उसके बदलाव, मुख्य डिज़ाइन फ़ैसले और ख़ास कोड सरल भाषा में समझाना सिखाती है।
watch-github-actions
21kआपके एजेंट को GitHub Actions runs की स्थिति जाँचने, किसी run के पूरा होने तक उसे देखने और फ़ेल हुए job के लॉग पढ़ने देती है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।