[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MCP6E3N1AGSFDC0PNDFSRA":3,"skill-same:01M6MCP6E3N1AGSFDC0PNDFSRA":94},{"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":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":65,"ownerHtmlUrl":66,"ownerBlogUrl":67,"ownerDescription":68,"updatedAt":69,"install":70,"resources":83},"01M6MCP6E3N1AGSFDC0PNDFSRA","rust-ownership-borrowing",null,"Design and review Rust ownership, borrowing, lifetimes, and interior mutability so data flow matches the domain model. Use when writing, refactoring, or reviewing Rust code that hits move, borrow checker, aliasing, Clone, Copy, Rc, Arc, RefCell, or lifetime problems.","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-ownership-borrowing\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,46,47,48],"rust ownership borrowing","rust","borrowing","ownership","domain model","when","data flow","clone","review rust","checker","arc","move","clients","copy","design","domain","use","model","refactoring","data","flow","code","codex","review","writing","2026-11-10 10:12:30",false,"---\nname: rust-ownership-borrowing\ndescription: Design and review Rust ownership, borrowing, lifetimes, and interior mutability so data flow matches the domain model. Use when writing, refactoring, or reviewing Rust code that hits move, borrow checker, aliasing, Clone, Copy, Rc, Arc, RefCell, or lifetime problems.\nlicense: MIT\ncompatibility: Codex, Claude Code, and other Agent Skills-compatible clients.\nmetadata:\n  version: \"0.1.0\"\n  displayName: Rust Ownership Borrowing\n  category: Rust\n  tags: rust,ownership,borrowing,lifetimes,borrow-checker\n---\n\n# Rust Ownership Borrowing\n\nUse this skill to make ownership shape match the program's data flow. Treat\nborrow-checker errors as design feedback: decide who owns each value, how long\naccess must last, and whether mutation needs exclusivity or a different data\nshape.\n\n## Core Workflow\n\n1. Identify the owner of each value crossing the failing code path.\n2. Decide the required access for each function: own, shared borrow, mutable\n   borrow, or shared ownership.\n3. Shorten borrows before changing types. Introduce blocks, temporary values,\n   helper functions, or earlier extraction so references end before mutation.\n4. Prefer moving values when the caller no longer needs them. Prefer borrowing\n   when the caller retains ownership. Clone only when duplicate ownership is\n   intentional and the cost is acceptable.\n5. Replace self-referential or graph-like designs with IDs, indices, arenas, or\n   ownership trees before reaching for `Rc\u003CRefCell\u003C_>>`.\n6. Use `Rc` for single-threaded shared ownership and `Arc` for cross-thread\n   shared ownership. Add `Cell`, `RefCell`, `Mutex`, or `RwLock` only when the\n   mutation model is explicit.\n7. Add tests that exercise the ownership-sensitive behavior, not just the\n   compiler error that prompted the change.\n\n## Signature Rules\n\n- Take `T` when the function consumes or stores the value.\n- Take `&T` when the function only reads during the call.\n- Take `&mut T` when the function must mutate and no other access should occur.\n- Return owned values unless the returned reference is clearly tied to an input\n  lifetime.\n- Avoid accepting `&Vec\u003CT>`, `&String`, or `&PathBuf` when `&[T]`, `&str`, or\n  `&Path` expresses the needed capability.\n- Avoid adding lifetime parameters to structs unless the struct truly borrows\n  data owned elsewhere. Owned fields are usually simpler.\n\n## Common Fix Patterns\n\nRead `references\u002Fborrow-patterns.md` when resolving non-trivial compiler\nerrors or reviewing a borrow-heavy patch.\n\n- Narrow the scope of immutable borrows before taking a mutable borrow.\n- Use `Option::take`, `std::mem::take`, or `std::mem::replace` to move a field\n  out while leaving a valid value behind.\n- Use collection APIs such as `split_at_mut`, `get_mut`, `entry`, `drain`, and\n  `retain` instead of indexing patterns that create overlapping borrows.\n- Clone handles like `Arc`, `Rc`, and cheap IDs freely when that is the intended\n  ownership handle; avoid cloning payloads to silence the compiler.\n- Convert iterator chains to explicit loops only when it makes borrow lifetimes\n  clearer or avoids hidden captures.\n\n## Review Checklist\n\n- Ownership follows the domain model; types are not wrapped just to bypass the\n  borrow checker.\n- `Clone` is deliberate and tested for semantic independence where relevant.\n- Interior mutability has a clear invariant and a small access surface.\n- Lifetimes describe real borrowing relationships, not guesses added until the\n  compiler accepts the code.\n- Async or threaded code uses `Arc` plus the right synchronization primitive;\n  `Rc` and `RefCell` stay out of cross-thread paths.\n","# Rust Ownership Borrowing\n\nUse this skill to make ownership shape match the program's data flow. Treat\nborrow-checker errors as design feedback: decide who owns each value, how long\naccess must last, and whether mutation needs exclusivity or a different data\nshape.\n\n## Core Workflow\n\n1. Identify the owner of each value crossing the failing code path.\n2. Decide the required access for each function: own, shared borrow, mutable\n   borrow, or shared ownership.\n3. Shorten borrows before changing types. Introduce blocks, temporary values,\n   helper functions, or earlier extraction so references end before mutation.\n4. Prefer moving values when the caller no longer needs them. Prefer borrowing\n   when the caller retains ownership. Clone only when duplicate ownership is\n   intentional and the cost is acceptable.\n5. Replace self-referential or graph-like designs with IDs, indices, arenas, or\n   ownership trees before reaching for `Rc\u003CRefCell\u003C_>>`.\n6. Use `Rc` for single-threaded shared ownership and `Arc` for cross-thread\n   shared ownership. Add `Cell`, `RefCell`, `Mutex`, or `RwLock` only when the\n   mutation model is explicit.\n7. Add tests that exercise the ownership-sensitive behavior, not just the\n   compiler error that prompted the change.\n\n## Signature Rules\n\n- Take `T` when the function consumes or stores the value.\n- Take `&T` when the function only reads during the call.\n- Take `&mut T` when the function must mutate and no other access should occur.\n- Return owned values unless the returned reference is clearly tied to an input\n  lifetime.\n- Avoid accepting `&Vec\u003CT>`, `&String`, or `&PathBuf` when `&[T]`, `&str`, or\n  `&Path` expresses the needed capability.\n- Avoid adding lifetime parameters to structs unless the struct truly borrows\n  data owned elsewhere. Owned fields are usually simpler.\n\n## Common Fix Patterns\n\nRead `references\u002Fborrow-patterns.md` when resolving non-trivial compiler\nerrors or reviewing a borrow-heavy patch.\n\n- Narrow the scope of immutable borrows before taking a mutable borrow.\n- Use `Option::take`, `std::mem::take`, or `std::mem::replace` to move a field\n  out while leaving a valid value behind.\n- Use collection APIs such as `split_at_mut`, `get_mut`, `entry`, `drain`, and\n  `retain` instead of indexing patterns that create overlapping borrows.\n- Clone handles like `Arc`, `Rc`, and cheap IDs freely when that is the intended\n  ownership handle; avoid cloning payloads to silence the compiler.\n- Convert iterator chains to explicit loops only when it makes borrow lifetimes\n  clearer or avoids hidden captures.\n\n## Review Checklist\n\n- Ownership follows the domain model; types are not wrapped just to bypass the\n  borrow checker.\n- `Clone` is deliberate and tested for semantic independence where relevant.\n- Interior mutability has a clear invariant and a small access surface.\n- Lifetimes describe real borrowing relationships, not guesses added until the\n  compiler accepts the code.\n- Async or threaded code uses `Arc` plus the right synchronization primitive;\n  `Rc` and `RefCell` stay out of cross-thread paths.\n",{"name":5,"license":15,"metadata":54,"description":7,"compatibility":59},{"tags":55,"version":56,"category":57,"displayName":58},"rust,ownership,borrowing,lifetimes,borrow-checker","0.1.0","Rust","Rust Ownership Borrowing","Codex, Claude Code, and other Agent Skills-compatible clients.","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-ownership-borrowing",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":71,"prompt":81,"zipAvailable":82},[72,75,78],{"tool":73,"command":74},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-ownership-borrowing",{"tool":76,"command":77},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-ownership-borrowing",{"tool":79,"command":80},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-ownership-borrowing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-ownership-borrowing\u002FSKILL.md",true,[84,90],{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"agents\u002Fopenai.yaml","REFERENCE","参考文档",237,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-ownership-borrowing\u002Fagents\u002Fopenai.yaml",{"path":91,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fborrow-patterns.md",1990,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-ownership-borrowing\u002Freferences\u002Fborrow-patterns.md",[95,104,112,120,128,136],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":103},"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":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":103},"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":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":103},"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":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":124,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":103},"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":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":132,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":103},"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":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":140,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":103},"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",[],[]]