sse-resilience
Manages SSE streams through registry tracking, heartbeats, and cleanup of inactive processes.
Install
mkdir -p .claude/skills/sse-resilience && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8088" && unzip -o skill.zip -d .claude/skills/sse-resilience && rm skill.zipInstalls to .claude/skills/sse-resilience
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Redis-backed SSE stream management with stream registry, heartbeat monitoring, completion store for terminal events, and automatic orphan cleanup via background guardian process.Key capabilities
- →Register active SSE streams in Redis
- →Monitor stream heartbeats to detect orphaned streams
- →Store terminal completion events for recovery
- →Automatically clean up abandoned streams with a background guardian
- →Provide client-side reconnection logic with exponential backoff
- →Recover missed terminal events upon client reconnection
How it works
The skill uses Redis to maintain a registry of active SSE streams, track heartbeats, store completion data, and employs a background guardian process to identify and clean up orphaned streams.
Inputs & outputs
When to use sse-resilience
- →Managing SSE stream connections
- →Implementing stream heartbeats
- →Cleaning up orphaned streaming processes
About sse-resilience
Provides management for SSE streams, including stream registry, heartbeat tracking, and automatic cleanup of disconnected or orphaned processes.
Redis-backed SSE stream management with stream registry, heartbeat monitoring, completion store for terminal events, and automatic orphan cleanup via background guardian process.
When not to use it
- →When SSE streams do not fail silently
- →When completion events are not lost
- →When resource leaks from abandoned streams are not a concern
Prerequisites
Limitations
- →Requires Redis for stream management
- →Stream TTL is 1 hour max lifetime
- →Completion TTL is 5 minutes for recovery window
How it compares
This skill provides a Redis-backed, resilient SSE stream management system with automatic cleanup and recovery mechanisms, which is more reliable than basic SSE implementations that lack heartbeat monitoring or completion storage.
Compared to similar skills
sse-resilience side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| sse-resilience (this skill) | 0 | 6mo | Review | Advanced |
| bullmq-specialist | 25 | 6mo | No flags | Intermediate |
| managing-api-cache | 2 | 27d | Review | Advanced |
| rate-limiting-apis | 1 | 27d | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by dadbodgeoff
View all by dadbodgeoff →You might also like
bullmq-specialist
davila7
BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications. Use when: bullmq, bull queue, redis queue, background job, job queue.
managing-api-cache
jeremylongshore
Implement intelligent API response caching with Redis, Memcached, and CDN integration. Use when optimizing API performance with caching. Trigger with phrases like "add caching", "optimize API performance", or "implement cache layer".
rate-limiting-apis
jeremylongshore
Implement sophisticated rate limiting with sliding windows, token buckets, and quotas. Use when protecting APIs from excessive requests. Trigger with phrases like "add rate limiting", "limit API requests", or "implement rate limits".
prisma-connection-pool-exhaustion
blader
Fix Prisma "Too many connections" and connection pool exhaustion errors in serverless environments (Vercel, AWS Lambda, Netlify). Use when: (1) Error "P2024: Timed out fetching a new connection from the pool", (2) PostgreSQL "too many connections for role", (3) Database works locally but fails in production serverless, (4) Intermittent database timeouts under load.
generating-grpc-services
jeremylongshore
Generate gRPC service definitions, stubs, and implementations from Protocol Buffers. Use when creating high-performance gRPC services. Trigger with phrases like "generate gRPC service", "create gRPC API", or "build gRPC server".
azure-monitor-opentelemetry-ts
microsoft
Instrument applications with Azure Monitor and OpenTelemetry for JavaScript (@azure/monitor-opentelemetry). Use when adding distributed tracing, metrics, and logs to Node.js applications with Application Insights.