$npx skillfedfor your agent

implementing-api-patterns

Select and implement the optimal API pattern for your backend needs. This skill guides you through REST, GraphQL, gRPC, and tRPC with framework recommendations for Python, TypeScript, Rust, and Go, plus pagination, caching, rate limiting, and OpenAPI documentation strategies.

Implementing API Patterns helps you select the right API architecture and framework for your specific backend requirements.

AI-generated summary based on this skill's SKILL.md

★ 390  59 MITupdated by ancoleman

Decision gist · record as of 2025-12-11

Implementing API Patterns helps you select the right API architecture and framework for your specific backend requirements. Select and implement the optimal API pattern for your backend needs. This skill guides you through REST, GraphQL, gRPC, and tRPC with framework recommendations for Python, TypeScript, Rust, and Go, plus pagination, caching, rate limiting, and OpenAPI documentation strategies.

manual: git clone https://github.com/ancoleman/ai-design-components → cp -r ai-design-components/skills/implementing-api-patterns ~/.claude/skills/implementing-api-patterns
skills/implementing-api-patterns/SKILL.md · version 19d79427

Use it when

  • implementing-api-patterns compares GraphQL vs REST to help you decide.
  • implementing-api-patterns covers pagination approaches including cursor-based and offset-based methods.

Verify before relying

Read SKILL.md below before installing (25 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

ancoleman/ai-design-components/implementing-api-patterns · repository language: Python

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I build a REST API with FastAPI?

implementing-api-patterns guides you through building REST APIs using FastAPI, a modern Python framework that automatically generates OpenAPI documentation. FastAPI provides decorators for defining endpoints, automatic request validation, and built-in support for async operations. The skill covers structuring your routes, handling different HTTP methods, and leveraging FastAPI's Swagger UI integration for interactive API documentation.

Should I choose GraphQL or REST for my backend?

implementing-api-patterns compares GraphQL vs REST to help you decide. REST is ideal for simple, resource-oriented APIs with predictable access patterns. GraphQL excels when frontends need flexible data fetching, reducing over-fetching and under-fetching. The skill explains trade-offs in complexity, caching, and tooling, helping you select based on your use case, team expertise, and performance requirements.

What are the best API pagination strategies?

implementing-api-patterns covers pagination approaches including cursor-based and offset-based methods. Cursor-based pagination is more efficient for large datasets and handles insertions better, while offset-based is simpler to implement. The skill explains when to use each, how to implement them across REST and GraphQL, and best practices for maintaining consistency and performance.

How do I add rate limiting and caching to my API?

implementing-api-patterns teaches rate limiting using token bucket algorithms and sliding windows, plus HTTP caching strategies. You'll learn to implement rate limiting middleware, set appropriate cache headers, and use tools like Redis for distributed caching. The skill covers both client-side and server-side approaches to protect your API and improve performance.

Which framework should I use for high-performance APIs?

implementing-api-patterns recommends frameworks based on your language: FastAPI for Python, Axum for Rust, Gin for Go, and Hono for edge computing. Each excels in different contexts—Rust's Axum and async-graphql offer extreme performance, Go's Gin provides simplicity and speed, while Hono targets serverless and edge environments. The skill helps match framework choice to your performance and deployment needs.

How do I implement gRPC for microservices communication?

implementing-api-patterns covers gRPC setup for high-performance service-to-service communication. You'll learn protocol buffers for defining services, implementing gRPC servers in languages like Rust (Tonic) and Go, and using connect-go for browser compatibility. The skill explains when gRPC outperforms REST, how to structure microservices, and strategies for versioning and backward compatibility.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

API Patterns Skill

Purpose

Design and implement APIs using the optimal pattern and framework for the use case. Choose between REST, GraphQL, gRPC, and tRPC based on API consumers, performance requirements, and type safety needs.

When to Use This Skill

Use when: - Building backend APIs for web, mobile, or service consumers - Connecting frontend components (forms, tables, dashboards) to databases - Implementing pagination, rate limiting, or caching strategies - Generating OpenAPI documentation automatically - Choosing between REST, GraphQL, gRPC, or tRPC patterns - Integrating

(truncated - see the full file via the links below)

File tree — 15 files
skills/implementing-api-patterns/README.md
skills/implementing-api-patterns/SKILL.md
skills/implementing-api-patterns/examples/go-gin/README.md
skills/implementing-api-patterns/examples/graphql-strawberry/README.md
skills/implementing-api-patterns/examples/grpc-tonic/README.md
skills/implementing-api-patterns/examples/python-fastapi/README.md
skills/implementing-api-patterns/examples/python-fastapi/main.py
skills/implementing-api-patterns/examples/python-fastapi/requirements.txt
skills/implementing-api-patterns/examples/rust-axum/README.md
skills/implementing-api-patterns/examples/typescript-hono/index.ts
skills/implementing-api-patterns/examples/typescript-hono/package.json
skills/implementing-api-patterns/examples/typescript-trpc/README.md
skills/implementing-api-patterns/outputs.yaml
skills/implementing-api-patterns/references/caching-patterns.md
skills/implementing-api-patterns/references/graphql-schema-design.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Choose the right API pattern and framework for my backend use case”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

dev-api-design
by vasilyu1983 · vasilyu1983/AI-Agents-public

Build APIs across REST, GraphQL, gRPC, and tRPC styles with contract-first design, RFC 9457 error models, and modern best practices. Covers OpenAPI specs, versioning strategies, authentication/authorization, rate limiting, pagination, and observability patterns for public and internal services.

MITupdated Jul 2026
★ 69repo stars
Golang Pro
by devantler-tech · devantler-tech/ksail

Golang Pro equips you with advanced Go development patterns for building scalable, concurrent systems. Master goroutine lifecycle management, channel-based communication, and microservice architectures while maintaining idiomatic Go standards and production-ready performance.

no license declared → metadata onlyupdated Jul 2026
★ 156repo stars
implementing-realtime-sync
by ancoleman · ancoleman/ai-design-components

Build live-updating applications with progressive token streaming for LLM responses, bidirectional chat, and multi-user collaboration. This skill covers protocol selection (SSE for one-way streams, WebSocket for two-way communication, WebRTC for peer-to-peer), conflict-free editing with CRDTs, presence awareness, and offline-first synchronization patterns across Python, Rust, Go, and TypeScript.

MITupdated Dec 2025
★ 390repo stars
app-builder
by vudovn · vudovn/ag-kit

App Builder is an orchestrator that transforms natural language requests into complete full-stack applications. It analyzes your requirements, determines the appropriate project type and technology stack, then coordinates specialized agents to scaffold and build your project. With 13 built-in templates spanning web, mobile, desktop, and API architectures, it handles the entire setup workflow.

MITupdated Jul 2026
★ 8,011repo stars
Api Design Skill
by ScientiaCapital · ScientiaCapital/skills

Build APIs that developers love using. This skill covers RESTful conventions, proper HTTP method semantics, consistent error responses, pagination strategies, and versioning approaches. Learn how thoughtful naming, clear status codes, and predictable patterns make APIs intuitive and maintainable.

no license declared → metadata onlyupdated Jul 2026
★ 26repo stars
Api Patterns
by itzzritik · itzzritik/OrderWorder

Learn to design APIs by understanding when to use REST, GraphQL, or tRPC, and how to structure responses, handle versioning, and secure your endpoints. This skill covers decision-making frameworks rather than fixed templates, helping you choose the right approach for your specific context.

no license declared → metadata onlyupdated Feb 2026
★ 132repo stars

More skills golang-pro (MIT) · Python Backend Expert (unlicensed) · Rest Api Design Patterns (unlicensed)

Tags
backend-frameworkstype-safetyperformance-optimizationprotocol-selectionapi-documentationdata-fetchingservice-communicationedge-deploymentrequest-handlingschema-validation