[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75K1MP2HVF9T27NGYSQYSXK":3,"skill-same:01M75K1MP2HVF9T27NGYSQYSXK":55},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M75K1MP2HVF9T27NGYSQYSXK","policy-engine",null,"Deterministic governance layer for OpenClaw tool execution. Enforces tool allowlists, deny patterns, path allowlists, risk tiers, dry-run mode, and escalation tracking via the before_tool_call hook. Every decision is logged for audit. Production-hardened with 88 tests and three deadlock classes fixed.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fjoetomasone\u002Fpolicy-engine\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: policy-engine\ndescription: >\n  Deterministic governance layer for OpenClaw tool execution. Enforces tool\n  allowlists, deny patterns, path allowlists, risk tiers, dry-run mode, and\n  escalation tracking via the before_tool_call hook. Every decision is logged\n  for audit. Production-hardened with 88 tests and three deadlock classes fixed.\ntags: [security, governance, policy, tools, audit]\ntype: plugin\n---\n\n# Policy Engine\n\nA deterministic governance layer that hooks into `before_tool_call` to control which tools agents can use, block dangerous commands, enforce write-path restrictions, and audit every decision.\n\n## Installation\n\n```bash\nclawhub install policy-engine\n```\n\nThen enable in your `openclaw.json`:\n\n```jsonc\n{\n  \"plugins\": {\n    \"policy-engine\": {\n      \"enabled\": true\n    }\n  }\n}\n```\n\n## Quick Start\n\nMinimal restrictive config — limit a sub-agent to read-only tools:\n\n```jsonc\n{\n  \"plugins\": {\n    \"policy-engine\": {\n      \"enabled\": true,\n      \"allowlists\": {\n        \"readonly\": [\"read\", \"web_fetch\", \"web_search\", \"message\"]\n      },\n      \"routing\": {\n        \"research-agent\": { \"toolProfile\": \"readonly\" }\n      }\n    }\n  }\n}\n```\n\n## Features\n\n### Tool Allowlists\nPer-agent profiles controlling which tools are permitted. Assign profiles via `routing` rules keyed by agent ID.\n\n### Deny Patterns\nBuilt-in patterns block fork bombs, `rm -rf`, `mkfs`, disk wipes, and system path writes. Scoped matching checks only relevant params (e.g., `command` for exec, `path` for write) — never file content. Add custom patterns per tool.\n\n### Path Allowlist Enforcement\nCanonicalizes file paths via `path.resolve()` then checks against allowed directory prefixes. Prevents path traversal attacks (e.g., `..\u002F..\u002Fetc\u002Fpasswd`) even via prompt injection.\n\n```jsonc\n{\n  \"pathAllowlists\": {\n    \"write\": [\"\u002FUsers\u002Fjoe\u002F.openclaw\u002Fworkspace\"],\n    \"edit\": [\"\u002FUsers\u002Fjoe\u002F.openclaw\u002Fworkspace\"]\n  }\n}\n```\n\nWith this config, `write` to `\u002FUsers\u002Fjoe\u002F.openclaw\u002Fworkspace\u002Ffoo.txt` → allowed. `write` to `\u002FUsers\u002Fjoe\u002F.openclaw\u002Fworkspace\u002F..\u002F..\u002Fetc\u002Fhosts` → **blocked** (resolves to `\u002FUsers\u002Fjoe\u002Fetc\u002Fhosts`, outside prefix).\n\n### Risk Tiers\n- **T0** — read-only (read, web_fetch, search) — always allowed, even under escalation\n- **T1** — write (write, edit, message)\n- **T2** — exec\u002Fsystem (exec, browser, deploy)\n\nOverride with `riskTiers` map:\n\n```jsonc\n{ \"riskTiers\": { \"my_custom_tool\": \"T2\" } }\n```\n\n### Dry-Run Mode\nTest policies without blocking. Essential tools (message, gateway, session_status) always pass through to prevent agent deadlock.\n\n```jsonc\n{ \"dryRun\": true, \"dryRunAllowT0\": true }\n```\n\n### Escalation Tracking\nCounts blocked attempts per session. After `maxBlockedRetries` (default: 3), further non-essential calls are blocked with a remediation message.\n\n### Hot-Reload\nConfig changes via `gateway config.patch` take effect immediately — no restart needed.\n\n### Fail-Open on Error\nIf the engine itself throws, the tool call proceeds. Safety over availability of governance.\n\n### Break-Glass\nSet `OPENCLAW_POLICY_BYPASS=1` to bypass all checks. Logged as a warning for audit.\n\n## Configuration Reference\n\n| Field | Type | Default | Description |\n|-------|------|---------|-------------|\n| `enabled` | boolean | `true` | Global kill-switch |\n| `dryRun` | boolean | `false` | Log-only mode (no blocking) |\n| `dryRunAllowT0` | boolean | `true` | Allow T0 tools in dry-run |\n| `dryRunEssentialTools` | string[] | `[message, gateway, session_status, sessions_send, sessions_list, tts]` | Tools that always pass in dry-run |\n| `maxBlockedRetries` | number | `3` | Escalation threshold per session |\n| `riskTiers` | object | `{}` | Tool → \"T0\"\\|\"T1\"\\|\"T2\" overrides |\n| `denyPatterns` | object | `{}` | Tool → string[] of blocked argument patterns |\n| `allowlists` | object | `{}` | Profile → string[] of allowed tool names |\n| `routing` | object | `{}` | AgentId → `{ model?, toolProfile? }` |\n| `pathAllowlists` | object | `{}` | Tool → string[] of allowed directory prefixes |\n\n## Common Patterns\n\n### Restrictive Sub-Agent\n\n```jsonc\n{\n  \"allowlists\": {\n    \"researcher\": [\"read\", \"web_fetch\", \"web_search\", \"message\"],\n    \"coder\": [\"read\", \"write\", \"edit\", \"exec\", \"message\"]\n  },\n  \"routing\": {\n    \"research-bot\": { \"toolProfile\": \"researcher\" },\n    \"code-bot\": { \"toolProfile\": \"coder\" }\n  }\n}\n```\n\n### Block Dangerous Commands + Custom Patterns\n\n```jsonc\n{\n  \"denyPatterns\": {\n    \"exec\": [\"npm publish\", \"docker push\"],\n    \"write\": [\"\u002Fsecrets\u002F\", \"\u002Fcredentials\u002F\"]\n  }\n}\n```\n\n### Dry-Run Testing\n\nEnable dry-run to see what *would* be blocked before enforcing:\n\n```jsonc\n{ \"dryRun\": true }\n```\n\nCheck logs for `[policy-engine] DRYRUN` entries, then disable when satisfied.\n\n### Per-Agent Model Routing\n\n```jsonc\n{\n  \"routing\": {\n    \"cheap-tasks\": { \"model\": \"ollama\u002Fqwen2.5:latest\" },\n    \"complex-tasks\": { \"model\": \"anthropic\u002Fclaude-opus-4\", \"toolProfile\": \"full\" }\n  }\n}\n```\n\n## Slash Command\n\nThe plugin registers a `\u002Fpolicy` command:\n- `\u002Fpolicy status` — show current config and session stats\n- `\u002Fpolicy reset` — reset escalation counters\n\n## Architecture\n\nSee [DESIGN.md](DESIGN.md) for detailed design decisions, deadlock analysis, and the three deadlock classes that were discovered and fixed during development.\n","# Policy Engine\n\nA deterministic governance layer that hooks into `before_tool_call` to control which tools agents can use, block dangerous commands, enforce write-path restrictions, and audit every decision.\n\n## Installation\n\n```bash\nclawhub install policy-engine\n```\n\nThen enable in your `openclaw.json`:\n\n```jsonc\n{\n  \"plugins\": {\n    \"policy-engine\": {\n      \"enabled\": true\n    }\n  }\n}\n```\n\n## Quick Start\n\nMinimal restrictive config — limit a sub-agent to read-only tools:\n\n```jsonc\n{\n  \"plugins\": {\n    \"policy-engine\": {\n      \"enabled\": true,\n      \"allowlists\": {\n        \"readonly\": [\"read\", \"web_fetch\", \"web_search\", \"message\"]\n      },\n      \"routing\": {\n        \"research-agent\": { \"toolProfile\": \"readonly\" }\n      }\n    }\n  }\n}\n```\n\n## Features\n\n### Tool Allowlists\nPer-agent profiles controlling which tools are permitted. Assign profiles via `routing` rules keyed by agent ID.\n\n### Deny Patterns\nBuilt-in patterns block fork bombs, `rm -rf`, `mkfs`, disk wipes, and system path writes. Scoped matching checks only relevant params (e.g., `command` for exec, `path` for write) — never file content. Add custom patterns per tool.\n\n### Path Allowlist Enforcement\nCanonicalizes file paths via `path.resolve()` then checks against allowed directory prefixes. Prevents path traversal attacks (e.g., `..\u002F..\u002Fetc\u002Fpasswd`) even via prompt injection.\n\n```jsonc\n{\n  \"pathAllowlists\": {\n    \"write\": [\"\u002FUsers\u002Fjoe\u002F.openclaw\u002Fworkspace\"],\n    \"edit\": [\"\u002FUsers\u002Fjoe\u002F.openclaw\u002Fworkspace\"]\n  }\n}\n```\n\nWith this config, `write` to `\u002FUsers\u002Fjoe\u002F.openclaw\u002Fworkspace\u002Ffoo.txt` → allowed. `write` to `\u002FUsers\u002Fjoe\u002F.openclaw\u002Fworkspace\u002F..\u002F..\u002Fetc\u002Fhosts` → **blocked** (resolves to `\u002FUsers\u002Fjoe\u002Fetc\u002Fhosts`, outside prefix).\n\n### Risk Tiers\n- **T0** — read-only (read, web_fetch, search) — always allowed, even under escalation\n- **T1** — write (write, edit, message)\n- **T2** — exec\u002Fsystem (exec, browser, deploy)\n\nOverride with `riskTiers` map:\n\n```jsonc\n{ \"riskTiers\": { \"my_custom_tool\": \"T2\" } }\n```\n\n### Dry-Run Mode\nTest policies without blocking. Essential tools (message, gateway, session_status) always pass through to prevent agent deadlock.\n\n```jsonc\n{ \"dryRun\": true, \"dryRunAllowT0\": true }\n```\n\n### Escalation Tracking\nCounts blocked attempts per session. After `maxBlockedRetries` (default: 3), further non-essential calls are blocked with a remediation message.\n\n### Hot-Reload\nConfig changes via `gateway config.patch` take effect immediately — no restart needed.\n\n### Fail-Open on Error\nIf the engine itself throws, the tool call proceeds. Safety over availability of governance.\n\n### Break-Glass\nSet `OPENCLAW_POLICY_BYPASS=1` to bypass all checks. Logged as a warning for audit.\n\n## Configuration Reference\n\n| Field | Type | Default | Description |\n|-------|------|---------|-------------|\n| `enabled` | boolean | `true` | Global kill-switch |\n| `dryRun` | boolean | `false` | Log-only mode (no blocking) |\n| `dryRunAllowT0` | boolean | `true` | Allow T0 tools in dry-run |\n| `dryRunEssentialTools` | string[] | `[message, gateway, session_status, sessions_send, sessions_list, tts]` | Tools that always pass in dry-run |\n| `maxBlockedRetries` | number | `3` | Escalation threshold per session |\n| `riskTiers` | object | `{}` | Tool → \"T0\"\\|\"T1\"\\|\"T2\" overrides |\n| `denyPatterns` | object | `{}` | Tool → string[] of blocked argument patterns |\n| `allowlists` | object | `{}` | Profile → string[] of allowed tool names |\n| `routing` | object | `{}` | AgentId → `{ model?, toolProfile? }` |\n| `pathAllowlists` | object | `{}` | Tool → string[] of allowed directory prefixes |\n\n## Common Patterns\n\n### Restrictive Sub-Agent\n\n```jsonc\n{\n  \"allowlists\": {\n    \"researcher\": [\"read\", \"web_fetch\", \"web_search\", \"message\"],\n    \"coder\": [\"read\", \"write\", \"edit\", \"exec\", \"message\"]\n  },\n  \"routing\": {\n    \"research-bot\": { \"toolProfile\": \"researcher\" },\n    \"code-bot\": { \"toolProfile\": \"coder\" }\n  }\n}\n```\n\n### Block Dangerous Commands + Custom Patterns\n\n```jsonc\n{\n  \"denyPatterns\": {\n    \"exec\": [\"npm publish\", \"docker push\"],\n    \"write\": [\"\u002Fsecrets\u002F\", \"\u002Fcredentials\u002F\"]\n  }\n}\n```\n\n### Dry-Run Testing\n\nEnable dry-run to see what *would* be blocked before enforcing:\n\n```jsonc\n{ \"dryRun\": true }\n```\n\nCheck logs for `[policy-engine] DRYRUN` entries, then disable when satisfied.\n\n### Per-Agent Model Routing\n\n```jsonc\n{\n  \"routing\": {\n    \"cheap-tasks\": { \"model\": \"ollama\u002Fqwen2.5:latest\" },\n    \"complex-tasks\": { \"model\": \"anthropic\u002Fclaude-opus-4\", \"toolProfile\": \"full\" }\n  }\n}\n```\n\n## Slash Command\n\nThe plugin registers a `\u002Fpolicy` command:\n- `\u002Fpolicy status` — show current config and session stats\n- `\u002Fpolicy reset` — reset escalation counters\n\n## Architecture\n\nSee [DESIGN.md](DESIGN.md) for detailed design decisions, deadlock analysis, and the three deadlock classes that were discovered and fixed during development.\n",{"name":5,"tags":24,"type":30,"description":31},[25,26,27,28,29],"security","governance","policy","tools","audit","plugin","Deterministic governance layer for OpenClaw tool execution. Enforces tool allowlists, deny patterns, path allowlists, risk tiers, dry-run mode, and escalation tracking via the before_tool_call hook. Every decision is logged for audit. Production-hardened with 88 tests and three deadlock classes fixed.\n","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fjoetomasone\u002Fpolicy-engine",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill policy-engine",{"tool":47,"command":48},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill policy-engine",{"tool":50,"command":51},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill policy-engine","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fjoetomasone\u002Fpolicy-engine\u002FSKILL.md",true,[],[56,64,71,78,85,92],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":63},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":63},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":63},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":63},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":63},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":63},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]