[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FEH8V57QWJNWF4BZBTJ5H3":3,"skill-same:01M6FEH8V57QWJNWF4BZBTJ5H3":51},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":24,"linkOnly":25,"markdownContent":26,"markdownBody":26,"frontMatter":27,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M6FEH8V57QWJNWF4BZBTJ5H3","rust-system-event-driven",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Frust-system-event-driven\u002FSKILL.md",[],[18,19,20,21,22,23],"rust","event driven","system","driven","event","rust system event driven","2026-11-10 10:12:30",false,"# Rust System Event-Driven Best Practices\n\nComprehensive best practices guide for event-driven system programming in Rust. Contains 42 rules across 8 categories, prioritized by impact to guide async runtime usage, channel communication, threading, networking, and terminal handling.\n\n## When to Apply\n\nReference these guidelines when:\n- Building async applications with Tokio or async-std\n- Implementing network servers or clients\n- Writing terminal user interfaces (TUIs)\n- Managing concurrent tasks and shared state\n- Handling Unix signals and graceful shutdown\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Async Runtime Patterns | CRITICAL | `async-` |\n| 2 | Channel Communication | CRITICAL | `chan-` |\n| 3 | Threading & Synchronization | HIGH | `sync-` |\n| 4 | Socket & Network I\u002FO | HIGH | `net-` |\n| 5 | Terminal & TTY Handling | MEDIUM-HIGH | `term-` |\n| 6 | Signal & Process Control | MEDIUM | `sig-` |\n| 7 | File I\u002FO Streaming | MEDIUM | `io-` |\n| 8 | Event Loop Architecture | LOW-MEDIUM | `loop-` |\n\n## Quick Reference\n\n### 1. Async Runtime Patterns (CRITICAL)\n\n- [`async-spawn-blocking`](references\u002Fasync-spawn-blocking.md) - Use spawn_blocking for CPU-bound work\n- [`async-select-biased`](references\u002Fasync-select-biased.md) - Use biased select for priority handling\n- [`async-no-std-block`](references\u002Fasync-no-std-block.md) - Avoid std blocking calls in async context\n- [`async-cancellation-safe`](references\u002Fasync-cancellation-safe.md) - Design cancellation-safe async operations\n- [`async-task-local`](references\u002Fasync-task-local.md) - Use task-local storage for request context\n- [`async-structured-concurrency`](references\u002Fasync-structured-concurrency.md) - Use JoinSet for structured concurrency\n\n### 2. Channel Communication (CRITICAL)\n\n- [`chan-bounded-backpressure`](references\u002Fchan-bounded-backpressure.md) - Use bounded channels for backpressure\n- [`chan-oneshot-response`](references\u002Fchan-oneshot-response.md) - Use oneshot channels for request-response\n- [`chan-broadcast-fanout`](references\u002Fchan-broadcast-fanout.md) - Use broadcast channels for fan-out\n- [`chan-watch-state`](references\u002Fchan-watch-state.md) - Use watch channels for shared state\n- [`chan-graceful-shutdown`](references\u002Fchan-graceful-shutdown.md) - Use channel closure for graceful shutdown\n\n### 3. Threading & Synchronization (HIGH)\n\n- [`sync-arc-mutex-shared`](references\u002Fsync-arc-mutex-shared.md) - Use Arc\u003CMutex> for shared mutable state\n- [`sync-rwlock-read-heavy`](references\u002Fsync-rwlock-read-heavy.md) - Use RwLock for read-heavy workloads\n- [`sync-atomic-counters`](references\u002Fsync-atomic-counters.md) - Use atomics for simple counters and flags\n- [`sync-avoid-lock-await`](references\u002Fsync-avoid-lock-await.md) - Avoid holding std Mutex across await\n- [`sync-semaphore-limit`](references\u002Fsync-semaphore-limit.md) - Use Semaphore to limit concurrency\n- [`sync-parking-lot`](references\u002Fsync-parking-lot.md) - Use parking_lot for high-contention locks\n\n### 4. Socket & Network I\u002FO (HIGH)\n\n- [`net-split-reader-writer`](references\u002Fnet-split-reader-writer.md) - Split sockets into reader and writer halves\n- [`net-framing-codec`](references\u002Fnet-framing-codec.md) - Use framing for message-based protocols\n- [`net-connection-pool`](references\u002Fnet-connection-pool.md) - Use connection pools for repeated connections\n- [`net-timeout-all-io`](references\u002Fnet-timeout-all-io.md) - Add timeouts to all network operations\n- [`net-tcp-nodelay`](references\u002Fnet-tcp-nodelay.md) - Set TCP_NODELAY for low-latency protocols\n- [`net-graceful-disconnect`](references\u002Fnet-graceful-disconnect.md) - Implement graceful connection shutdown\n\n### 5. Terminal & TTY Handling (MEDIUM-HIGH)\n\n- [`term-raw-mode-restore`](references\u002Fterm-raw-mode-restore.md) - Always restore terminal state on exit\n- [`term-alternate-screen`](references\u002Fterm-alternate-screen.md) - Use alternate screen for full-screen apps\n- [`term-async-event-stream`](references\u002Fterm-async-event-stream.md) - Use async event stream for terminal input\n- [`term-buffered-output`](references\u002Fterm-buffered-output.md) - Buffer terminal output for performance\n- [`term-handle-resize`](references\u002Fterm-handle-resize.md) - Handle terminal resize events\n\n### 6. Signal & Process Control (MEDIUM)\n\n- [`sig-ctrl-c-graceful`](references\u002Fsig-ctrl-c-graceful.md) - Handle Ctrl-C for graceful shutdown\n- [`sig-unix-signals`](references\u002Fsig-unix-signals.md) - Handle Unix signals asynchronously\n- [`sig-child-reap`](references\u002Fsig-child-reap.md) - Reap child processes to avoid zombies\n- [`sig-timeout-shutdown`](references\u002Fsig-timeout-shutdown.md) - Set shutdown timeout to force exit\n\n### 7. File I\u002FO Streaming (MEDIUM)\n\n- [`io-async-file-ops`](references\u002Fio-async-file-ops.md) - Use async file operations in async context\n- [`io-stream-large-files`](references\u002Fio-stream-large-files.md) - Stream large files instead of loading entirely\n- [`io-copy-bidirectional`](references\u002Fio-copy-bidirectional.md) - Use copy_bidirectional for proxying\n- [`io-pipe-communication`](references\u002Fio-pipe-communication.md) - Use pipes for process communication\n- [`io-flush-before-read`](references\u002Fio-flush-before-read.md) - Flush writes before expecting responses\n\n### 8. Event Loop Architecture (LOW-MEDIUM)\n\n- [`loop-actor-model`](references\u002Floop-actor-model.md) - Use actor pattern for stateful components\n- [`loop-event-types`](references\u002Floop-event-types.md) - Use typed events over dynamic dispatch\n- [`loop-state-machine`](references\u002Floop-state-machine.md) - Model protocol state as type-safe state machine\n- [`loop-layered-architecture`](references\u002Floop-layered-architecture.md) - Separate I\u002FO from business logic\n- [`loop-cancellation-token`](references\u002Floop-cancellation-token.md) - Use CancellationToken for coordinated shutdown\n\n## How to Use\n\nRead individual reference files for detailed explanations and code examples:\n\n- [Section definitions](references\u002F_sections.md) - Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) - Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002Frust-system-event-driven",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill rust-system-event-driven",{"tool":43,"command":44},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill rust-system-event-driven",{"tool":46,"command":47},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill rust-system-event-driven","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Frust-system-event-driven\u002FSKILL.md",true,[],[52,61,70,79,85,91],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":24},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[58,59,60],"model","model hierarchy","model hierarchy skill",{"skillNo":62,"name":63,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":24},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[67,68,69],"MCP","zoom","zoom mcp",{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":24},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[76,77,78,68],"sdk","zoom apps sdk","apps",{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":24},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":24},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[87],{"skillNo":92,"name":93,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":24},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[93]]