advanced-alchemy
Auto-activate for advanced_alchemy imports, alembic/, SQLAlchemyAsyncRepositoryService, SQLAlchemyAsyncConfig, repository_type, service_class, filters, or…
Auto-activate for Provide, NamedDependency, SkipValidation, Dependency(skip_validation=True), dependencies=, litestar.di, Dishka FromDishka, Inject, or providers. Not for plain parameters.
$ npx -y skills add litestar-org/litestar-skills --skill litestar-di --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/litestar-diContext preview
The summary Claude sees to decide when to auto-load this skill.
Auto-activate for Provide, NamedDependency, SkipValidation, Dependency(skip_validation=True), dependencies=, litestar.di, Dishka FromDishka, Inject, or providers. Not for plain parameters.
name: litestar-di description: "Auto-activate for Provide, NamedDependency, SkipValidation, Dependency(skip_validation=True), dependencies=, litestar.di, Dishka FromDishka, Inject, or providers. Not for plain parameters."
Use this skill for `Provide`, `NamedDependency` / `SkipValidation`, dependency maps, provider factories, request-scoped resources, and Dishka integration.
`NamedDependency[SkipValidation[T]]` only for trusted provider output that must bypass validation.
`sync_to_thread=True` for blocking work or `False` for trivial non-blocking work; leaving it unspecified emits a warning.
controllers need the optional Dishka router integration.
<workflow>
1. Identify whether the dependency is app, request, transaction, or function scoped. 2. Choose built-in dependency maps or the existing DI framework. 3. Register providers at the narrowest useful scope. 4. Inject dependencies by name or type according to the chosen stack.
</workflow>
<guardrails>
or test client with the replacement dependency map.
</guardrails>
<validation>
</validation>
<example>
from litestar.di import NamedDependency, Provide
async def provide_user_service(db_session: NamedDependency[AsyncSession]) -> UserService:
return UserService(session=db_session)
dependencies = {"users_service": Provide(provide_user_service)}</example>
Opinionated, first-party agent skills, plugins, subagents, slash commands, and MCP servers for the Litestar framework and its ecosystem — publishable to every major AI agent and IDE from a single repo.
Repo: litestar-org/litestar-skills
Auto-activate for advanced_alchemy imports, alembic/, SQLAlchemyAsyncRepositoryService, SQLAlchemyAsyncConfig, repository_type, service_class, filters, or…
Auto-activate for Google ADK, LlmAgent, Runner, SQLSpecSessionService, Vertex AI, SSE agent chats, tool calls, or Litestar model workflows. Not for offline ML…
Auto-activate for guards=, Guard, ASGIConnection, JWTAuth, JWTCookieAuth, SessionAuth, role or tenant checks, or WebSocket auth. Not for frontend route…
Auto-activate for litestar_autowire, AutowirePlugin, AutowireConfig, domain_packages, AutowireIntegration, AutowireLoader, or clear_autowire_cache. Not for…
Auto-activate for uv build, hatch build, PyApp, PYAPP_*, wheel assets, GitHub release matrices, cargo-zigbuild, or python-build-standalone. Not for runtime…
Auto-activate for SQLAlchemyAsyncRepositoryService, SQLSpecAsyncService, create_filter_dependencies, LimitOffsetFilter, OffsetPagination, filters, or CRUD…