[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77SX99288XAHEM421YY7BE5":3,"skill-same:01M77SX99288XAHEM421YY7BE5":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":13,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M77SX99288XAHEM421YY7BE5","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.","ConcertoNotes\u002Fcodex-plugins","ConcertoNotes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F249301288?v=4","01M77NJ0BK2KN5YW0D8RHD99TB","01M77NJ0CCEDPATAY3JTXEWNK5",0,"MIT","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Frust-ffi-safe-wrappers\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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":14,"metadata":23,"description":7,"compatibility":28},{"tags":24,"version":25,"category":26,"displayName":27},"rust,ffi,c-abi,unsafe,bindings","0.1.0","Rust","Rust FFI Safe Wrappers","Codex, Claude Code, and other Agent Skills-compatible clients.","main","9ba3c9fadff1092395837bf1502e1b8a7f98b1e1","plugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Frust-ffi-safe-wrappers","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins","https:\u002F\u002Fgithub.com\u002FConcertoNotes","2026-06-26 10:13:54",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ConcertoNotes\u002Fcodex-plugins --skill rust-ffi-safe-wrappers",{"tool":41,"command":42},"bunx","bunx skills add ConcertoNotes\u002Fcodex-plugins --skill rust-ffi-safe-wrappers",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ConcertoNotes\u002Fcodex-plugins --skill rust-ffi-safe-wrappers","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Frust-ffi-safe-wrappers\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"agents\u002Fopenai.yaml","REFERENCE","参考文档",229,"https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Frust-ffi-safe-wrappers\u002Fagents\u002Fopenai.yaml",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fffi-boundary-patterns.md",2080,"https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fcommunity\u002Flvtd-skills\u002Fskills\u002Frust-ffi-safe-wrappers\u002Freferences\u002Fffi-boundary-patterns.md",[60,69,76,84,91,98],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":64,"licenseFileUrl":65,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M77YB7WW36DS9AERTWP673E0","android-emulator-qa","Use when validating Android feature flows in an emulator with adb-driven launch, input, UI-tree inspection, screenshots, and logcat capture.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Ftest-android-apps\u002Fskills\u002Fandroid-emulator-qa\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Ftest-android-apps\u002Fskills\u002Fandroid-emulator-qa\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M77Y7AA8N45G6NM0WJSS2W9C","supabase-postgres-best-practices","Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fsupabase\u002Fskills\u002Fsupabase-postgres-best-practices\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":64,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M77Y2W5H5YGSW7MYWEJ8HYXD","sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fsentry\u002Fskills\u002Fsentry\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Fsentry\u002Fskills\u002Fsentry\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M77Y06GV1DAME7PN9KBFHWRX","render-workflows","Sets up, develops, tests, and deploys Render Workflows. Covers first-time scaffolding (via CLI or manual), SDK installation (Python or TypeScript), task patterns (retries, subtasks, fan-out), local development, Dashboard deployment, and troubleshooting. Use when a user wants to set up Render Workflows for the first time, scaffold a workflow service, add or modify workflow tasks, test workflows locally, or deploy workflows to Render.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Frender\u002Fskills\u002Frender-workflows\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M77Y01A6RJA8VYT7CZ2TVETF","render-web-services","Configures Render web services—port binding, TLS, health checks, custom domains, auto-deploy, PR previews, persistent disks, and deploy lifecycle. Use when the user needs to set up a web service, fix health check failures, add a custom domain, configure zero-downtime deploys, or troubleshoot port binding issues.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Frender\u002Fskills\u002Frender-web-services\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":18},"01M77XZW1AZ6B6NZTWWFVY72T3","render-static-sites","Deploys and configures static sites on Render's global CDN—build commands, publish paths, SPA routing, redirects, custom headers, and PR previews. Use when the user needs to deploy a static site, set up a React\u002FVue\u002FHugo\u002FGatsby frontend, configure SPA fallback routing, add redirect rules, customize response headers, or choose between a static site and a web service for their frontend. Trigger terms: static site, CDN, SPA, single-page app, React deploy, Vue deploy, Hugo, Gatsby, Docusaurus, Jekyll, staticPublishPath.","https:\u002F\u002Fgithub.com\u002FConcertoNotes\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fofficial\u002Frender\u002Fskills\u002Frender-static-sites\u002FSKILL.md",[],[]]