api-patterns

Document API design style selection criteria for REST, GraphQL, or tRPC.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/jangtrinh/EaseUI-Agent --skill api-patterns-jangtrinh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-patterns
Source: https://github.com/jangtrinh/EaseUI-Agent/tree/main/.claude/skills/api-patterns
Command: npx skills add https://github.com/jangtrinh/EaseUI-Agent --skill api-patterns-jangtrinh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

## What problem does it solve? REST vs GraphQL vs tRPC selection and API pattern consistency often create confusion across teams and platforms.

## Core Features & Use Cases

  • Clear decision criteria for selecting REST, GraphQL, or tRPC based on project context.
  • Practical checklists (versioning, authentication, error handling, and documentation guidance) for consistent APIs.
  • Real-world scenarios illustrating when to apply each pattern and how to unify design decisions across services.

### Quick Start Analyze your project requirements to choose an API style that best fits your data needs and deployment architecture.

Frequently Asked Questions about api-patterns

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

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

To decide between REST, GraphQL, and tRPC, you evaluate project context like multi-platform frontends, evolving data models, and deployment architecture. The optimal API design style is identified by applying clear decision criteria based on these specific data needs.

When should I use GraphQL over REST for evolving data models?

You should use GraphQL over REST when dealing with evolving data models and multi-platform frontends that require flexible querying. The selection is based on applying consistent decision criteria to ensure your API patterns match your project's specific data fetching requirements.

What is the best way to enforce consistent API patterns across multiple services?

The best way to enforce consistent API patterns across services is by applying practical checklists for versioning, authentication, and error handling. This ensures unified design decisions and reusable patterns that teams can adopt across all deployed services.

Does tRPC work well for API design in a monorepo architecture?

tRPC works well for API design in a monorepo architecture where consistent API patterns and end-to-end type safety matter. The decision to use tRPC depends on evaluating your deployment architecture and ensuring it aligns with your versioning and authentication requirements.

How do I document the rationale for selecting an API style?

To document the rationale for selecting an API style, you analyze your project requirements against clear decision criteria for REST, GraphQL, or tRPC. This process records why a specific pattern was chosen, ensuring teams understand the versioning and authentication decisions.