go-api-design
CommunityDesign robust Go REST and gRPC APIs
Authoreduardo-sl
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provide practical, idiomatic guidance to design and implement maintainable HTTP and gRPC APIs in Go so teams avoid common pitfalls like leaky goroutines, inconsistent error handling, and brittle endpoints.
Core Features & Use Cases
- Handler and Middleware Patterns: Use standard http.Handler interfaces, structured handler methods, and the func(http.Handler) http.Handler middleware signature with clear ordering and recovery.
- Request Validation & Response Consistency: Decode and validate requests, limit body sizes, and return consistent JSON error payloads mapped to appropriate HTTP status codes.
- Operational Best Practices: Versioned routes, cursor-based pagination, health/readiness endpoints, graceful shutdown with context timeouts, and OpenAPI hygiene for long-lived APIs.
- Use Case: Design a versioned REST service that supports reliable pagination, structured error responses, middleware for tracing and auth, and safe shutdown behavior for cloud deployments.
Quick Start
Design an HTTP API with versioned routes, handler structs, middleware ordering, request validation, cursor pagination, and graceful shutdown following Go idioms.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-api-design Download link: https://github.com/eduardo-sl/go-agent-skills/archive/main.zip#go-api-design Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.