moai-ref-api-patterns

Provide standardized REST and GraphQL API design, error handling, and validation patterns.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/windysky/snake-game --skill moai-ref-api-patterns-windysky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-ref-api-patterns
Source: https://github.com/windysky/snake-game/tree/main/.claude/skills/moai-ref-api-patterns
Command: npx skills add https://github.com/windysky/snake-game --skill moai-ref-api-patterns-windysky

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inconsistent API design, error handling, and input validation across REST and GraphQL services slow backend delivery; this reference provides standardized patterns and conventions to accelerate engineering work.

Core Features & Use Cases

  • RESTful design conventions including resource naming, versioning, pagination, and error handling templates.
  • GraphQL patterns, structured error responses, and input validation guidance for reliable schemas.
  • Use cases: evaluate or implement API endpoints, audit existing services for pattern conformance, and elevate data quality across microservices.

Quick Start

Review the reference patterns and apply the recommended conventions to your API endpoints for improved consistency and reliability.

Frequently Asked Questions about moai-ref-api-patterns

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

FAQPage Schema
What are production-grade API patterns for standardizing error handling in backend services?

Production-grade API patterns provide standardized status codes and structured error response templates to resolve inconsistencies in backend error handling. They ensure reliable schemas by enforcing structured error responses across both REST and GraphQL services.

How do I audit existing microservices for REST API design and input validation conformance?

You can audit existing microservices by reviewing their endpoints against standardized reference patterns for REST API design. This pattern audit evaluates resource naming, versioning, pagination, and input-validation rules to elevate data quality and ensure conformance.

What is the best way to implement structured error responses and input validation for GraphQL schemas?

The best way to implement structured GraphQL error responses is by applying dedicated GraphQL patterns that enforce input validation guidance. These patterns provide reliable schemas and structured error formats to solve inconsistencies during endpoint implementation.

Does this API design reference cover both REST and GraphQL conventions for endpoint implementation?

Yes, this API design reference covers both REST and GraphQL conventions. It provides standardized patterns for resource naming, versioning, pagination, and input validation to support consistent endpoint implementation across both protocols.

When do I need standardized versioning guidance and pagination patterns for API design reviews?

You need standardized versioning guidance and pagination patterns during API design reviews to ensure consistency across expanding backend services. Applying these production-grade conventions accelerates engineering work and maintains reliable data quality across microservices.