·go-middleware
</>

go-middleware

Idiomatic Go HTTP middleware patterns with context propagation, structured logging via slog, centralized error handling, and panic recovery. Use when writing middleware, adding request tracing, or implementing cross-cutting concerns.

19Installs·1Trend·@existential-birds

Installation

$npx skills add https://github.com/existential-birds/beagle --skill go-middleware

How to Install go-middleware

Quickly install go-middleware AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/existential-birds/beagle --skill go-middleware
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: existential-birds/beagle.

SKILL.md

View raw

| Context keys, request IDs, user metadata | references/context-propagation.md | | slog setup, logging middleware, child loggers | references/structured-logging.md | | AppHandler pattern, domain errors, recovery | references/error-handling-middleware.md |

All middleware follows the standard func(http.Handler) http.Handler pattern. This is the composable building block for cross-cutting concerns in Go HTTP servers.

Use context.WithValue for request-scoped data that crosses API boundaries (request IDs, authenticated users, tenant IDs). Always use typed keys to avoid collisions.

Idiomatic Go HTTP middleware patterns with context propagation, structured logging via slog, centralized error handling, and panic recovery. Use when writing middleware, adding request tracing, or implementing cross-cutting concerns. Source: existential-birds/beagle.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/existential-birds/beagle --skill go-middleware
Category
</>Dev Tools
Verified
First Seen
2026-02-26
Updated
2026-03-10

Browse more skills from existential-birds/beagle

Quick answers

What is go-middleware?

Idiomatic Go HTTP middleware patterns with context propagation, structured logging via slog, centralized error handling, and panic recovery. Use when writing middleware, adding request tracing, or implementing cross-cutting concerns. Source: existential-birds/beagle.

How do I install go-middleware?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/existential-birds/beagle --skill go-middleware Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/existential-birds/beagle