mcpField
R
rust-system-event-driven

rust-system-event-driven

github.com/pproencaDevelopment21862 installsUpdated 11w ago
Repository

About rust-system-event-driven

A reference skill for Rust developers building event-driven systems, with 42 prioritized rules covering async runtimes, communication, concurrency, I/O, and event-loop design. It includes guidance for network services, terminal interfaces, and graceful shutdown.

Key features

  1. 0142 rules across eight categories
  2. 02Prioritized async runtime guidance
  3. 03Channel and synchronization patterns
  4. 04Network and terminal I/O practices
  5. 05Signal and shutdown handling

Use cases

  1. 01Reviewing Tokio or async-std applications
  2. 02Designing network clients and servers
  3. 03Building terminal user interfaces
  4. 04Managing concurrent tasks and shutdown

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill rust-system-event-driven

After installing, type/rust-system-event-drivenin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
metadata.json
assets/templates/
_template.md
references/
_sections.md
async-cancellation-safe.md
async-no-std-block.md
async-select-biased.md
async-spawn-blocking.md
async-structured-concurrency.md
async-task-local.md
chan-bounded-backpressure.md
chan-broadcast-fanout.md
chan-graceful-shutdown.md
chan-oneshot-response.md
chan-watch-state.md
io-async-file-ops.md
io-copy-bidirectional.md
io-flush-before-read.md
io-pipe-communication.md
io-stream-large-files.md
loop-actor-model.md
loop-cancellation-token.md
loop-event-types.md
loop-layered-architecture.md
loop-state-machine.md
net-connection-pool.md
net-framing-codec.md
net-graceful-disconnect.md
net-split-reader-writer.md
net-tcp-nodelay.md

Details

From the project README

Rust System Event-Driven Best Practices

Comprehensive 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.

When to Apply

Reference these guidelines when:

  • Building async applications with Tokio or async-std
  • Implementing network servers or clients
  • Writing terminal user interfaces (TUIs)
  • Managing concurrent tasks and shared state
  • Handling Unix signals and graceful shutdown

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Async Runtime PatternsCRITICALasync-
2Channel CommunicationCRITICALchan-
3Threading & SynchronizationHIGHsync-
4Socket & Network I/OHIGHnet-
5Terminal & TTY HandlingMEDIUM-HIGHterm-
6Signal & Process ControlMEDIUMsig-
7File I/O StreamingMEDIUMio-
8Event Loop ArchitectureLOW-MEDIUMloop-

Quick Reference

1. Async Runtime Patterns (CRITICAL)
2. Channel Communication (CRITICAL)
3. Threading & Synchronization (HIGH)
4. Socket & Network I/O (HIGH)
5. Terminal & TTY Handling (MEDIUM-HIGH)
6. Signal & Process Control (MEDIUM)
7. File I/O Streaming (MEDIUM)
8. Event Loop Architecture (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Comments

Markdown supported