Skillquality 0.45
litestar-routing
Auto-activate for Controller classes, Router, route decorators, @get/@post/@put/@patch/@delete, route_handler, path params, app/domain modules, or DomainPlugin layout. Use when designing Litestar routes, handlers, Controller grouping, Router composition, or domain folders. Not fo
Price
free
Protocol
skill
Verified
no
What it does
Litestar Routing
Use this skill for route handlers, Controllers, Routers, domain clustering, and endpoint module layout.
Code Style Rules
- Cluster Controllers by domain, not HTTP method.
- Keep handlers thin: parse request data, call a service, return a DTO or response object.
- Put shared path, dependencies, guards, and tags on the Controller class.
- Use typed path parameters and explicit return annotations.
Quick Reference
- Controller and route patterns: routing.md
- Domain folder layout: domains.md
- End-to-end vertical slice: example.md
Workflow
- Identify the domain boundary and URL prefix.
- Pick a Controller when routes share path, guards, dependencies, or tags.
- Keep data access in services and validation in DTOs.
- Wire the Controller into the app or DomainPlugin.
Guardrails
- Do not group Controllers by HTTP method.
- Do not put authorization logic in handlers; use Guards.
- Do not hand-roll query parameter pagination; use the data-services skill.
- Do not put app-wide plugin setup in route modules.
Validation Checkpoint
- Routes are domain-clustered.
- Handlers are async when they perform I/O.
- Shared guards and dependencies live on the Controller.
- DTO and service concerns link to their owning skills.
Example
from litestar import Controller, get
class UserController(Controller):
path = "/users"
@get("/")
async def list_users(self, users_service: UserService) -> list[UserRead]:
return await users_service.list_users()
</example>
References Index
Official References
- https://docs.litestar.dev/ - Litestar documentation
- https://docs.litestar.dev/latest/reference/ - Litestar API reference
Shared Styleguide Baseline
Capabilities
skillsource-litestar-orgskill-litestar-routingtopic-advanced-alchemytopic-agent-skillstopic-agentskillstopic-ai-agentstopic-claude-code-plugintopic-claude-code-skillstopic-gemini-cli-extensiontopic-htmxtopic-inertiatopic-litestartopic-mcptopic-python
Install
Installnpx skills add litestar-org/litestar-skills
Transportskills-sh
Protocolskill
Quality
0.45/ 1.00
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 7 github stars · SKILL.md body (2,223 chars)
Provenance
Indexed fromgithub
Enriched2026-05-18 19:13:54Z · deterministic:skill-github:v1 · v1
First seen2026-05-18
Last seen2026-05-18