[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MCN3ZQ3ZQB3K3SBRC4PQ2K":3,"skill-same:01M6MCN3ZQ3ZQB3K3SBRC4PQ2K":91},{"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":23,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6MCN3ZQ3ZQB3K3SBRC4PQ2K","rust-ffi-safe-wrappers",null,"Design and review Rust FFI boundaries that keep raw declarations isolated behind safe ownership, lifetime, error, and cleanup wrappers. Use when writing, refactoring, or reviewing unsafe extern blocks, C ABI wrappers, repr(C) types, CString, CStr, raw handles, Drop cleanup, bindgen, cbindgen, or panic-safe foreign boundaries.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-ffi-safe-wrappers\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"rust ffi safe wrappers","safe","rust","ffi","drop","when","review rust","unsafe","blocks","types","CSTR","error","keep","cbindgen","design","use","refactoring","code","cleanup","codex","review","writing","2026-11-10 10:12:30",false,"---\nname: rust-ffi-safe-wrappers\ndescription: Design and review Rust FFI boundaries that keep raw declarations isolated behind safe ownership, lifetime, error, and cleanup wrappers. Use when writing, refactoring, or reviewing unsafe extern blocks, C ABI wrappers, repr(C) types, CString, CStr, raw handles, Drop cleanup, bindgen, cbindgen, or panic-safe foreign boundaries.\nlicense: MIT\ncompatibility: Codex, Claude Code, and other Agent Skills-compatible clients.\nmetadata:\n  version: \"0.1.0\"\n  displayName: Rust FFI Safe Wrappers\n  category: Rust\n  tags: rust,ffi,c-abi,unsafe,bindings\n---\n\n# Rust FFI Safe Wrappers\n\nUse this skill to wrap foreign interfaces in Rust APIs that make ownership,\nlifetimes, errors, and cleanup explicit. FFI code should be unsafe at the raw\nboundary and safe for normal Rust callers.\n\n## Core Workflow\n\n1. Separate raw declarations from safe wrappers. Put raw `unsafe extern`\n   bindings in a small private module.\n2. Verify ABI, type layout, calling convention, ownership, nullability,\n   threading, and error conventions against the foreign header or docs.\n3. Use `unsafe extern \"C\"` blocks for modern Rust, especially Rust 2024 edition\n   code. Leave safety-conditional items unqualified or explicitly `unsafe`, and\n   mark individual extern items `safe` only when calling them is safe for all\n   Rust inputs.\n4. Use `#[repr(C)]` for structs and enums that cross the ABI boundary. Do not\n   expose Rust-only layout types across C.\n5. Use `CString` for owned nul-terminated strings sent to C and `CStr` for\n   borrowed C strings. Never treat arbitrary C memory as Rust-owned.\n6. Wrap raw handles in Rust types with private fields and `Drop` cleanup using\n   the matching foreign deallocator.\n7. Prevent Rust panics from crossing `extern \"C\"` boundaries. Catch panics or\n   expose an ABI that permits unwinding only when deliberately using\n   `\"C-unwind\"`.\n\n## Wrapper Rules\n\nRead `references\u002Fffi-boundary-patterns.md` before adding or reviewing FFI\nbindings.\n\n- Prefer `core::ffi` or `std::ffi` C types over guessing integer sizes.\n- Convert foreign error codes into Rust `Result` at the wrapper boundary.\n- Represent nullable handles as `Option\u003CNonNull\u003CT>>` internally when useful,\n  but expose safe Rust types to callers.\n- Tie borrowed values to owner lifetimes with normal references or\n  `PhantomData` when the compiler cannot see the relationship.\n- Make initialization and shutdown idempotent with `OnceLock`, `LazyLock`, or\n  `Once` when the foreign library requires process-wide setup.\n- Use `bindgen` for large or changing C headers and `cbindgen` when exporting a\n  Rust API to C, but still review generated unsafe signatures.\n\n## Rust 2024 Syntax Checks\n\n```rust\nunsafe extern \"C\" {\n    pub fn library_open(path: *const core::ffi::c_char) -> *mut RawHandle;\n    pub fn library_close(handle: *mut RawHandle);\n    \u002F\u002F Mark an item `safe` only when calling it is valid for all Rust inputs:\n    \u002F\u002F pub safe fn library_version() -> core::ffi::c_int;\n}\n\n\u002F\u002F SAFETY: This exported symbol name is unique for this library.\n#[unsafe(no_mangle)]\npub extern \"C\" fn plugin_version() -> core::ffi::c_int {\n    1\n}\n```\n\nUnsafe attributes such as `no_mangle`, `export_name`, and `link_section` need\nthe `unsafe(...)` form in Rust 2024 edition code. Include a `SAFETY` comment\nwhere symbol uniqueness or linker behavior is part of the contract.\n\n## Review Checklist\n\n- Raw bindings are private or clearly separated from safe wrappers.\n- Every pointer parameter has a documented nullability and ownership rule.\n- Every allocation is freed by the same side or an explicitly matching\n  deallocator.\n- Strings and buffers preserve length, encoding, and nul-byte requirements.\n- Panics, callbacks, and threads crossing the boundary have explicit behavior.\n","# Rust FFI Safe Wrappers\n\nUse this skill to wrap foreign interfaces in Rust APIs that make ownership,\nlifetimes, errors, and cleanup explicit. FFI code should be unsafe at the raw\nboundary and safe for normal Rust callers.\n\n## Core Workflow\n\n1. Separate raw declarations from safe wrappers. Put raw `unsafe extern`\n   bindings in a small private module.\n2. Verify ABI, type layout, calling convention, ownership, nullability,\n   threading, and error conventions against the foreign header or docs.\n3. Use `unsafe extern \"C\"` blocks for modern Rust, especially Rust 2024 edition\n   code. Leave safety-conditional items unqualified or explicitly `unsafe`, and\n   mark individual extern items `safe` only when calling them is safe for all\n   Rust inputs.\n4. Use `#[repr(C)]` for structs and enums that cross the ABI boundary. Do not\n   expose Rust-only layout types across C.\n5. Use `CString` for owned nul-terminated strings sent to C and `CStr` for\n   borrowed C strings. Never treat arbitrary C memory as Rust-owned.\n6. Wrap raw handles in Rust types with private fields and `Drop` cleanup using\n   the matching foreign deallocator.\n7. Prevent Rust panics from crossing `extern \"C\"` boundaries. Catch panics or\n   expose an ABI that permits unwinding only when deliberately using\n   `\"C-unwind\"`.\n\n## Wrapper Rules\n\nRead `references\u002Fffi-boundary-patterns.md` before adding or reviewing FFI\nbindings.\n\n- Prefer `core::ffi` or `std::ffi` C types over guessing integer sizes.\n- Convert foreign error codes into Rust `Result` at the wrapper boundary.\n- Represent nullable handles as `Option\u003CNonNull\u003CT>>` internally when useful,\n  but expose safe Rust types to callers.\n- Tie borrowed values to owner lifetimes with normal references or\n  `PhantomData` when the compiler cannot see the relationship.\n- Make initialization and shutdown idempotent with `OnceLock`, `LazyLock`, or\n  `Once` when the foreign library requires process-wide setup.\n- Use `bindgen` for large or changing C headers and `cbindgen` when exporting a\n  Rust API to C, but still review generated unsafe signatures.\n\n## Rust 2024 Syntax Checks\n\n```rust\nunsafe extern \"C\" {\n    pub fn library_open(path: *const core::ffi::c_char) -> *mut RawHandle;\n    pub fn library_close(handle: *mut RawHandle);\n    \u002F\u002F Mark an item `safe` only when calling it is valid for all Rust inputs:\n    \u002F\u002F pub safe fn library_version() -> core::ffi::c_int;\n}\n\n\u002F\u002F SAFETY: This exported symbol name is unique for this library.\n#[unsafe(no_mangle)]\npub extern \"C\" fn plugin_version() -> core::ffi::c_int {\n    1\n}\n```\n\nUnsafe attributes such as `no_mangle`, `export_name`, and `link_section` need\nthe `unsafe(...)` form in Rust 2024 edition code. Include a `SAFETY` comment\nwhere symbol uniqueness or linker behavior is part of the contract.\n\n## Review Checklist\n\n- Raw bindings are private or clearly separated from safe wrappers.\n- Every pointer parameter has a documented nullability and ownership rule.\n- Every allocation is freed by the same side or an explicitly matching\n  deallocator.\n- Strings and buffers preserve length, encoding, and nul-byte requirements.\n- Panics, callbacks, and threads crossing the boundary have explicit behavior.\n",{"name":5,"license":15,"metadata":51,"description":7,"compatibility":56},{"tags":52,"version":53,"category":54,"displayName":55},"rust,ffi,c-abi,unsafe,bindings","0.1.0","Rust","Rust FFI Safe Wrappers","Codex, Claude Code, and other Agent Skills-compatible clients.","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-ffi-safe-wrappers",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-ffi-safe-wrappers",{"tool":73,"command":74},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-ffi-safe-wrappers",{"tool":76,"command":77},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-ffi-safe-wrappers","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-ffi-safe-wrappers\u002FSKILL.md",true,[81,87],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"agents\u002Fopenai.yaml","REFERENCE","参考文档",229,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-ffi-safe-wrappers\u002Fagents\u002Fopenai.yaml",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fffi-boundary-patterns.md",2080,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-ffi-safe-wrappers\u002Freferences\u002Fffi-boundary-patterns.md",[92,101,109,117,125,133],{"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":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":100},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":100},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":113,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":100},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":121,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":100},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"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":129,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":100},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":137,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":100},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]