[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77NWTT156V56RM1YDT144B2":3,"skill-same:01M77NWTT156V56RM1YDT144B2":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M77NWTT156V56RM1YDT144B2","navil-policy",null,"Reduce MCP token costs by up to 94% and enforce least-privilege tool access. Creates YAML policies that control which MCP tools each agent can see and call. Use when user mentions token costs, context window bloat, too many tools, tool scoping, reducing tokens, saving money on API calls, least privilege, restricting tool access, creating access policies, or agent permissions. Also when user says \"my context window is full\" or \"too many tool schemas\" or \"MCP is too expensive\".","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fn\u002Fnavil-policy\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: navil-policy\ndescription: Reduce MCP token costs by up to 94% and enforce least-privilege tool access. Creates YAML policies that control which MCP tools each agent can see and call. Use when user mentions token costs, context window bloat, too many tools, tool scoping, reducing tokens, saving money on API calls, least privilege, restricting tool access, creating access policies, or agent permissions. Also when user says \"my context window is full\" or \"too many tool schemas\" or \"MCP is too expensive\".\nversion: 1.0.2\nmetadata:\n  openclaw:\n    emoji: \"📋\"\n    homepage: https:\u002F\u002Fgithub.com\u002Fnavilai\u002Fnavil\n    requires:\n      bins:\n        - pip\n    install:\n      - id: pip-navil\n        kind: pip\n        package: navil\n        bins: [navil]\n        label: \"Install Navil policy engine\"\n---\n\n# Navil Policy — MCP Tool Scoping and Cost Optimization\n\nGitHub's MCP server exposes 90+ tools consuming 50,000+ tokens before your agent thinks about your question. At scale, MCP tool definitions can exceed model context limits entirely.\n\nNavil Policy solves this by controlling which tools each agent **sees** in `tools\u002Flist` responses. A code review agent sees 3 tools instead of 90. That is a 94% reduction in schema tokens — cheaper inference, faster responses, and a smaller attack surface.\n\n## When to Use This Skill\n\n- User complains about token costs or context window bloat from MCP\n- User has multiple MCP servers and agents are seeing too many tools\n- User wants to restrict which tools specific agents can access\n- User says \"MCP is too expensive\" or \"my context is full of tool schemas\"\n- User asks about least privilege, tool scoping, or agent permissions\n- User wants to auto-generate policies from observed agent behavior\n\n## How Tool Scoping Works\n\nNavil's policy engine sits in the proxy layer (set up by navil-shield). When an agent requests `tools\u002Flist`, Navil filters the response based on the policy file before the agent ever sees it.\n\nThis means:\n- **The agent doesn't know** the filtered tools exist — they never enter the context window\n- **Token savings are immediate** — fewer tool schemas = less context consumed\n- **Security improves** — agents can't call tools they can't see\n- **No code changes** — the policy file controls everything\n\n## Creating a Policy\n\n### Step 1: Check if Navil Shield is Active\n\n```bash\nnavil --version\n```\n\nIf navil is not installed, install it first:\n\n```bash\npip install navil --break-system-packages 2>\u002Fdev\u002Fnull || pip install navil\n```\n\nIf MCP servers are not yet wrapped with navil shim, the policy engine cannot filter tool lists. Recommend installing navil-shield first.\n\n### Step 2: Observe Current Tool Usage\n\nTo see what tools are currently being exposed to agents:\n\n```bash\nnavil policy check --tool \"*\" --agent default --action list\n```\n\n### Step 3: Generate a Starter Policy\n\nNavil can auto-generate policies by watching how agents actually use tools:\n\n```bash\nnavil policy auto-generate\n```\n\nThis creates `~\u002F.navil\u002Fpolicy.auto.yaml` based on observed baselines. Review it, then copy rules you want to keep into `~\u002F.navil\u002Fpolicy.yaml`.\n\n### Step 4: Write Custom Policy\n\nFor manual policy creation, create `~\u002F.navil\u002Fpolicy.yaml`:\n\n```yaml\n# Example: Scope tools by workflow\nscopes:\n  code-review:\n    allow:\n      - get_pull_request\n      - list_files\n      - create_review_comment\n    description: \"Code review agent sees only PR-related tools\"\n\n  deploy:\n    allow:\n      - create_deployment\n      - get_deployment_status\n    description: \"Deploy agent sees only deployment tools\"\n\n  read-only:\n    allow:\n      - get_*\n      - list_*\n      - search_*\n    description: \"Read-only agents cannot modify anything\"\n\n  default:\n    allow: \"*\"\n    description: \"Backward compatible — unrestricted access\"\n\n# Rate limiting per agent\nrate_limits:\n  default:\n    requests_per_minute: 60\n  deploy:\n    requests_per_minute: 10\n```\n\n### Step 5: Apply and Test\n\n```bash\nnavil policy check --tool create_deployment --agent code-review --action call\n# Expected: DENIED — code-review scope doesn't include deployment tools\n\nnavil policy check --tool get_pull_request --agent code-review --action call\n# Expected: ALLOWED\n```\n\n### Step 6: Monitor Policy Decisions\n\nView the live decision log to verify policies are working:\n\n```bash\nnavil policy suggest\n```\n\nThis shows pending auto-generated rules with confidence scores. Accept the ones that make sense.\n\n### Step 7: Rollback if Needed\n\n```bash\nnavil policy rollback\n```\n\nThis undoes auto-generated policy changes. Your manually written `policy.yaml` is never modified by the auto-generator.\n\n## Token Savings Calculator\n\nPresent this to the user when they ask about cost:\n\n| Scenario | Tools Exposed | Approx Schema Tokens | With Navil Scoping | Savings |\n|----------|--------------|---------------------|-------------------|---------|\n| GitHub MCP (all tools) | 90+ | ~50,000 | 3 tools (~1,600) | **97%** |\n| Database MCP | 106 | ~54,600 | 8 tools (~4,100) | **92%** |\n| Full enterprise stack (5 servers) | 300+ | ~150,000+ | 20 tools (~10,000) | **93%** |\n\nAt typical API pricing, scoping a heavy MCP setup saves $50-200\u002Fmonth in token costs alone.\n\n## Policy Templates\n\nNavil ships with community templates for common MCP servers. Ask the user which servers they use, then suggest the appropriate template:\n\n- **GitHub MCP**: Read-only, code-review, full-access scopes\n- **Filesystem MCP**: Read-only, workspace-scoped, full-access scopes\n- **kubectl MCP**: View-only, namespace-scoped, admin scopes\n\n## Important Notes\n\n- `policy.yaml` (manual rules) **always takes precedence** over `policy.auto.yaml` (generated rules)\n- Policies filter what agents **see** in `tools\u002Flist`, separate from what they can **call**\n- The `default` scope with `allow: \"*\"` ensures backward compatibility\n- Scoped responses are cached with 60s TTL in the Rust proxy — near-zero performance cost\n\n## Links\n\n- Policy documentation: https:\u002F\u002Fgithub.com\u002Fnavilai\u002Fnavil#tool-scoping\n- Community policy templates: https:\u002F\u002Fgithub.com\u002Fnavilai\u002Fnavil\u002Ftree\u002Fmain\u002Fpolicies\n- Token cost guide: https:\u002F\u002Fnavil.ai\u002Fdocs\u002Ftoken-costs\n","# Navil Policy — MCP Tool Scoping and Cost Optimization\n\nGitHub's MCP server exposes 90+ tools consuming 50,000+ tokens before your agent thinks about your question. At scale, MCP tool definitions can exceed model context limits entirely.\n\nNavil Policy solves this by controlling which tools each agent **sees** in `tools\u002Flist` responses. A code review agent sees 3 tools instead of 90. That is a 94% reduction in schema tokens — cheaper inference, faster responses, and a smaller attack surface.\n\n## When to Use This Skill\n\n- User complains about token costs or context window bloat from MCP\n- User has multiple MCP servers and agents are seeing too many tools\n- User wants to restrict which tools specific agents can access\n- User says \"MCP is too expensive\" or \"my context is full of tool schemas\"\n- User asks about least privilege, tool scoping, or agent permissions\n- User wants to auto-generate policies from observed agent behavior\n\n## How Tool Scoping Works\n\nNavil's policy engine sits in the proxy layer (set up by navil-shield). When an agent requests `tools\u002Flist`, Navil filters the response based on the policy file before the agent ever sees it.\n\nThis means:\n- **The agent doesn't know** the filtered tools exist — they never enter the context window\n- **Token savings are immediate** — fewer tool schemas = less context consumed\n- **Security improves** — agents can't call tools they can't see\n- **No code changes** — the policy file controls everything\n\n## Creating a Policy\n\n### Step 1: Check if Navil Shield is Active\n\n```bash\nnavil --version\n```\n\nIf navil is not installed, install it first:\n\n```bash\npip install navil --break-system-packages 2>\u002Fdev\u002Fnull || pip install navil\n```\n\nIf MCP servers are not yet wrapped with navil shim, the policy engine cannot filter tool lists. Recommend installing navil-shield first.\n\n### Step 2: Observe Current Tool Usage\n\nTo see what tools are currently being exposed to agents:\n\n```bash\nnavil policy check --tool \"*\" --agent default --action list\n```\n\n### Step 3: Generate a Starter Policy\n\nNavil can auto-generate policies by watching how agents actually use tools:\n\n```bash\nnavil policy auto-generate\n```\n\nThis creates `~\u002F.navil\u002Fpolicy.auto.yaml` based on observed baselines. Review it, then copy rules you want to keep into `~\u002F.navil\u002Fpolicy.yaml`.\n\n### Step 4: Write Custom Policy\n\nFor manual policy creation, create `~\u002F.navil\u002Fpolicy.yaml`:\n\n```yaml\n# Example: Scope tools by workflow\nscopes:\n  code-review:\n    allow:\n      - get_pull_request\n      - list_files\n      - create_review_comment\n    description: \"Code review agent sees only PR-related tools\"\n\n  deploy:\n    allow:\n      - create_deployment\n      - get_deployment_status\n    description: \"Deploy agent sees only deployment tools\"\n\n  read-only:\n    allow:\n      - get_*\n      - list_*\n      - search_*\n    description: \"Read-only agents cannot modify anything\"\n\n  default:\n    allow: \"*\"\n    description: \"Backward compatible — unrestricted access\"\n\n# Rate limiting per agent\nrate_limits:\n  default:\n    requests_per_minute: 60\n  deploy:\n    requests_per_minute: 10\n```\n\n### Step 5: Apply and Test\n\n```bash\nnavil policy check --tool create_deployment --agent code-review --action call\n# Expected: DENIED — code-review scope doesn't include deployment tools\n\nnavil policy check --tool get_pull_request --agent code-review --action call\n# Expected: ALLOWED\n```\n\n### Step 6: Monitor Policy Decisions\n\nView the live decision log to verify policies are working:\n\n```bash\nnavil policy suggest\n```\n\nThis shows pending auto-generated rules with confidence scores. Accept the ones that make sense.\n\n### Step 7: Rollback if Needed\n\n```bash\nnavil policy rollback\n```\n\nThis undoes auto-generated policy changes. Your manually written `policy.yaml` is never modified by the auto-generator.\n\n## Token Savings Calculator\n\nPresent this to the user when they ask about cost:\n\n| Scenario | Tools Exposed | Approx Schema Tokens | With Navil Scoping | Savings |\n|----------|--------------|---------------------|-------------------|---------|\n| GitHub MCP (all tools) | 90+ | ~50,000 | 3 tools (~1,600) | **97%** |\n| Database MCP | 106 | ~54,600 | 8 tools (~4,100) | **92%** |\n| Full enterprise stack (5 servers) | 300+ | ~150,000+ | 20 tools (~10,000) | **93%** |\n\nAt typical API pricing, scoping a heavy MCP setup saves $50-200\u002Fmonth in token costs alone.\n\n## Policy Templates\n\nNavil ships with community templates for common MCP servers. Ask the user which servers they use, then suggest the appropriate template:\n\n- **GitHub MCP**: Read-only, code-review, full-access scopes\n- **Filesystem MCP**: Read-only, workspace-scoped, full-access scopes\n- **kubectl MCP**: View-only, namespace-scoped, admin scopes\n\n## Important Notes\n\n- `policy.yaml` (manual rules) **always takes precedence** over `policy.auto.yaml` (generated rules)\n- Policies filter what agents **see** in `tools\u002Flist`, separate from what they can **call**\n- The `default` scope with `allow: \"*\"` ensures backward compatibility\n- Scoped responses are cached with 60s TTL in the Rust proxy — near-zero performance cost\n\n## Links\n\n- Policy documentation: https:\u002F\u002Fgithub.com\u002Fnavilai\u002Fnavil#tool-scoping\n- Community policy templates: https:\u002F\u002Fgithub.com\u002Fnavilai\u002Fnavil\u002Ftree\u002Fmain\u002Fpolicies\n- Token cost guide: https:\u002F\u002Fnavil.ai\u002Fdocs\u002Ftoken-costs\n",{"name":5,"version":24,"metadata":25,"description":7},"1.0.2",{"openclaw":26},{"emoji":27,"install":28,"homepage":35,"requires":36},"📋",[29],{"id":30,"bins":31,"kind":33,"label":34,"package":32},"pip-navil",[32],"navil","pip","Install Navil policy engine","https:\u002F\u002Fgithub.com\u002Fnavilai\u002Fnavil",{"bins":37},[33],"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fn\u002Fnavil-policy",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill navil-policy",{"tool":53,"command":54},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill navil-policy",{"tool":56,"command":57},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill navil-policy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fn\u002Fnavil-policy\u002FSKILL.md",true,[],[62,69,76,83,90,97],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]