app-setup
Installation
SKILL.md
App Setup
Use this skill when the user needs to create a new Litestar app, structure an existing app, or configure core application settings.
Workflow
- Define a minimal
Litestar(...)app and register route handlers. - Move handlers into routers as complexity grows.
- Add app-level configuration (
debug,openapi_config,logging_config,dependencies,middleware). - Add lifespan hooks for startup/shutdown needs.
Minimal Pattern
from litestar import Litestar, get
@get("/health")
async def health() -> dict[str, str]:
return {"status": "ok"}