litestar-di

Installation
SKILL.md

Litestar Dependency Injection

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

Code Style Rules

  • Mark every name-based injected parameter with NamedDependency[T]. Use NamedDependency[SkipValidation[T]] only for trusted provider output that must bypass validation.
  • Wrap providers in Provide. For synchronous providers, set sync_to_thread=True for blocking work or False for trivial non-blocking work; leaving it unspecified emits a warning.
  • 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
13
GitHub Stars
13
First Seen
May 18, 2026
litestar-di — litestar-org/litestar-skills