Skillquality 0.45

litestar-realtime

Auto-activate for @websocket, WebSocket, ServerSentEvent, SSE, ChannelsPlugin, ChannelsBackend, stream_pubsub, channel subscriptions, realtime events, or cross-process fan-out. Use when implementing Litestar WebSockets, SSE, Channels, or event publishing. Not for polling-only API

Price
free
Protocol
skill
Verified
no

What it does

Litestar Realtime

Use this skill for WebSockets, SSE, ChannelsPlugin backends, realtime event contracts, and fan-out from workers or services.

Code Style Rules

  • Use plain WebSocket handlers for one-off streams.
  • Use ChannelsPlugin when dynamic topics, history, or cross-process fan-out matter.
  • Choose the backend that matches the existing stack.
  • Treat WebSocket auth separately from HTTP header auth constraints.

Quick Reference

<workflow>

Workflow

  1. Choose WebSocket, SSE, or Channels based on delivery needs.
  2. Define event contracts before wiring transport.
  3. Select a backend that fits the project stack.
  4. Test connection, auth, fan-out, disconnect, and error paths.
</workflow> <guardrails>

Guardrails

  • Do not force Redis into a PostgreSQL-only stack just for Channels.
  • Do not assume browsers can set arbitrary WebSocket headers.
  • Do not publish untyped event dicts across service boundaries.
  • Do not use request-scoped resources after the socket lifecycle ends.
</guardrails> <validation>

Validation Checkpoint

  • Transport choice matches the user experience.
  • Event payloads are typed.
  • Backend choice matches the stack.
  • Auth and disconnect behavior are tested.
</validation> <example>

Example

from litestar import websocket

@websocket("/ws")
async def stream(socket: WebSocket) -> None:
    await socket.accept()
    await socket.send_json({"type": "ready"})
</example>

References Index

Official References

Shared Styleguide Baseline

Capabilities

skillsource-litestar-orgskill-litestar-realtimetopic-advanced-alchemytopic-agent-skillstopic-agentskillstopic-ai-agentstopic-claude-code-plugintopic-claude-code-skillstopic-gemini-cli-extensiontopic-htmxtopic-inertiatopic-litestartopic-mcptopic-python

Install

Quality

0.45/ 1.00

deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 7 github stars · SKILL.md body (2,190 chars)

Provenance

Indexed fromgithub
Enriched2026-05-18 19:13:54Z · deterministic:skill-github:v1 · v1
First seen2026-05-18
Last seen2026-05-18

Agent access