advanced-patterns

Guide implementing advanced API design patterns with OpenAPI contracts.

28|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/oborchers/fractional-cto --skill advanced-patterns-oborchers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: advanced-patterns
Source: https://github.com/oborchers/fractional-cto/tree/main/api-design-principles/skills/advanced-patterns
Command: npx skills add https://github.com/oborchers/fractional-cto --skill advanced-patterns-oborchers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers navigate the complexities of advanced API design patterns beyond basic CRUD, enabling them to build more robust, scalable, and efficient APIs for demanding use cases.

Core Features & Use Cases

  • Bulk/Batch Operations: Efficiently handle multiple data operations in a single request.
  • Protocol Selection: Choose the right communication protocol (REST, GraphQL, gRPC, tRPC) based on specific needs.
  • Real-Time APIs: Implement streaming data with Server-Sent Events (SSE) or WebSockets.
  • Multi-Tenancy: Design secure and isolated data handling for multiple tenants.
  • API Gateways: Centralize concerns like authentication, rate limiting, and routing.
  • CQRS & Event Sourcing: Implement advanced architectural patterns for complex domains.
  • Design-First Approach: Utilize OpenAPI for robust API contract definition.
  • Use Case: Designing a high-throughput SaaS platform that requires real-time updates, handles large data imports, and serves diverse client needs efficiently.

Quick Start

Use the advanced-patterns skill to design a batch endpoint for creating multiple user records simultaneously.

Frequently Asked Questions about advanced-patterns

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

FAQPage Schema
How do I choose between REST, GraphQL, gRPC, and tRPC for my API architecture?

Choosing between REST, GraphQL, gRPC, and tRPC depends on your specific communication needs. This skill provides protocol selection guidance to match your data streaming, client diversity, and performance requirements with the right protocol.

What is the best way to implement real-time data streaming in an API?

The best way to implement real-time data streaming is by using Server-Sent Events (SSE) or WebSockets. This skill guides you through integrating these protocols to push live updates efficiently to connected clients.

How do I design a batch endpoint for bulk operations in a REST API?

Designing a batch endpoint for bulk operations allows you to handle multiple data requests in a single transaction. This skill provides design-first principles using OpenAPI to define robust contracts for efficient bulk data handling.

When should I use CQRS and event sourcing in my software architecture?

You should use CQRS and event sourcing when managing complex domains that require high scalability and strict auditability. This skill helps you implement these advanced architectural patterns to separate read/write operations effectively.

How do I implement multi-tenant data isolation for a SaaS API platform?

Implementing multi-tenant data isolation requires secure and segregated data handling strategies for each tenant. This skill offers design patterns to ensure data security and isolation in high-throughput SaaS architectures.

Does an API gateway handle authentication and rate limiting for microservices?

Yes, an API gateway centralizes cross-cutting concerns like authentication, rate limiting, and routing. This skill explains how to implement API gateways to improve maintainability and security across complex API architectures.