api-design-principles

Design REST and GraphQL API principles with schema-first templates.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/ekremmkasap/jarvis --skill api-design-principles-ekremmkasap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-design-principles
Source: https://github.com/ekremmkasap/jarvis/tree/main/server/agent_prompts/wshobson/plugins/backend-development/skills/api-design-principles
Command: npx skills add https://github.com/ekremmkasap/jarvis --skill api-design-principles-ekremmkasap

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

REST and GraphQL API design often leads to inconsistent interfaces, poor usability, and brittle integrations. This skill provides a proven set of principles, patterns, and templates to create intuitive, versioned, and scalable APIs that teams can adopt quickly.

Core Features & Use Cases

  • Schema-first design guidance for clear, typed contracts.
  • Comprehensive guidance on versioning, error handling, pagination, and data loading across REST and GraphQL.
  • Practical templates for endpoints, mutations, payloads, and documentation, plus examples and checklists to accelerate adoption.

Quick Start

Provide a ready-to-use API design starter template and checklist tailored to REST and GraphQL projects.

Frequently Asked Questions about api-design-principles

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

FAQPage Schema
What's the best way to design scalable REST and GraphQL APIs?

To design scalable REST and GraphQL APIs, adopt a schema-first approach using proven design patterns for endpoints and mutations. This ensures consistent, typed contracts that prevent brittle integrations and improve long-term usability.

How do I handle versioning and error handling in API design?

API versioning and error handling require comprehensive guidance to maintain backward compatibility. Using standardized templates for payloads and errors across REST and GraphQL ensures clients receive consistent, predictable responses during version transitions.

What is a schema-first approach for REST and GraphQL?

A schema-first approach for REST and GraphQL defines clear, typed contracts before implementation. It guides scalable API creation by establishing strict data-loading strategies, pagination rules, and mutation templates upfront to accelerate team adoption.

Can I use templates to document API endpoints and mutations?

Yes, you can use practical templates to document API endpoints, mutations, and payloads. These templates provide ready-to-use starter structures and checklists tailored to REST and GraphQL projects, accelerating both design and documentation.

Why does poor API design lead to brittle integrations?

Poor API design leads to brittle integrations because inconsistent interfaces lack standardized error handling and pagination. Without schema-first principles and typed contracts, clients face unpredictable data loading and breaking changes during version updates.