[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MCK5ZA9N1QF88REV0YAXE9":3,"skill-same:01M6MCK5ZA9N1QF88REV0YAXE9":88},{"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":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6MCK5ZA9N1QF88REV0YAXE9","rust-async-task-design",null,"Design and review Rust async code around task ownership, suspension points, cancellation, blocking work, and runtime boundaries. Use when writing, refactoring, or reviewing futures, async functions, Tokio tasks, spawn, JoinHandle, Send futures, async traits, cancellation, or mutexes across await points.","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-async-task-design\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"design","rust async task design","rust","async task","task","async","when","send","review rust","traits","tokio","runtime","across","functions","use","spawn","work","refactoring","futures","code","tasks","codex","review","writing","2026-11-10 10:12:30",false,"---\nname: rust-async-task-design\ndescription: Design and review Rust async code around task ownership, suspension points, cancellation, blocking work, and runtime boundaries. Use when writing, refactoring, or reviewing futures, async functions, Tokio tasks, spawn, JoinHandle, Send futures, async traits, cancellation, or mutexes across await points.\nlicense: MIT\ncompatibility: Codex, Claude Code, and other Agent Skills-compatible clients.\nmetadata:\n  version: \"0.1.0\"\n  displayName: Rust Async Task Design\n  category: Rust\n  tags: rust,async,tokio,futures,tasks\n---\n\n# Rust Async Task Design\n\nUse this skill to make Rust async code explicit about task ownership, suspension\npoints, blocking work, and cancellation. Async is a concurrency model, not a\ndefault replacement for threads or a performance guarantee.\n\n## Core Workflow\n\n1. Identify the async boundary: runtime entrypoint, handler, client call,\n   stream, background task, or trait method.\n2. Mark every `.await` as a possible suspension point. Check what state is held\n   across it.\n3. Use `tokio::spawn(async move { ... })` only when the task can own everything\n   it needs and its future is `Send + 'static` on the selected runtime.\n4. Keep `JoinHandle`s when task success, panic, cancellation, or shutdown\n   matters. Do not silently detach important work.\n5. Keep blocking IO and CPU-heavy work out of async tasks. Use async APIs,\n   `spawn_blocking`, Rayon, or dedicated threads as the workload requires.\n6. Do not hold a synchronous `MutexGuard`, `RefCell` borrow, or non-`Send` value\n   across `.await`.\n7. Add tests for timeout, cancellation, dropped channel, and failed task paths\n   when those outcomes affect behavior.\n\n## Runtime Rules\n\nRead `references\u002Fasync-runtime-patterns.md` when reviewing task spawning,\nshared state in async code, or blocking work.\n\n- Use `std::sync::Mutex` in async code only for short, low-contention critical\n  sections that do not cross `.await`.\n- Use `tokio::sync::Mutex` when a lock must be held across `.await`, but first\n  consider moving the state behind a task and interacting by messages.\n- Use `spawn_blocking` for blocking operations that eventually finish. Limit\n  parallelism for CPU-heavy work; Tokio's blocking pool can grow large.\n- Use `tokio::time::timeout` or explicit cancellation tokens for bounded\n  operations.\n- Use `select!` carefully: dropping a future can cancel it. Check cancellation\n  safety before using it around IO or partially completed work.\n\n## Async Trait Rules\n\n- Native `async fn` in traits is fine for private traits and static dispatch\n  when callers do not need to add bounds to the returned future.\n- Public traits that need `Send` futures should usually spell the method as\n  `fn name(...) -> impl Future\u003COutput = T> + Send` or use `trait-variant` to\n  offer local and `Send` variants.\n- Public traits that need dynamic dispatch usually need an explicit boxed\n  future return type, such as `Pin\u003CBox\u003Cdyn Future\u003COutput = T> + Send + '_>>`.\n  Use `async-trait` as an ergonomics layer only when the dependency and\n  allocation tradeoff are acceptable.\n- Avoid leaking executor-specific types from a trait unless the trait is\n  intentionally runtime-specific.\n\n## Review Checklist\n\n- No lock or borrow crosses `.await` accidentally.\n- Spawned tasks own their inputs with `async move`.\n- Important `JoinHandle`s are awaited, monitored, or aborted on shutdown.\n- Blocking work is isolated and bounded.\n- Error paths preserve context instead of becoming `JoinError` or timeout noise.\n","# Rust Async Task Design\n\nUse this skill to make Rust async code explicit about task ownership, suspension\npoints, blocking work, and cancellation. Async is a concurrency model, not a\ndefault replacement for threads or a performance guarantee.\n\n## Core Workflow\n\n1. Identify the async boundary: runtime entrypoint, handler, client call,\n   stream, background task, or trait method.\n2. Mark every `.await` as a possible suspension point. Check what state is held\n   across it.\n3. Use `tokio::spawn(async move { ... })` only when the task can own everything\n   it needs and its future is `Send + 'static` on the selected runtime.\n4. Keep `JoinHandle`s when task success, panic, cancellation, or shutdown\n   matters. Do not silently detach important work.\n5. Keep blocking IO and CPU-heavy work out of async tasks. Use async APIs,\n   `spawn_blocking`, Rayon, or dedicated threads as the workload requires.\n6. Do not hold a synchronous `MutexGuard`, `RefCell` borrow, or non-`Send` value\n   across `.await`.\n7. Add tests for timeout, cancellation, dropped channel, and failed task paths\n   when those outcomes affect behavior.\n\n## Runtime Rules\n\nRead `references\u002Fasync-runtime-patterns.md` when reviewing task spawning,\nshared state in async code, or blocking work.\n\n- Use `std::sync::Mutex` in async code only for short, low-contention critical\n  sections that do not cross `.await`.\n- Use `tokio::sync::Mutex` when a lock must be held across `.await`, but first\n  consider moving the state behind a task and interacting by messages.\n- Use `spawn_blocking` for blocking operations that eventually finish. Limit\n  parallelism for CPU-heavy work; Tokio's blocking pool can grow large.\n- Use `tokio::time::timeout` or explicit cancellation tokens for bounded\n  operations.\n- Use `select!` carefully: dropping a future can cancel it. Check cancellation\n  safety before using it around IO or partially completed work.\n\n## Async Trait Rules\n\n- Native `async fn` in traits is fine for private traits and static dispatch\n  when callers do not need to add bounds to the returned future.\n- Public traits that need `Send` futures should usually spell the method as\n  `fn name(...) -> impl Future\u003COutput = T> + Send` or use `trait-variant` to\n  offer local and `Send` variants.\n- Public traits that need dynamic dispatch usually need an explicit boxed\n  future return type, such as `Pin\u003CBox\u003Cdyn Future\u003COutput = T> + Send + '_>>`.\n  Use `async-trait` as an ergonomics layer only when the dependency and\n  allocation tradeoff are acceptable.\n- Avoid leaking executor-specific types from a trait unless the trait is\n  intentionally runtime-specific.\n\n## Review Checklist\n\n- No lock or borrow crosses `.await` accidentally.\n- Spawned tasks own their inputs with `async move`.\n- Important `JoinHandle`s are awaited, monitored, or aborted on shutdown.\n- Blocking work is isolated and bounded.\n- Error paths preserve context instead of becoming `JoinError` or timeout noise.\n",{"name":5,"license":15,"metadata":48,"description":7,"compatibility":53},{"tags":49,"version":50,"category":51,"displayName":52},"rust,async,tokio,futures,tasks","0.1.0","Rust","Rust Async Task Design","Codex, Claude Code, and other Agent Skills-compatible clients.","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-async-task-design",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":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-async-task-design",{"tool":70,"command":71},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-async-task-design",{"tool":73,"command":74},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill rust-async-task-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-async-task-design\u002FSKILL.md",true,[78,84],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"agents\u002Fopenai.yaml","REFERENCE","参考文档",253,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-async-task-design\u002Fagents\u002Fopenai.yaml",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fasync-runtime-patterns.md",1643,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Frust-async-task-design\u002Freferences\u002Fasync-runtime-patterns.md",[89,98,106,114,122,130],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":97},"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":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":97},"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":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":97},"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":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":118,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":97},"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":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":97},"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":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":134,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":97},"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",[],[]]