api-patterns

Compare REST, GraphQL, and tRPC for API design style selection.

1|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/roviczzz/agentic-dev --skill api-patterns-roviczzz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-patterns
Source: https://github.com/roviczzz/agentic-dev/tree/main/skills/api-patterns
Command: npx skills add https://github.com/roviczzz/agentic-dev --skill api-patterns-roviczzz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you navigate the complexities of API design, choosing the right style and patterns for your specific needs.

Core Features & Use Cases

  • API Style Selection: Compare and contrast REST, GraphQL, and tRPC to find the best fit for your project.
  • Design Principles: Learn the core principles of API design, including versioning, pagination, and response formats.
  • Security and Documentation: Understand best practices for securing your API and creating comprehensive documentation.

Quick Start

Use the api-patterns skill to learn about the best practices for API design and choose the right style for your project.

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 API design?

Comparing REST, GraphQL, and tRPC involves evaluating your project's data fetching complexity and client flexibility needs. This skill provides selection criteria to contrast these styles and determine the best architectural fit for your specific API design requirements.

What are the core API design principles for versioning and pagination?

Core API design principles for versioning and pagination ensure predictable data retrieval and backward compatibility. This skill outlines standard response formats and strategies to manage large datasets effectively across REST, GraphQL, and tRPC implementations.

How do I implement API security best practices during development?

Implementing API security requires applying authorization, authentication, and data validation patterns. This skill explains how to integrate security measures into your API design workflow to protect endpoints and ensure safe data exchange between clients and servers.

Do I need prior knowledge of REST and GraphQL to use API design patterns effectively?

Yes, understanding REST, GraphQL, and tRPC concepts is required to apply these API design patterns effectively. The skill targets software engineers and product managers who already possess foundational knowledge of these protocols and integration workflows.

What is the best way to document API endpoints and response formats?

The best way to document API endpoints is to create comprehensive references covering response formats, versioning, and pagination rules. This skill provides documentation best practices to ensure your API design is easily consumable by other developers.