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.
npx agentmods add skills/nomarj/sigil/generate-policynpx skills add NOMARJ/sigil --skill generate-policygit clone --depth 1 https://github.com/NOMARJ/sigilWrote 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.
[](https://agentmods.dev/skills/nomarj/sigil/generate-policy)<a href="https://agentmods.dev/skills/nomarj/sigil/generate-policy"><img src="https://agentmods.dev/badge/skills/nomarj/sigil/generate-policy.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.00549 |
| Opus 5 | $0.00009 | $0.00275 |
| Sonnet 5 | $0.00003 | $0.00110 |
| Haiku 4.5 | $0.00002 | $0.00055 |
Grade A, and why
generate-policy scanned grade A with 0 findings 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 yesterday.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Sandbox Policy
Generate a Sigil security policy YAML file based on scan results. The policy controls filesystem, network, process, and credential access for sandboxed agent execution.
Process
- Scan the target — Run
sigil scan <path>to get findings - Analyze findings — Map each finding to a policy restriction:
- Phase 1 (Install Hooks) → Filesystem restrictions (read-only paths)
- Phase 3 (Network) → Network allowlist (only permit known-good endpoints)
- Phase 4 (Credentials) → Credential policy (restrict env var access)
- Phase 5 (Obfuscation) → Process restrictions (sandboxed user)
- Generate policy YAML with the following structure:
version: "1.0"
name: "<project-name>-policy"
description: "Auto-generated from Sigil scan on <date>"
filesystem:
read_only:
- /usr
- /lib
- /etc
read_write:
- /tmp
include_workdir: true
network:
default_action: deny
rules:
- name: "<endpoint-name>"
host: "<hostname>"
port: 443
access: read-only
enforcement: enforce
process:
run_as_user: sandbox
run_as_group: sandbox
deny_syscall_categories:
- privilege_escalation
credentials:
allowed_env:
- TERM
- PATH
- HOME
denied_env: []
providers: []
- Write the policy to
sigil-policy.yamlin the project root - Explain the policy — For each section, explain what it restricts and why
Policy Severity Mapping
| Scan Verdict | Network Policy | Credential Policy | Process Policy |
|---|---|---|---|
| CLEAN | permissive | allow common | standard |
| LOW RISK | standard endpoints | allow declared | standard |
| MEDIUM RISK | strict allowlist | minimal | sandboxed user |
| HIGH RISK | deny all | deny all | full restrictions |
| CRITICAL | deny all + log | deny all | full restrictions |
Rules
- Always explain WHY each restriction exists (reference the specific finding)
- For CLEAN scans, still generate a minimal security policy
- Include comments in the YAML explaining each rule
- Suggest the user review and customize before applying
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.
- yesterday First seen · 77 lines · 17 tokens per session scan A e27884e83e40
generate-policy is a skill published in the GitHub repository NOMARJ/sigil (5 stars, last pushed today), licensed Apache-2.0. It adds 17 tokens to every session and 549 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other skills, from other repositories
share-server-links
Share a local HTTP server with the user over bb connect. Use when an agent has started a local HTTP server (dev server, preview, static server) and wants to hand the user a link they can open — especially remotely ("start the dev server", "let me see it", "preview", "open it on my phone", "share a link"). Prefer this…
monitoring-specialist
System monitoring, alerting, and observability implementation.
huawei-cloud-modelarts-notebook-management
Manage Huawei Cloud ModelArts Notebook instances through full lifecycle operations via hcloud CLI. Covers 31 API interfaces across 7 functional domains: instance management (create/list/show/update/delete/start/stop), lease management (show/renew), tag management (show/create/delete), image management…
deploy
Deploys the service to staging. Use when the user asks to deploy, ship, or release the application to an environment.
sandy
Run TypeScript scripts in sandboxed microVMs or Docker containers with AWS SDK access via IMDS. Use when investigating AWS resources, running read-only queries, or executing TypeScript automation that needs AWS credentials.
sandy-cli
Run TypeScript scripts in sandboxed microVMs or Docker containers with AWS SDK access via IMDS, through the sandy CLI. Use when investigating AWS resources, running read-only queries, or executing TypeScript automation that needs AWS credentials via shell commands.