dependency-injection

Installation
SKILL.md

Dependency Injection

Use this skill when handlers need shared services, repositories, config, or request-scoped resources.

Workflow

  1. Define provider functions and wrap them with Provide.
  2. Register dependencies at app/router/controller/handler scope.
  3. Prefer narrow scope for overrides and testability.
  4. Keep service lifecycle explicit (singleton vs request-scoped behavior).

Core Pattern

from litestar import Litestar, get
from litestar.di import Provide
Installs
1
GitHub Stars
7
First Seen
Mar 2, 2026
dependency-injection — alti3/litestar-skills