Api Design Patterns

🌐Community
by bobmatnyc · vlatest · Repository

Helps with API, design, patterns as part of developing backend services and APIs workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add api-design-patterns npx -- -y @trustedskills/api-design-patterns
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "api-design-patterns": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/api-design-patterns"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill assists in designing robust and scalable APIs using established design patterns for REST, GraphQL, and gRPC. It provides guidance on versioning strategies, authentication methods, error handling, and pagination techniques to ensure API consistency and evolution. The skill emphasizes applying universal API design standards to create a positive developer experience.

When to use it

  • When designing new APIs or refactoring existing ones.
  • To select the appropriate API style (REST, GraphQL, or gRPC) based on specific requirements.
  • For guidance on implementing authentication (OAuth2, JWT, API keys), rate limiting (token bucket, fixed window, sliding window), and idempotency.

Key capabilities

  • API Style Selection: Guidance on choosing between REST, GraphQL, and gRPC.
  • Versioning Strategies: Techniques like URI versioning (/v1/users), header-based versioning, and content negotiation.
  • Pagination Methods: Implementation of offset, cursor, and keyset pagination.
  • Authentication Patterns: Support for OAuth2, JWT, and API key authentication.
  • Rate Limiting Techniques: Token bucket, fixed window, and sliding window rate limiting.
  • Idempotency Handling: Strategies using idempotency keys and conditional requests.
  • Universal Design Principles: Guidance on consistency, evolution, security by default, and developer experience.

Example prompts

  • "What are the best practices for versioning a REST API?"
  • "How do I implement pagination in a GraphQL API?"
  • "Compare and contrast OAuth2 and JWT authentication methods."
  • "Which API style is most suitable for building CRUD-focused APIs with HTTP caching?"

Tips & gotchas

  • The skill provides guidance based on established patterns; adapt them to your specific context.
  • Consider the trade-offs of each API style (REST, GraphQL, gRPC) before making a decision.
  • Plan for versioning and graceful deprecation from the initial design phase.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
bobmatnyc
Installs
147

🌐 Community

Passed automated security scans.