Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add litestar-org/litestar-skills --skill litestargit clone --depth 1 https://github.com/litestar-org/litestar-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/litestar-org/litestar-skills/litestar)<a href="https://agentmods.dev/skills/litestar-org/litestar-skills/litestar"><img src="https://agentmods.dev/badge/skills/litestar-org/litestar-skills/litestar/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/litestar-org/litestar-skills/litestar"><img src="https://agentmods.dev/badge/skills/litestar-org/litestar-skills/litestar.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.05335 |
| Opus 5.5 | $0.00023 | $0.02134 |
| Sonnet 5.5 | $0.00012 | $0.01067 |
| Haiku 4.5 | $0.00006 | $0.00534 |
Grade A, and why
litestar scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 309 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Litestar Core Framework & Ecosystem Hub
Use this skill for all core Litestar framework subsystems (application composition, routing, controllers, parameters, DTOs, OpenAPI, dependency injection, Dishka integration, authentication/guards, middleware, exception handling, plugin protocols, WebSockets, Channels/SSE, typed settings, and CRUD data services/pagination) and to route to standalone Litestar ecosystem skills.
This guidance targets the released Litestar 2.25.0 contract. Do not copy unreleased main APIs into consumer examples.
Code Style Rules
- Prefer first-party Litestar ecosystem packages (
litestar-granian,advanced-alchemy,sqlspec,msgspec,litestar-saq,litestar-queues,litestar-vite,litestar-autowire,litestar-security,litestar-email,litestar-mcp,litestar-htmx) and match the project's existing stack for data access (advanced-alchemyvssqlspec), DI (ProvidevsDishka), settings (dataclassvspydantic-settings), background jobs (litestar-saqvslitestar-queues), and Channels backend (Memory,Redis,AsyncPg/PsycoPg,SQLSpec). - Keep
Litestar(...)app setup and route handlers thin: group domain routes intoController/Routerhierarchies (urls.py+controllers/+services.py+schemas.py+dependencies.py+guards.py), and centralize multi-domain wiring inApplicationCore(InitPluginProtocol, CLIPluginProtocol)+create_app() -> Litestar(litestar-fullstack/litestar-sqlstackpattern). - Use Litestar 2.22–2.25 explicit annotations:
FromPath[T],FromQuery[T],FromHeader[T],FromCookie[T](orPathParameter,QueryParameter,HeaderParameter,CookieParameterwhen constraints or wire names are needed),JSONBody[T],RequestBody[T],MsgPackBody[T],MultipartBody[T],URLEncodedBody[T],RawBody,QueryParams,RequestCookies,NamedDependency[T], andSkipValidation[T]. Never introduce implicit dependencies, untyped reserved kwargs (data: MyDTOwithout a body marker orbody: bytes), or deprecatedlitestar.params.Dependency. - Define explicit
msgspec.Struct(camelCase wire format viarename="camel") orMsgspecDTO/SQLAlchemyDTO/DataclassDTOboundary contracts (dtoandreturn_dto) on routes and controllers; never expose raw ORM models directly without a write-safe DTO. - Enforce authentication via
AbstractAuthenticationMiddlewareor first-partyJWTAuth/JWTCookieAuth/SessionAuth, and enforce authorization inGuardfunctions(connection: ASGIConnection, route_handler: BaseRouteHandler) -> None | Awaitable[None]orlitestar-securitydecorators — never inside route handler bodies. - Prefer built-in middleware configs (
CORSConfig,CSRFConfig,AllowedHostsConfig,CompressionConfig,RateLimitConfig,ResponseCacheConfig,LoggingMiddlewareConfig) over custom middleware, and subclassASGIMiddleware(litestar.middleware.ASGIMiddleware) withscopesandexcludefilters for custom cross-cutting concerns. - Raise domain-specific
ApplicationErrorsubclasses in services and map them to HTTP responses (or RFC 9457 Problem Details) inexception_handlers; import OpenTelemetry, Prometheus, Structlog, and template plugins fromlitestar.plugins.*(never deprecatedlitestar.contrib.*). - Use async I/O for all request handlers, WebSocket/SSE streams, service/repository methods, stores, and external clients.
What ships with it
19 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/app-and-lifecycle.md 14 KB
- references/auth-and-guards.md 25 KB
- references/channels-and-sse.md 30 KB
- references/cli-and-config.md 6.1 KB
- references/di-and-dishka.md 17 KB
- references/dtos.md 16 KB
- references/exceptions.md 16 KB
- references/filters-and-pagination.md 17 KB
- references/handlers.md 11 KB
- references/layout.md 11 KB
- references/logging-and-observability.md 6.1 KB
- references/middleware.md 20 KB
- references/openapi.md 14 KB
- references/parameters.md 7.8 KB
- references/plugins.md 19 KB
- references/services-and-repos.md 22 KB
- references/settings.md 19 KB
- references/stores-and-caching.md 5.5 KB
- references/websockets.md 23 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago Changed 6314701a3a9e
- 21d ago Changed d1d55376c2cd
- 29d ago Changed · +208 lines · +1 tokens per session 0a43d235709e
- 1mo ago First seen · 101 lines · 57 tokens per session scan A b31f094bfb69
litestar is a skill published in the GitHub repository litestar-org/litestar-skills (16 stars, last pushed 5d ago), licensed MIT. It adds 58 tokens to every session and 5,335 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
python-backend-expert
This skill should be used when the user is writing, reviewing, debugging, or architecting Python backend code using Litestar or FastAPI with SQLAlchemy or Advanced Alchemy. Provides expert critique covering SOLID principles, hexagonal architecture, repository/service patterns, dependency injection, async correctness…
odoo-python
Use when writing or reviewing any Python in an Odoo module — models, computes, overrides, controllers, wizards. Carries PSAE review-derived principles for ORM correctness, performance, style, and security, plus references for exact patterns. Invoke before writing logic in models/, controllers/, or wizard/.
cloudflare-workers-multi-lang
Multi-language Workers development with Rust, Python, and WebAssembly. Use when building Workers in languages other than JavaScript/TypeScript, or when integrating WASM modules for performance-critical code.
craftcms
Craft CMS 5 plugin and module development — extending Craft with PHP. Covers elements, element queries, services, models, records, controllers, migrations, queue jobs, console commands, field types, native fields, events, behaviors, Twig extensions, widgets, filesystems, permissions, project config, GraphQL, testing…
functions-development
Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…
python-services
Python patterns for CLI tools, async parallelism, and backend services. Use when building CLI apps, async/parallel Python, FastAPI services, background jobs, or configuring Python project tooling (uv, ruff, ty).