go-context

Installation
SKILL.md

Go Context

context.Context controls cancellation, deadlines, and request-scoped values across API boundaries. Misusing it causes goroutine leaks, orphaned work, and subtle production bugs.

Community default. A project skill or agent-config rule that explicitly supersedes go-context takes precedence over this one.

Detailed reference material, loaded on demand:

  • references/timeout-budgets.md — dividing a parent's remaining budget, reading ctx.Deadline().
  • references/values.md — context key types, accessors, collision traps.
  • references/http-and-testing.md — request context in handlers and middleware, and cancellation tests.
  • references/cause-and-detach.md — WithCancelCause, WithTimeoutCause, WithoutCancel, AfterFunc.
Installs
156
GitHub Stars
83
First Seen
Apr 6, 2026