Skillshub rust-system-event-driven

Rust System Event-Driven Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/rust-system-event-driven" ~/.claude/skills/comeonoliver-skillshub-rust-system-event-driven && rm -rf "$T"
manifest: skills/pproenca/dot-skills/rust-system-event-driven/SKILL.md
source content

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 PatternsCRITICAL
async-
2Channel CommunicationCRITICAL
chan-
3Threading & SynchronizationHIGH
sync-
4Socket & Network I/OHIGH
net-
5Terminal & TTY HandlingMEDIUM-HIGH
term-
6Signal & Process ControlMEDIUM
sig-
7File I/O StreamingMEDIUM
io-
8Event Loop ArchitectureLOW-MEDIUM
loop-

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