moai-domain-backend

Implements backend APIs, database integration, and microservices patterns with security validation.

Updated Aug 29, 2026
One-click install
npx skills add https://github.com/Seung-zedd/secure-file-upload --skill moai-domain-backend-seung-zedd
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: moai-domain-backend
Source: https://github.com/Seung-zedd/secure-file-upload/tree/main/.claude/skills/moai-domain-backend
Command: npx skills add https://github.com/Seung-zedd/secure-file-upload --skill moai-domain-backend-seung-zedd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building secure, well-structured backend services requires consistent decisions across API design, database access, authentication, and caching. This Skill provides concrete implementation patterns and verification checklists so backend work follows proven conventions instead of ad-hoc choices. ## Core Features & Use Cases - API Design Patterns: REST with FastAPI and OpenAPI 3.1, GraphQL with Strawberry, and gRPC service patterns. - Database Integration: PostgreSQL with SQLAlchemy connection pooling, MongoDB with Motor, and Redis caching decorators. - Microservices & Security: Consul service discovery, event-driven messaging with aio_pika, JWT authentication, and bcrypt password hashing. - Use Case: When building a new user management service, use this Skill to scaffold authenticated REST endpoints, configure a pooled PostgreSQL engine, and add Redis-backed response caching with rate limiting. ## Quick Start Ask the AI to design and implement a FastAPI backend with JWT authentication, PostgreSQL integration, and Redis caching for your service.

Frequently Asked Questions about moai-domain-backend

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a REST API with FastAPI and authentication?▼

Define Pydantic response models, implement endpoints with an HTTPBearer security dependency, and return typed response objects. The Skill covers list and create endpoint patterns with JWT-based authentication using HS256 tokens.

How to set up PostgreSQL connection pooling with SQLAlchemy?▼

Configure the engine with QueuePool, pool_size of 20, max_overflow of 30, pool_pre_ping enabled, and pool_recycle of 3600 seconds. Add event listeners to log queries exceeding a 100ms threshold for performance monitoring.

Does this Skill cover GraphQL and gRPC in addition to REST?▼

Yes, it includes GraphQL implementation using Strawberry types and async resolvers, plus gRPC patterns for high-performance services. REST with OpenAPI 3.1 remains the primary documented pattern.

What security practices does the backend verification checklist enforce?▼

The checklist requires input validation on every endpoint, standardized error responses without internal details, credentials from environment variables, rate limiting on public endpoints, parameterized queries, and authentication on all non-public routes.

When should I use Redis caching in a backend service?▼

Use the CacheManager decorator pattern with a TTL parameter to cache function results keyed by function name and arguments. It suits read-heavy endpoints where repeated database queries can be served from Redis with JSON serialization.