[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MCM74VJBC7MRXSEPEP1W4D":3,"skill-same:01M6MCM74VJBC7MRXSEPEP1W4D":93},{"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":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":64,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M6MCM74VJBC7MRXSEPEP1W4D","rust-concurrency-primitives",null,"Design and review thread-based Rust concurrency with explicit ownership, sharing, and synchronization choices. Use when writing, refactoring, or reviewing threads, scoped threads, channels, Arc, Mutex, RwLock, Condvar, atomics, OnceLock, LazyLock, Send, Sync, deadlocks, or shared state.","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-concurrency-primitives\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],"rust concurrency primitives","rust","concurrency","primitives","when","design","send","scoped","thread","arc","threads","with","channels","shared","use","synchronization","refactoring","mutex","state","code","sync","codex","review","writing","2026-11-10 10:12:30",false,"---\nname: rust-concurrency-primitives\ndescription: Design and review thread-based Rust concurrency with explicit ownership, sharing, and synchronization choices. Use when writing, refactoring, or reviewing threads, scoped threads, channels, Arc, Mutex, RwLock, Condvar, atomics, OnceLock, LazyLock, Send, Sync, deadlocks, or shared state.\nlicense: MIT\ncompatibility: Codex, Claude Code, and other Agent Skills-compatible clients.\nmetadata:\n  version: \"0.1.0\"\n  displayName: Rust Concurrency Primitives\n  category: Rust\n  tags: rust,concurrency,threads,synchronization,atomics\n---\n\n# Rust Concurrency Primitives\n\nUse this skill to design thread-based Rust concurrency with explicit ownership,\nsharing, and synchronization. Prefer the simplest primitive that matches the\ncoordination requirement before adding shared mutable state.\n\n## Core Workflow\n\n1. Classify the work: independent fork-join, producer\u002Fconsumer pipeline, shared\n   state, one-time initialization, or low-level atomic coordination.\n2. Prefer owned data per thread. Add shared ownership only when data must be\n   observed or mutated by multiple threads.\n3. Use `std::thread::scope` when child threads can borrow stack data and must\n   finish before the function returns.\n4. Use channels for ownership transfer and pipelines. Use `Arc\u003CMutex\u003CT>>` or\n   `Arc\u003CRwLock\u003CT>>` only when shared state is the clearer model.\n5. Keep lock scopes short and never call user-controlled or blocking code while\n   holding a lock unless that is the invariant being protected.\n6. Use `OnceLock` or `LazyLock` for thread-safe one-time initialization instead\n   of ad hoc global mutable state.\n7. Treat atomics as a specialized tool. Use `SeqCst` by default until a weaker\n   ordering is justified and documented.\n\n## Primitive Selection\n\nRead `references\u002Fthreading-shared-state.md` before introducing a new shared\nstate primitive or reviewing deadlock-prone code.\n\n| Need | Primitive |\n|------|-----------|\n| Borrow local data into short-lived threads | `std::thread::scope` |\n| Transfer work or results | `std::sync::mpsc` or project channel crate |\n| Shared read\u002Fwrite state | `Arc\u003CMutex\u003CT>>` |\n| Many readers, rare writers | `Arc\u003CRwLock\u003CT>>` |\n| Wait for condition changes | `Condvar` with `Mutex` |\n| One-time global initialization | `LazyLock` or `OnceLock` |\n| Counters, flags, lock-free coordination | `std::sync::atomic` |\n\n## Safety And Review Rules\n\n- Require `Send` for values crossing thread boundaries and `Sync` for shared\n  references used from multiple threads.\n- Decide whether poisoning should propagate panic or recover with\n  `PoisonError::into_inner`.\n- Establish a lock ordering when more than one lock can be acquired.\n- Prefer `Arc::clone(&value)` over `value.clone()` when the cloned value is an\n  ownership handle and readability matters.\n- Use Rayon for data parallel iteration when the problem is pure CPU data\n  parallelism and the project already accepts that dependency.\n\n## Tests\n\n- Add deterministic tests around final state, message counts, and shutdown.\n- Use barriers, channels, or scoped threads to coordinate tests; avoid sleeps.\n- Add at least one test for panic, dropped sender\u002Freceiver, or cancellation\n  behavior when the code depends on it.\n","# Rust Concurrency Primitives\n\nUse this skill to design thread-based Rust concurrency with explicit ownership,\nsharing, and synchronization. Prefer the simplest primitive that matches the\ncoordination requirement before adding shared mutable state.\n\n## Core Workflow\n\n1. Classify the work: independent fork-join, producer\u002Fconsumer pipeline, shared\n   state, one-time initialization, or low-level atomic coordination.\n2. Prefer owned data per thread. Add shared ownership only when data must be\n   observed or mutated by multiple threads.\n3. Use `std::thread::scope` when child threads can borrow stack data and must\n   finish before the function returns.\n4. Use channels for ownership transfer and pipelines. Use `Arc\u003CMutex\u003CT>>` or\n   `Arc\u003CRwLock\u003CT>>` only when shared state is the clearer model.\n5. Keep lock scopes short and never call user-controlled or blocking code while\n   holding a lock unless that is the invariant being protected.\n6. Use `OnceLock` or `LazyLock` for thread-safe one-time initialization instead\n   of ad hoc global mutable state.\n7. Treat atomics as a specialized tool. Use `SeqCst` by default until a weaker\n   ordering is justified and documented.\n\n## Primitive Selection\n\nRead `references\u002Fthreading-shared-state.md` before introducing a new shared\nstate primitive or reviewing deadlock-prone code.\n\n| Need | Primitive |\n|------|-----------|\n| Borrow local data into short-lived threads | `std::thread::scope` |\n| Transfer work or results | `std::sync::mpsc` or project channel crate |\n| Shared read\u002Fwrite state | `Arc\u003CMutex\u003CT>>` |\n| Many readers, rare writers | `Arc\u003CRwLock\u003CT>>` |\n| Wait for condition changes | `Condvar` with `Mutex` |\n| One-time global initialization | `LazyLock` or `OnceLock` |\n| Counters, flags, lock-free coordination | `std::sync::atomic` |\n\n## Safety And Review Rules\n\n- Require `Send` for values crossing thread boundaries and `Sync` for shared\n  references used from multiple threads.\n- Decide whether poisoning should propagate panic or recover with\n  `PoisonError::into_inner`.\n- Establish a lock ordering when more than one lock can be acquired.\n- Prefer `Arc::clone(&value)` over `value.clone()` when the cloned value is an\n  ownership handle and readability matters.\n- Use Rayon for data parallel iteration when the problem is pure CPU data\n  parallelism and the project already accepts that dependency.\n\n## Tests\n\n- Add deterministic tests around final state, message counts, and shutdown.\n- Use barriers, channels, or scoped threads to coordinate tests; avoid sleeps.\n- Add at least one test for panic, dropped sender\u002Freceiver, or cancellation\n  behavior when the code depends on it.\n",{"name":5,"license":15,"metadata":53,"description":7,"compatibility":58},{"tags":54,"version":55,"category":56,"displayName":57},"rust,concurrency,threads,synchronization,atomics","0.1.0","Rust","Rust Concurrency Primitives","Codex, Claude Code, and other Agent Skills-compatible clients.","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-concurrency-primitives",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":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-concurrency-primitives",{"tool":75,"command":76},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-concurrency-primitives",{"tool":78,"command":79},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-concurrency-primitives","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-concurrency-primitives\u002FSKILL.md",true,[83,89],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"agents\u002Fopenai.yaml","REFERENCE","参考文档",248,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-concurrency-primitives\u002Fagents\u002Fopenai.yaml",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fthreading-shared-state.md",1525,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-concurrency-primitives\u002Freferences\u002Fthreading-shared-state.md",[94,103,111,119,127,135],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":102},"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":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":102},"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":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":102},"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":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":123,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":102},"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":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":131,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":102},"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":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":139,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":102},"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",[],[]]