Help us improve
Share bugs, ideas, or general feedback.
From litestar
Provides guard patterns, middleware user loading, and validation for Litestar authentication and authorization (JWTAuth, SessionAuth, role/tenant checks, WebSocket auth).
npx claudepluginhub litestar-org/litestar-skills --plugin litestarHow 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.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.
Share bugs, ideas, or general feedback.
Use this skill for authentication boundaries, authorization checks, guard composition, and user context.
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")