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

<workflow>

Workflow

  1. Identify the domain boundary and URL prefix.
  2. Pick a Controller when routes share path, guards, dependencies, or tags.
  3. Keep data access in services and validation in DTOs.
  4. Wire the Controller into the app or DomainPlugin.
</workflow> <guardrails>

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.
</guardrails> <validation>

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.
</validation> <example>

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

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

Agent access