api-patterns

Guide API style selection with decision trees for REST, GraphQL, and tRPC.

1|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/nextplus896/durra-alaseel --skill api-patterns-nextplus896
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-patterns
Source: https://github.com/nextplus896/durra-alaseel/tree/main/.github/skills/api-patterns
Command: npx skills add https://github.com/nextplus896/durra-alaseel --skill api-patterns-nextplus896

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Teams often struggle to choose the right API style (REST, GraphQL, or tRPC) and to define consistent patterns for versioning, responses, and docs. This Skill provides clear decision guidance and practical templates to accelerate API design.

Core Features & Use Cases

  • Decision trees for REST, GraphQL, and tRPC selection based on project context and data needs.
  • Guidelines for consistent response formats, error handling, and versioning strategies.
  • Use Case: Provide starter design outlines and documentation templates for new microservices.

Quick Start

Apply the api-patterns skill to determine the best API style for a new service and generate an initial design outline.

Frequently Asked Questions about api-patterns

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

FAQPage Schema
How do I choose between REST, GraphQL, and tRPC for my project?

You can choose between REST, GraphQL, and tRPC by using decision trees that evaluate project context and data needs. This approach guides teams to select the ideal API style for their specific ecosystem.

What is the best way to standardize API versioning and response formats?

The best way to standardize API versioning and response formats is to apply consistent guidelines for error handling and versioning strategies. These templates accelerate API design and ensure consistent response formats across services.

Does this API design guidance work for monorepos and multi-platform ecosystems?

Yes, this API design guidance works for monorepos and multi-platform ecosystems. The decision trees and documentation templates are applicable across REST, GraphQL, and tRPC contexts within these complex project environments.

How do I generate documentation templates for new microservices?

To generate documentation templates for new microservices, apply the API design guidelines to your selected API style. This provides starter design outlines and standardizes documentation for the new service.

When should I not use tRPC over REST or GraphQL?

You should evaluate when not to use tRPC over REST or GraphQL by checking the decision trees against your project context. If your multi-platform data needs require broader protocol support, REST or GraphQL may be more suitable.