litestar-middleware

Installation
SKILL.md

Middleware

Execution Workflow

  1. Confirm the requirement is really middleware-worthy: broad ASGI wrapping, not route business logic.
  2. Prefer built-in config-based middleware first.
  3. Choose the right layer and ordering deliberately.
  4. Decide whether the concern belongs in middleware, lifecycle hooks, or route logic.
  5. For custom middleware, choose the simplest correct implementation style.
  6. Validate both success and exception-generated responses, plus exclusions and scope handling.

Core Rules

Installs
38
GitHub Stars
7
First Seen
Mar 2, 2026
litestar-middleware — alti3/litestar-skills