litestar-di

Installation
SKILL.md

Litestar Dependency Injection

Use this skill for Provide, NamedDependency / SkipValidation (Litestar ≥ 2.23), dependency maps, provider factories, request-scoped resources, and Dishka integration.

Code Style Rules

  • Prefer NamedDependency[T] and SkipValidation[T] (≥ 2.23) over Annotated[T, Dependency()] / Dependency(skip_validation=True); params.Dependency is deprecated (removed in 3.0).
  • Use Litestar dependency maps for simple and medium apps.
  • Use Dishka when the project needs explicit scopes and provider modules.
  • Keep provider names stable and descriptive.
  • Do not open request-scoped resources at import time.

Quick Reference

Installs
6
GitHub Stars
8
First Seen
May 18, 2026
litestar-di — litestar-org/litestar-skills