event-loop

Solid

Expert skill for high-performance event-driven I/O programming and optimization

AI & Automation 1,160 stars 71 forks Updated today MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
98
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Event Loop Skill Expert skill for high-performance event-driven I/O programming across platforms and runtime environments. ## Capabilities - **Platform Multiplexers**: Configure epoll (Linux), kqueue (BSD/macOS), IOCP (Windows) - **Performance Analysis**: Analyze event loop performance and identify bottlenecks - **Event Debugging**: Debug event handling issues and callback delays - **Framework Code Generation**: Generate code for libuv, Boost.Asio, Tokio, and mio - **C10K+ Optimization**: Optimize for massive concurrent connection handling - **Profiling**: Profile event loop performance with system tools - **io_uring Integration**: Implement Linux io_uring for high-performance I/O - **Timer Management**: Efficient timer wheel and hierarchical timing implementations ## Tools and Dependencies - `strace/dtrace` - System call tracing - `perf` - Linux performance analysis - `libuv` - Cross-platform async I/O - `io_uring` - Linux async I/O interface - `Tokio` - Rust async runtime - `Boost.Asio` - C++ async I/O ## Target Processes - event-driven-socket-handler.js - tcp-socket-server.js - websocket-server.js - layer4-load-balancer.js ## Usage Examples ### epoll Event Loop (C) ```c int epfd = epoll_create1(0); struct epoll_event ev, events[MAX_EVENTS]; ev.events = EPOLLIN | EPOLLET; // Edge-triggered ev.data.fd = listen_fd; epoll_ctl(epfd, EPOLL_CTL_ADD, listen_fd, &ev); while (1) { int n = epoll_wait(epfd, events, MAX_EVENTS, -1); for (int i = 0; i < n; i++) { ...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

socket-programming

Deep integration with socket APIs for TCP/UDP programming across platforms. Execute socket operations, analyze socket options and buffer configurations, debug connection states, and generate optimized socket code for different I/O models.

1,160 Updated today
a5c-ai
AI & Automation Solid

freertos-integration

Expert skill for FreeRTOS configuration, debugging, and optimization

1,160 Updated today
a5c-ai
AI & Automation Listed

os-improvement-loop

Pattern 5: Concurrent Event-Driven Multi-Agent Loop. Coordinates multiple Claude sessions as OS threads sharing a common event bus and memory address space. Every loop cycle is a full improvement cycle: execute, eval against benchmark (KEEP/DISCARD), emit friction events during work, close with post_run_metrics, agent self-assessment survey saved to retrospectives, memory persistence, and Triple-Loop Retrospective trigger if friction threshold crossed. Four coordination topologies: turn-signal, fan-out, request-reply, triple-loop (Pattern D).

3 Updated today
richfrem
AI & Automation Solid

nodejs-profiling

Expert skill for Node.js-specific profiling and optimization. Use V8 CPU profiler, analyze heap snapshots, configure clinic.js tools (Doctor, Flame, Bubbleprof), debug event loop blocking, analyze async hooks performance, and optimize V8 JIT compilation.

1,160 Updated today
a5c-ai
AI & Automation Listed

couchbase-eventing

Design, deploy, and troubleshoot Couchbase Eventing functions. Use whenever the user asks about Eventing, eventing functions, JavaScript functions on document mutations, source bucket, metadata bucket, source keyspace, metadata keyspace, OnUpdate, OnDelete, cron triggers, curl() in eventing, N1QL in eventing, eventing deployment state (deployed / undeployed / paused), eventing worker count, DCP feed, Eventing service, admin_eventing_* tools, or 'how do I run code when a document changes.' Distinct from couchbase-mcp (calling the tools) and couchbase-app-integration (SDK-based change notification via DCP/Kafka). Use proactively when the user has a change-driven processing need: cache warming, audit logging, cross-collection sync, event publishing, or derived document generation.

1 Updated 4 days ago
celticht32