validating-query-inputs
Validate all external input with Zod before Prisma operations. Use when accepting user input, API requests, or form data.
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.
Hono + Drizzle ORMを使用したAPIエンドポイント作成を支援。Usecaseパターンでビジネスロジックをルートから分離。(1)新しいAPIエンドポイント追加、(2)ビジネスロジック実装、(3)エラーハンドリング定義で使用。トリガー:「APIを作成」「エンドポイント追加」「ユースケース作成」「ビジネスロジック実装」
Develop professional REST APIs with Hono framework. Use when creating API endpoints, middleware, validation, error handling, or discussing API architecture with Hono.
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.
Builds content APIs with KeystoneJS, the Node.js headless CMS with GraphQL. Use when creating admin UIs and APIs with automatic CRUD operations, relationships, access control, and TypeScript support.
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.
Develop HTTP APIs, middleware, error codes, and i18n strings using the ginx framework conventions. Use when creating or modifying APIs in apis/, defining error codes, adding i18n strings, or when the user asks to follow project conventions for HTTP endpoints, routes, middleware, or error handling.
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.