jwt-verify
Implement JWT verification middleware in FastAPI for user auth. Use when securing APIs or handling tokens.
Implement JWT verification middleware in FastAPI for user auth. Use when securing APIs or handling tokens.
GraphQL mutation design including payload patterns, field-specific errors, input objects, and HTTP semantics. Use when designing or implementing GraphQL mutations.
Generates a Data Transfer Object (DTO) class. Use when defining structured data for Contracts, API responses, or complex Action inputs.
Design RESTful APIs with proper naming, error handling, and documentation
Creates Spring REST APIs following best practices.
Validate all external input with Zod before Prisma operations. Use when accepting user input, API requests, or form data.
Configure FastAPI for Vercel deployment. Bundled Resources: Includes 'vercel.json', CORSMiddleware, Python logging, Pydantic models, and personalization endpoints.
Implement a new handler and attach to the oRPC router
Generates a standard Controller class. Use when creating API or Web endpoints (e.g., "Create a controller for managing courses").
Create DTOs with validation attributes for form data. Use when receiving structured input.
Enforces best practices for FastAPI development, ensuring scalable, high-performance, and maintainable APIs. Use when working on server-side Python code involving FastAPI.
Use when designing API endpoints. Enforces layered architecture, separation of concerns, and type safety. Supports Express.js and similar frameworks.
Generates TypeScript interfaces from API responses or OpenAPI schemas. Use when the user asks about typing API responses, creating interfaces from JSON, parsing Swagger/OpenAPI, or keeping types in sync with backend.
Complete TDD workflow for implementing business logic (use cases) and API endpoints that make tests pass. Covers Zod safeParse validation, async/await patterns, Next.js API routes, service orchestration, and Clean Architecture compliance.
GraphQL resolver patterns including dataloader for N+1 prevention, context propagation, authorization, error handling, and validation. Use when implementing GraphQL resolvers.
Configure API Platform resources with operations, pagination, DTOs, and GraphQL support. WHEN: Defining API resources, configuring operations (Get, Post, Put, Delete), setting pagination strategies, creating input/output DTOs, API versioning. WHEN NOT: Adding filters (use php-symfony-api-platform-filters), security (use php-symfony-api-platform-security), custom data providers (use php-symfony-api-platform-state-providers).
Error handling patterns and best practices for FastAPI endpoints. Auto-activates on "error", "exception", "validation", "錯誤處理", "異常" keywords. Provides consistent error responses and logging strategies.
Ensure the front-end application remains fully compatible with the backend API by referencing and adhering to the Server API Specification.
Design and implement REST APIs using FastAPI. Use when creating endpoints, request/response schemas, middleware, error handling, or API documentation.
Handle Zod validation errors with unified error API, custom messages, error formatting, and user-friendly display
Generator สำหรับสร้าง event schemas, types, validators และ documentation สำหรับ event-driven architecture
Guide through creating Zod validation schemas with i18n integration for API request validation. Use when creating API endpoints that need validation.
RESTful API 设计最佳实践。当用户需要设计 API 接口、定义端点规范、编写 API 文档、或评估现有 API 设计时使用此技能。