Go REST API Design
Builds Go HTTP APIs with clean handlers, middleware, validation, health checks and safe shutdown.
Claude's review
7/10 Compact modern Go API guidance with useful production details (ReadHeaderTimeout, readiness draining, idempotency keys), partly standard REST advice.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
HTTP/REST API design for Go services: handlers, ServeMux routing, middleware, request validation, pagination, idempotency, health checks, error responses, and graceful shutdown. Use when designing APIs, writing HTTP handlers, implementing middleware, or structuring REST endpoints. Trigger examples: "design API", "REST endpoints", "HTTP handler", "middleware pattern", "graceful shutdown", "API versioning". Not for: gRPC services (go-grpc), spec-first OpenAPI work (go-openapi), general architecture (go-architecture-review), concurrency in handlers (go-concurrency-review).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: go-api-design
description: >
HTTP/REST API design for Go services: handlers, ServeMux routing,
middleware, request validation, pagination, idempotency, health checks,
error responses, and graceful shutdown. Use when designing APIs, writing
HTTP handlers, implementing middleware, or structuring REST endpoints.
Trigger examples: "design API", "REST endpoints", "HTTP handler",
"middleware pattern", "graceful shutdown", "API versioning".
Not for: gRPC services (go-grpc), spec-first OpenAPI work (go-openapi),
general architecture (go-architecture-review), concurrency in handlers
(go-concurrency-review).
user-invocable: true
license: MIT
compatibility: Designed for Claude Code or similar AI coding agents working on Go projects. Requires the Go toolchain.
allowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(gofmt:*)
metadata:
author: eduardo-sl
version: "2.0.1"
---
# Go API Design
APIs are contracts. Once published, they're promises. Design them as if
you'll maintain them for a decade — because you probably will.
> Community default. A project skill or agent-config rule that explicitly
> supersedes `go-api-design` takes precedence over this one.
Detailed reference material, loaded on demand:
- `references/handlers-and-middleware.md` — handler structs, JSON response
helpers, request ID and recoverer middleware, decode-and-validate.
Read a reference file only when the summary below is not enough.
## 1. HTTP Handler Structure
- Route with the standard `http.ServeMux` (Go 1.22+): `"GET /users/{id}"`
patterns match the method, `r.PathValue("id")` reads the wildcard, and a
...From eduardo-sl's repository, MIT licence.
Related skills
-
Checked
HTTP API design review
Designs or reviews HTTP endpoints, auth, pagination and versioning, so API changes do not break your clients.
7/101 credit -
Checked
Supabase auth and database
Builds with Supabase auth, database, storage and edge functions while avoiding common security traps.
8/101 credit -
Checked
AWS schema conversion
Runs AWS DMS Schema Conversion projects to move database schemas between engines and convert SQL to match.
7/101 credit -
Checked
Reversible database migrations
Writes safe, reversible migrations for Postgres, Prisma, Django and others, so tables change without downtime.
8/101 credit -
Checked
Firebase Done Right
Builds Firebase apps with safe security rules, data models that scale and reliable Cloud Functions.
7/101 credit -
Checked
Google Workspace API Setup
Connects your server code to Gmail, Drive, Calendar and Sheets with safe service accounts and fewer quota errors.
7/101 credit