From litestar
Provides Litestar authentication and authorization patterns including guard composition, middleware user loading, and WebSocket auth. Activates for guards, JWTAuth, SessionAuth, role/tenant checks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/litestar:litestar-auth-guardsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill for authentication boundaries, authorization checks, guard composition, and user context.
Use this skill for authentication boundaries, authorization checks, guard composition, and user context.
connection.user and
connection.auth; use guards for authorization.from litestar.connection import ASGIConnection
from litestar.exceptions import PermissionDeniedException
from litestar.handlers import BaseRouteHandler
async def requires_active_user(connection: ASGIConnection, _: BaseRouteHandler) -> None:
if not connection.user or not connection.user.is_active:
raise PermissionDeniedException("Authentication required")
npx claudepluginhub litestar-org/litestar-skills --plugin litestarGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.