What problem does it solve?
This skill addresses the complexity of building robust, production-grade Go HTTP middleware chains, preventing common pitfalls like incorrect ordering, panic leaks, and context key collisions.
Core Features & Use Cases
- Middleware Ordering Standard: Enforces a strict, battle-tested sequence (Recoverer, RequestID, Telemetry, Logging, SecurityHeaders, CORS, Authenticate, RateLimit) to ensure security and observability.
- Panic Recovery & Response Wrapping: Provides a standardized, safe boundary for panic recovery and response status recording, ensuring consistent error envelopes and preventing keep-alive connection corruption.
- Use Case: When building a new backend service, use this skill to wire up your chi router with a standardized pipeline that handles authentication, rate limiting, and telemetry without manual, error-prone boilerplate.
Quick Start
Use the go-middleware skill to implement the standard request pipeline in your chi router and verify it against the quality criteria.