[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CMFFF5B85E6VRHJF3AGPZ9":3,"skill-same:01M6CMFFF5B85E6VRHJF3AGPZ9":92},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":62,"install":63,"resources":75},"01M6CMFFF5B85E6VRHJF3AGPZ9","openclaw-bastion",null,"Prompt injection defense for agent workspaces. Scan files for injection attempts, analyze content boundaries, detect hidden instructions, and maintain command allowlists. Free alert layer — upgrade to openclaw-bastion-pro for active blocking, sanitization, and runtime enforcement.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fatlaspa\u002Fopenclaw-bastion\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"openclaw bastion","Bastion","openclaw","command","scan","maintain","files","workspaces","enforcement","alert","instructions","prompt","python3","analyze","injection","defense","content","win32","linux","prompt injection","2026-11-10 10:12:30",false,"---\nname: openclaw-bastion\ndescription: \"Prompt injection defense for agent workspaces. Scan files for injection attempts, analyze content boundaries, detect hidden instructions, and maintain command allowlists. Free alert layer — upgrade to openclaw-bastion-pro for active blocking, sanitization, and runtime enforcement.\"\nuser-invocable: true\nmetadata: {\"openclaw\":{\"emoji\":\"\\ud83c\\udfdb\\ufe0f\",\"requires\":{\"bins\":[\"python3\"]},\"os\":[\"darwin\",\"linux\",\"win32\"]}}\n---\n\n# OpenClaw Bastion\n\nRuntime prompt injection defense for agent workspaces. While other tools watch workspace identity files, Bastion protects the input\u002Foutput boundary — the files being read by the agent, web content, API responses, and user-supplied documents.\n\n## Why This Matters\n\nAgents process content from many sources: local files, API responses, web pages, user uploads. Any of these can contain prompt injection attacks — hidden instructions that manipulate agent behavior. Bastion scans this content before the agent acts on it.\n\n**Need active blocking?** Upgrade to [openclaw-bastion-pro](https:\u002F\u002Fgithub.com\u002FAtlasPA\u002Fopenclaw-bastion-pro) for runtime content sanitization, auto-quarantine, canary testing, and policy enforcement via hooks.\n\n## Commands\n\n### Scan for Injections\n\nScan files or directories for prompt injection patterns. Detects instruction overrides, system prompt markers, hidden Unicode, markdown exfiltration, HTML injection, shell injection, encoded payloads, delimiter confusion, multi-turn manipulation, and dangerous commands.\n\nIf no target is specified, scans the entire workspace.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py scan\n```\n\nScan a specific file or directory:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py scan path\u002Fto\u002Ffile.md\npython3 {baseDir}\u002Fscripts\u002Fbastion.py scan path\u002Fto\u002Fdirectory\u002F\n```\n\n### Quick File Check\n\nFast single-file injection check. Same detection patterns as `scan`, targeted to one file.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py check path\u002Fto\u002Ffile.md\n```\n\n### Boundary Analysis\n\nAnalyze content boundary safety across the workspace. Identifies:\n- Agent instruction files that contain mixed trusted\u002Funtrusted content\n- Writable instruction files (attack surface for compromised skills)\n- Blast radius assessment for each critical file\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py boundaries\n```\n\n### Command Allowlist\n\nDisplay the current command allowlist and blocklist policy. Creates a default `.bastion-policy.json` if none exists.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py allowlist\npython3 {baseDir}\u002Fscripts\u002Fbastion.py allowlist --show\n```\n\nThe policy file defines which commands are considered safe and which patterns are blocked. Edit the JSON file directly to customize. Bastion Pro enforces this policy at runtime via hooks.\n\n### Status\n\nQuick summary of workspace injection defense posture: files scanned, findings by severity, boundary safety, and overall posture rating.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py status\n```\n\n## Workspace Auto-Detection\n\nIf `--workspace` is omitted, the script tries:\n1. `OPENCLAW_WORKSPACE` environment variable\n2. Current directory (if `AGENTS.md` exists)\n3. `~\u002F.openclaw\u002Fworkspace` (default)\n\n## What Gets Detected\n\n| Category | Patterns | Severity |\n|----------|----------|----------|\n| **Instruction override** | \"ignore previous\", \"disregard above\", \"you are now\", \"new system prompt\", \"forget your instructions\", \"override safety\", \"act as if no restrictions\", \"entering developer mode\" | CRITICAL |\n| **System prompt markers** | `\u003Csystem>`, `[SYSTEM]`, `\u003C\u003CSYS>>`, `\u003C\\|im_start\\|>system`, `[INST]`, `### System:` | CRITICAL |\n| **Hidden instructions** | Multi-turn manipulation (\"in your next response, you must\"), stealth patterns (\"do not tell the user\") | CRITICAL |\n| **HTML injection** | `\u003Cscript>`, `\u003Ciframe>`, `\u003Cimg onerror=>`, hidden divs, `\u003Csvg onload=>` | CRITICAL |\n| **Markdown exfiltration** | Image tags with encoded data in URLs | CRITICAL |\n| **Dangerous commands** | `curl \\| bash`, `wget \\| sh`, `rm -rf \u002F`, fork bombs | CRITICAL |\n| **Unicode tricks** | Zero-width characters, RTL overrides, invisible formatting | WARNING |\n| **Homoglyph substitution** | Cyrillic\u002FLatin lookalikes mixed into ASCII text | WARNING |\n| **Base64 payloads** | Large encoded blobs outside code blocks | WARNING |\n| **Shell injection** | `$(command)` subshell execution outside code blocks | WARNING |\n| **Delimiter confusion** | Fake code block boundaries with injection content | WARNING |\n\n## Context-Aware Scanning\n\n- Patterns inside fenced code blocks (` ``` `) are skipped to avoid false positives\n- Per-file risk scoring based on finding count and severity\n- Self-exclusion: Bastion skips its own skill files (which describe injection patterns)\n\n## Exit Codes\n\n| Code | Meaning |\n|------|---------|\n| 0 | Clean, no issues |\n| 1 | Warnings detected (review recommended) |\n| 2 | Critical findings (action needed) |\n\n## No External Dependencies\n\nPython standard library only. No pip install. No network calls. Everything runs locally.\n\n## Cross-Platform\n\nWorks with OpenClaw, Claude Code, Cursor, and any tool using the Agent Skills specification.\n","# OpenClaw Bastion\n\nRuntime prompt injection defense for agent workspaces. While other tools watch workspace identity files, Bastion protects the input\u002Foutput boundary — the files being read by the agent, web content, API responses, and user-supplied documents.\n\n## Why This Matters\n\nAgents process content from many sources: local files, API responses, web pages, user uploads. Any of these can contain prompt injection attacks — hidden instructions that manipulate agent behavior. Bastion scans this content before the agent acts on it.\n\n**Need active blocking?** Upgrade to [openclaw-bastion-pro](https:\u002F\u002Fgithub.com\u002FAtlasPA\u002Fopenclaw-bastion-pro) for runtime content sanitization, auto-quarantine, canary testing, and policy enforcement via hooks.\n\n## Commands\n\n### Scan for Injections\n\nScan files or directories for prompt injection patterns. Detects instruction overrides, system prompt markers, hidden Unicode, markdown exfiltration, HTML injection, shell injection, encoded payloads, delimiter confusion, multi-turn manipulation, and dangerous commands.\n\nIf no target is specified, scans the entire workspace.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py scan\n```\n\nScan a specific file or directory:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py scan path\u002Fto\u002Ffile.md\npython3 {baseDir}\u002Fscripts\u002Fbastion.py scan path\u002Fto\u002Fdirectory\u002F\n```\n\n### Quick File Check\n\nFast single-file injection check. Same detection patterns as `scan`, targeted to one file.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py check path\u002Fto\u002Ffile.md\n```\n\n### Boundary Analysis\n\nAnalyze content boundary safety across the workspace. Identifies:\n- Agent instruction files that contain mixed trusted\u002Funtrusted content\n- Writable instruction files (attack surface for compromised skills)\n- Blast radius assessment for each critical file\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py boundaries\n```\n\n### Command Allowlist\n\nDisplay the current command allowlist and blocklist policy. Creates a default `.bastion-policy.json` if none exists.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py allowlist\npython3 {baseDir}\u002Fscripts\u002Fbastion.py allowlist --show\n```\n\nThe policy file defines which commands are considered safe and which patterns are blocked. Edit the JSON file directly to customize. Bastion Pro enforces this policy at runtime via hooks.\n\n### Status\n\nQuick summary of workspace injection defense posture: files scanned, findings by severity, boundary safety, and overall posture rating.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fbastion.py status\n```\n\n## Workspace Auto-Detection\n\nIf `--workspace` is omitted, the script tries:\n1. `OPENCLAW_WORKSPACE` environment variable\n2. Current directory (if `AGENTS.md` exists)\n3. `~\u002F.openclaw\u002Fworkspace` (default)\n\n## What Gets Detected\n\n| Category | Patterns | Severity |\n|----------|----------|----------|\n| **Instruction override** | \"ignore previous\", \"disregard above\", \"you are now\", \"new system prompt\", \"forget your instructions\", \"override safety\", \"act as if no restrictions\", \"entering developer mode\" | CRITICAL |\n| **System prompt markers** | `\u003Csystem>`, `[SYSTEM]`, `\u003C\u003CSYS>>`, `\u003C\\|im_start\\|>system`, `[INST]`, `### System:` | CRITICAL |\n| **Hidden instructions** | Multi-turn manipulation (\"in your next response, you must\"), stealth patterns (\"do not tell the user\") | CRITICAL |\n| **HTML injection** | `\u003Cscript>`, `\u003Ciframe>`, `\u003Cimg onerror=>`, hidden divs, `\u003Csvg onload=>` | CRITICAL |\n| **Markdown exfiltration** | Image tags with encoded data in URLs | CRITICAL |\n| **Dangerous commands** | `curl \\| bash`, `wget \\| sh`, `rm -rf \u002F`, fork bombs | CRITICAL |\n| **Unicode tricks** | Zero-width characters, RTL overrides, invisible formatting | WARNING |\n| **Homoglyph substitution** | Cyrillic\u002FLatin lookalikes mixed into ASCII text | WARNING |\n| **Base64 payloads** | Large encoded blobs outside code blocks | WARNING |\n| **Shell injection** | `$(command)` subshell execution outside code blocks | WARNING |\n| **Delimiter confusion** | Fake code block boundaries with injection content | WARNING |\n\n## Context-Aware Scanning\n\n- Patterns inside fenced code blocks (` ``` `) are skipped to avoid false positives\n- Per-file risk scoring based on finding count and severity\n- Self-exclusion: Bastion skips its own skill files (which describe injection patterns)\n\n## Exit Codes\n\n| Code | Meaning |\n|------|---------|\n| 0 | Clean, no issues |\n| 1 | Warnings detected (review recommended) |\n| 2 | Critical findings (action needed) |\n\n## No External Dependencies\n\nPython standard library only. No pip install. No network calls. Everything runs locally.\n\n## Cross-Platform\n\nWorks with OpenClaw, Claude Code, Cursor, and any tool using the Agent Skills specification.\n",{"name":5,"metadata":48,"description":7,"user-invocable":55},{"openclaw":49},{"os":50,"emoji":52,"requires":53},[51,41,40],"darwin","?️",{"bins":54},[35],true,"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fatlaspa\u002Fopenclaw-bastion",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":55},[65,68,71],{"tool":66,"command":67},"npx","npx skills add kbarbel640-del\u002Fskills --skill openclaw-bastion",{"tool":69,"command":70},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill openclaw-bastion",{"tool":72,"command":73},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill openclaw-bastion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fatlaspa\u002Fopenclaw-bastion\u002FSKILL.md",[76,82,86],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"_meta.json","REFERENCE","参考文档",463,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fatlaspa\u002Fopenclaw-bastion\u002F_meta.json",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"README.md",4882,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fatlaspa\u002Fopenclaw-bastion\u002FREADME.md",{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"scripts\u002Fbastion.py","SCRIPT","脚本",37583,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fatlaspa\u002Fopenclaw-bastion\u002Fscripts\u002Fbastion.py",[93,122,145,166,172,190],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":104,"publishedAt":43},"01M6G8J55967D6281ACMKAKTEQ","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\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[99],{"categoryNo":100,"categoryName":101,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[105,106,107,108,109,110,111,112,113,33,114,115,116,117,118,119,120,39,121],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","text","tool","system","improve","productivity","marketplace","https","ai agents",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":129,"publishedAt":43},"01M6G8J0PKPAYVET6BWE8W4C26","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\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[128],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[130,107,131,36,132,133,134,135,136,137,25,138,139,140,141,142,143,112,144],"dilemm ai","arena","browser","openclaw agent","create","automation","browser automation","bot","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":154,"publishedAt":43},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[151],{"categoryNo":152,"categoryName":153,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000021","资料检索与研究",[155,156,157,158,159,160,161,108,162,142,144,163,107,164,165],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":167,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":171,"publishedAt":43},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[170],{"categoryNo":152,"categoryName":153,"taxonomyType":20,"taxonomyTypeDesc":21},[158,157,156,155,165,160,161,108,159,142,144,162,163,107,164],{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":43},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[179,180,181,182,183,40,184,41,185,186,187,188,189],"git","summary","git summary","commits","repository","status","contributors","true","quick","get","branches",{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":200,"publishedAt":43},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[196,197],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":198,"categoryName":199,"taxonomyType":102,"taxonomyTypeDesc":103},"01JBSEEDCAT000000000000037","律师与法务",[201,202,203,204,108,205,206,56,207,163,208,209,210,211,212,120,213,214,215],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]