[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C5D1ZYFHGRG901WWDSQ66H":3,"skill-same:01M6C5D1ZYFHGRG901WWDSQ66H":77},{"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":23,"linkOnly":24,"markdownContent":25,"markdownBody":26,"frontMatter":27,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":6,"updatedAt":40,"install":41,"resources":54},"01M6C5D1ZYFHGRG901WWDSQ66H","hidden-unicode",null,"hidden unicode tags","canyonroad\u002Fagentsh","canyonroad","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F252816444?v=4","01M6C5CW9DZJJE3Y7NEANC5RE6","Canyon Road","01M6C5CWD5E2JF0MZT220K17BJ",408,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcanyonroad\u002Fagentsh\u002Fblob\u002Fmain\u002Finternal\u002Fskillcheck\u002Ftestdata\u002Fskills\u002Fhidden-unicode\u002FSKILL.md",[],[19,20,21,22],"hidden unicode","Unicode","hidden","tags","2026-11-10 10:12:30",false,"---\neffort: high\nname: adopt-c-bounds-safety\nwhen_to_use: |\n  When working with, reading, reviewing, comparing, debugging or analyzing C code that has adopted -fbounds-safety or wants to adopt it.  Key syntax to look for Bounds annotations (__counted_by, __counted_by_or_null, __sized_by, __sized_by_or_null, __ended_by, __single, __indexable, __bidi_indexable, __unsafe_indexable, __null_terminated, __terminated_by), its helper functions (e.g.: __unsafe_forge_bidi_indexable, __unsafe_forge_single,  __null_terminated_to_indexable, __unsafe_null_terminated_to_indexable,  __unsafe_null_terminated_from_indexable) or other macros  (e.g. __ptrcheck_abi_assume_single) or includes of \"ptrcheck.h\".\ndescription: |\n  Guide for the C -fbounds-safety language extension. Covers the language model, pointer annotations, adopting bounds-safety in existing C code, compiler build settings and modes, and runtime debugging of bounds violations.\n---\n## How to Use This Skill\n\nWhen helping with `-fbounds-safety` adoption or code changes, ask clarifying questions about the user's codebase and goals before suggesting changes. For complex tasks involving multiple files or non-trivial annotation decisions, use plan mode to propose an approach before implementing.\n\n# `-fbounds-safety` Language Extension\n\n`-fbounds-safety` is a C language extension that prevents out-of-bounds memory access by enforcing bounds safety at the language level. It inserts automatic bounds checks at runtime, rejects unsafe pointer operations at compile time, and requires programmers to provide bounds annotations so the compiler can guarantee safety. Out-of-bounds accesses become deterministic traps instead of exploitable vulnerabilities.\n\n## Detailed Documentation\n\n### Required reading before adoption work\n\nYou MUST have fully read the following three documents (via the Read tool) at the start of an adoption task, and re-read them via the Read tool before any source-modifying step in the adoption workflow unless their content is verifiably fresh in your active context:\n\n- [adoption-strategies.md](references\u002Fadoption-strategies.md) — the workflow for adopting `-fbounds-safety` in an existing C project (full and header-only modes).\n- [language-overview.md](references\u002Flanguage-overview.md) — the language reference for `-fbounds-safety`: pointer kinds, annotations, and the rules that govern them.\n- [common-patterns-and-pitfalls.md](references\u002Fcommon-patterns-and-pitfalls.md) — recipes and anti-patterns encountered during real-world adoption.\n\n### Other references (read on demand)\n\nFor compiler flags, Xcode build settings, soft trap mode, and `ptrcheck.h` configuration, read [build-settings.md](references\u002Fbuild-settings.md).\n\nFor debugging bounds violations at runtime — trap behavior, LLDB commands, wide pointer inspection, watchpoints, crash log analysis, and soft trap debugging, read [runtime-debugging.md](references\u002Fruntime-debugging.md).","## How to Use This Skill\n\nWhen helping with `-fbounds-safety` adoption or code changes, ask clarifying questions about the user's codebase and goals before suggesting changes. For complex tasks involving multiple files or non-trivial annotation decisions, use plan mode to propose an approach before implementing.\n\n# `-fbounds-safety` Language Extension\n\n`-fbounds-safety` is a C language extension that prevents out-of-bounds memory access by enforcing bounds safety at the language level. It inserts automatic bounds checks at runtime, rejects unsafe pointer operations at compile time, and requires programmers to provide bounds annotations so the compiler can guarantee safety. Out-of-bounds accesses become deterministic traps instead of exploitable vulnerabilities.\n\n## Detailed Documentation\n\n### Required reading before adoption work\n\nYou MUST have fully read the following three documents (via the Read tool) at the start of an adoption task, and re-read them via the Read tool before any source-modifying step in the adoption workflow unless their content is verifiably fresh in your active context:\n\n- [adoption-strategies.md](references\u002Fadoption-strategies.md) — the workflow for adopting `-fbounds-safety` in an existing C project (full and header-only modes).\n- [language-overview.md](references\u002Flanguage-overview.md) — the language reference for `-fbounds-safety`: pointer kinds, annotations, and the rules that govern them.\n- [common-patterns-and-pitfalls.md](references\u002Fcommon-patterns-and-pitfalls.md) — recipes and anti-patterns encountered during real-world adoption.\n\n### Other references (read on demand)\n\nFor compiler flags, Xcode build settings, soft trap mode, and `ptrcheck.h` configuration, read [build-settings.md](references\u002Fbuild-settings.md).\n\nFor debugging bounds violations at runtime — trap behavior, LLDB commands, wide pointer inspection, watchpoints, crash log analysis, and soft trap debugging, read [runtime-debugging.md](references\u002Fruntime-debugging.md).",{"name":28,"effort":29,"description":30,"when_to_use":31},"adopt-c-bounds-safety","high","Guide for the C -fbounds-safety language extension. Covers the language model, pointer annotations, adopting bounds-safety in existing C code, compiler build settings and modes, and runtime debugging of bounds violations.","When working with, reading, reviewing, comparing, debugging or analyzing C code that has adopted -fbounds-safety or wants to adopt it.  Key syntax to look for Bounds annotations (__counted_by, __counted_by_or_null, __sized_by, __sized_by_or_null, __ended_by, __single, __indexable, __bidi_indexable, __unsafe_indexable, __null_terminated, __terminated_by), its helper functions (e.g.: __unsafe_forge_bidi_indexable, __unsafe_forge_single,  __null_terminated_to_indexable, __unsafe_null_terminated_to_indexable,  __unsafe_null_terminated_from_indexable) or other macros  (e.g. __ptrcheck_abi_assume_single) or includes of \"ptrcheck.h\".\n","master","8d883d350240b10cc23da854de1fb212e889caed","internal\u002Fskillcheck\u002Ftestdata\u002Fskills\u002Fhidden-unicode",19,"https:\u002F\u002Fgithub.com\u002Fcanyonroad\u002Fagentsh","https:\u002F\u002Fwww.agentsh.org","https:\u002F\u002Fgithub.com\u002Fcanyonroad","https:\u002F\u002Fwww.canyonroad.ai","2026-11-08 13:42:25",{"source":8,"skillName":28,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add canyonroad\u002Fagentsh --skill adopt-c-bounds-safety",{"tool":47,"command":48},"bunx","bunx skills add canyonroad\u002Fagentsh --skill adopt-c-bounds-safety",{"tool":50,"command":51},"pnpm","pnpm dlx skills add canyonroad\u002Fagentsh --skill adopt-c-bounds-safety","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcanyonroad\u002Fagentsh\u002Fblob\u002Fmain\u002Finternal\u002Fskillcheck\u002Ftestdata\u002Fskills\u002Fhidden-unicode\u002FSKILL.md",true,[55,61,65,69,73],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fadoption-strategies.md","REFERENCE","参考文档",54181,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fadopt-c-bounds-safety\u002Freferences\u002Fadoption-strategies.md",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fbuild-settings.md",2962,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fadopt-c-bounds-safety\u002Freferences\u002Fbuild-settings.md",{"path":66,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fcommon-patterns-and-pitfalls.md",37178,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fadopt-c-bounds-safety\u002Freferences\u002Fcommon-patterns-and-pitfalls.md",{"path":70,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Flanguage-overview.md",40199,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fadopt-c-bounds-safety\u002Freferences\u002Flanguage-overview.md",{"path":74,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fruntime-debugging.md",8902,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fadopt-c-bounds-safety\u002Freferences\u002Fruntime-debugging.md",[78,107,125,137,149,163],{"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":89,"publishedAt":23},"01M6C5DHC6032PY4G7NYEN3V75","agentsh-policy-edit","Use when adding, removing, or updating rules in an existing AgentSH policy, modifying security permissions, HTTP service declarations, Postgres-family database rules, resource limits, or policy YAML files","https:\u002F\u002Fgithub.com\u002Fcanyonroad\u002Fagentsh\u002Fblob\u002Fmain\u002Fskills\u002Fagentsh-policy-edit\u002FSKILL.md",[84],{"categoryNo":85,"categoryName":86,"taxonomyType":87,"taxonomyTypeDesc":88},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",[90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],"policy","edit","agentsh policy edit","database","when","security","http","permissions","limits","yaml","Rules","Existing","use","service","files","family","postgres",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":23},"01M6C5DETGZX3B0WD2R761P83G","agentsh-policy-create","Use when creating a new AgentSH security policy, including agent sandboxes, CI pipelines, development environments, HTTP service gateways, or Postgres-family database access policies","https:\u002F\u002Fgithub.com\u002Fcanyonroad\u002Fagentsh\u002Fblob\u002Fmain\u002Fskills\u002Fagentsh-policy-create\u002FSKILL.md",[],[114,115,90,116,117,118,94,119,95,103,96,120,93,121,122,123,102,124,106,105],"agentsh policy create","create","sandboxes","agent sandboxes","security policy","new","development","gateways","ci","access","pipelines",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":23},"01M6C5DD49W3XK0Z22TNTC3YE4","with-allowed","Declares allowed tools","https:\u002F\u002Fgithub.com\u002Fcanyonroad\u002Fagentsh\u002Fblob\u002Fmain\u002Finternal\u002Fskillcheck\u002Ftestdata\u002Fskills\u002Fwith-allowed\u002FSKILL.md",[],[132,133,134,135,136],"with","with allowed","Tools","Bash","read",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":23},"01M6C5DB5E6Y4HFMSG0YA8H2KF","scope-mismatch","declares read-only but writes","https:\u002F\u002Fgithub.com\u002Fcanyonroad\u002Fagentsh\u002Fblob\u002Fmain\u002Finternal\u002Fskillcheck\u002Ftestdata\u002Fskills\u002Fscope-mismatch\u002FSKILL.md",[],[144,145,136,146,147,148],"scope","scope mismatch","only","but","read-only",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":158,"publishedAt":23},"01M6C5D9J59TP101DKT4HVFYDP","prompt-injection","prompt injection markers","https:\u002F\u002Fgithub.com\u002Fcanyonroad\u002Fagentsh\u002Fblob\u002Fmain\u002Finternal\u002Fskillcheck\u002Ftestdata\u002Fskills\u002Fprompt-injection\u002FSKILL.md",[155],{"categoryNo":156,"categoryName":157,"taxonomyType":87,"taxonomyTypeDesc":88},"01JBSEEDCAT000000000000023","Skill与智能体开发",[159,160,161,162],"prompt","injection","prompt injection","markers",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":23},"01M6C5D7X3NSXQVW6BM69943BP","oversized","Trips the per-file size limit","https:\u002F\u002Fgithub.com\u002Fcanyonroad\u002Fagentsh\u002Fblob\u002Fmain\u002Finternal\u002Fskillcheck\u002Ftestdata\u002Fskills\u002Foversized\u002FSKILL.md",[],[165,170,171,172],"file","limit","size"]