http-patterns
OfficialGo HTTP routing patterns for robust services.
Authorair-gapped
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Go HTTP routing and lifecycle management can be verbose and error-prone. This skill provides a concise set of patterns for method routing, middleware composition, and graceful shutdown to standardize server code across Go services.
Core Features & Use Cases
- ServeMux Method Routing: Register handlers using method-prefixed routes and clear precedence rules to reduce boilerplate and errors.
- Middleware Composition: Build reusable middleware stacks for logging, authentication, metrics, and context propagation without tight coupling.
- Graceful Shutdown Patterns: Implement ready/shutdown semantics and context-aware shutdown to support Kubernetes and scalable deployments.
- Go 1.22+ Patterns: Leverage new Go routing enhancements for clear, predictable request handling and path parameters.
Quick Start
Start with a minimal Go 1.22+ server, register routes with the ServeMux-based patterns, add a health endpoint, and observe automatic 405 handling and graceful shutdown behavior.
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: http-patterns Download link: https://github.com/air-gapped/cooked/archive/main.zip#http-patterns 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 223,000+ vetted skills library on demand.