moai-domain-web-api

majiayu000's avatarfrom majiayu000

REST API and GraphQL design with OpenAPI 3.1, authentication, versioning, and rate limiting.

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 5, 2026

When & Why to Use This Skill

This Claude skill facilitates professional-grade REST and GraphQL API design and implementation. It streamlines the creation of OpenAPI 3.1 specifications, enforces security best practices like authentication and rate limiting, and ensures robust versioning strategies for scalable web services while adhering to TRUST 5 quality principles.

Use Cases

  • Designing standardized RESTful and GraphQL APIs using OpenAPI 3.1 to ensure comprehensive documentation and a superior developer experience.
  • Implementing and auditing security layers, including authentication protocols and rate-limiting policies, to safeguard web resources from unauthorized access and abuse.
  • Managing API lifecycles through structured versioning and migration guidance to maintain backward compatibility during feature updates.
  • Automating code reviews and quality checks to ensure API implementations meet high test coverage standards (≥85%) and architectural best practices.
name"moai-domain-web-api"
version"2.0.0"
created2025-10-22
updated2025-10-22
statusstable
descriptionREST API and GraphQL design with OpenAPI 3.1, authentication, versioning, and rate limiting.
keywords['rest', 'graphql', 'openapi', 'api-design', 'authentication']

Domain Web Api Skill

Skill Metadata

Field Value
Skill Name moai-domain-web-api
Version 2.0.0 (2025-10-22)
Allowed tools Read (read_file), Bash (terminal)
Auto-load On demand when keywords detected
Tier Domain

What It Does

REST API and GraphQL design with OpenAPI 3.1, authentication, versioning, and rate limiting.

Key capabilities:

  • ✅ Best practices enforcement for domain domain
  • ✅ TRUST 5 principles integration
  • ✅ Latest tool versions (2025-10-22)
  • ✅ TDD workflow support

When to Use

Automatic triggers:

  • Related code discussions and file patterns
  • SPEC implementation (/alfred:2-run)
  • Code review requests

Manual invocation:

  • Review code for TRUST 5 compliance
  • Design new features
  • Troubleshoot issues

Tool Version Matrix (2025-10-22)

Tool Version Purpose Status
OpenAPI 3.1.0 Primary ✅ Current
Postman 11.21.0 Primary ✅ Current
Swagger UI 5.18.2 Primary ✅ Current

Inputs

  • Language-specific source directories
  • Configuration files
  • Test suites and sample data

Outputs

  • Test/lint execution plan
  • TRUST 5 review checkpoints
  • Migration guidance

Failure Modes

  • When required tools are not installed
  • When dependencies are missing
  • When test coverage falls below 85%

Dependencies

  • Access to project files via Read/Bash tools
  • Integration with moai-foundation-langs for language detection
  • Integration with moai-foundation-trust for quality gates

References (Latest Documentation)

Documentation links updated 2025-10-22


Changelog

  • v2.0.0 (2025-10-22): Major update with latest tool versions, comprehensive best practices, TRUST 5 integration
  • v1.0.0 (2025-03-29): Initial Skill release

Works Well With

  • moai-foundation-trust (quality gates)
  • moai-alfred-code-reviewer (code review)
  • moai-essentials-debug (debugging support)

Best Practices

✅ DO:

  • Follow domain best practices
  • Use latest stable tool versions
  • Maintain test coverage ≥85%
  • Document all public APIs

❌ DON'T:

  • Skip quality gates
  • Use deprecated tools
  • Ignore security warnings
  • Mix testing frameworks