moai-domain-backend

Implements backend APIs, database integrations, and microservices patterns with FastAPI, PostgreSQL, and Redis.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/taewook486/Masters_degree --skill moai-domain-backend-taewook486
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: moai-domain-backend
Source: https://github.com/taewook486/Masters_degree/tree/main/.claude/skills/moai-domain-backend
Command: npx skills add https://github.com/taewook486/Masters_degree --skill moai-domain-backend-taewook486

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Designing secure, scalable backend systems requires consistent patterns for API design, database integration, authentication, and microservices communication, which developers often rebuild from scratch for each project. ## Core Features & Use Cases - API Design Patterns: Build REST endpoints with FastAPI and Pydantic, GraphQL schemas with Strawberry, and gRPC services following OpenAPI 3.1 conventions. - Database Integration: Configure PostgreSQL with SQLAlchemy connection pooling, MongoDB with Motor async drivers, and Redis caching with TTL-based decorators. - Security & Microservices: Implement JWT authentication with bcrypt password hashing, Consul service discovery, and event-driven messaging with RabbitMQ. - Use Case: When building a new user management service, use this Skill to scaffold authenticated REST endpoints, pooled database connections, and cached query results following production patterns. ## Quick Start Ask the AI to create a FastAPI endpoint with JWT authentication and PostgreSQL integration using the backend development patterns.

Frequently Asked Questions about moai-domain-backend

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

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

Define Pydantic response models, create endpoints with HTTPBearer security dependencies, and return typed responses. The Skill provides patterns for list and create endpoints with JWT-based authentication using HS256 tokens.

How to implement JWT authentication in a Python backend?▼

Use a CryptContext with bcrypt for password hashing and encode JWTs with HS256 algorithm and expiration claims. The Skill's SecurityManager pattern defaults to 15-minute token expiration with hash_password and verify_password methods.

What is the difference between SQLAlchemy and Motor for database access?▼

SQLAlchemy provides ORM-based access to PostgreSQL with connection pooling and declarative models, while Motor is an async driver for MongoDB document operations. Choose SQLAlchemy for relational schemas and Motor for flexible document storage.

Does SQLAlchemy connection pooling work with async applications?▼

Yes, configure the engine with QueuePool, pool_size of 20, max_overflow of 30, and pool_pre_ping for health checks. Add event listeners to track query timing and log queries exceeding 100ms thresholds.

Why should backend endpoints validate input even with frontend validation?▼

Frontend validation improves user experience but provides no security since requests can bypass the client entirely. Backend validation is the actual security boundary and must sanitize all input before processing.

When should I use event-driven architecture with RabbitMQ?▼

Use event-driven patterns when services need loose coupling and asynchronous communication, such as publishing domain events after state changes. The Skill's EventBus pattern uses aio_pika to publish JSON-serialized events with routing keys.