What problem does it solve?
This Skill helps you build reliable HTTP services that need more than basic request handling, including startup and shutdown lifecycle management, background reconciliation loops, WebSocket proxying, and streaming updates to a browser. It is especially useful when services must recover cleanly from stale processes, avoid restart crash-loops, and keep real-time connections working under failure conditions.
Core Features & Use Cases
- FastAPI lifecycle management: Start and stop background tasks safely using lifespan hooks.
- WebSocket relay patterns: Proxy browser WebSockets to backend processes with authentication checks and bidirectional message forwarding.
- SSE event streaming: Stream incremental updates from a file-backed event log to clients.
- Production hardening: Prevent port binding failures, clean up orphaned processes, and handle startup race conditions.
- Use Case: Build a web dashboard that monitors long-running jobs, relays terminal sessions, and keeps polling state in the background without manual restarts.
Quick Start
Ask the model to design a FastAPI service using these patterns for your app, including lifespan startup, background polling, WebSocket relay, and SSE streaming.