go-context-patterns

Community

Go contexts: cancel, timeout, propagate safely.

AuthorOlegHQ
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Go projects often suffer from unbounded operations and difficult-to-cancel workflows. This skill provides clear patterns for using Go's context to control cancellation, timeouts, and per-request values across layers.

Core Features & Use Cases

  • Context-first APIs to pass deadlines, cancellation signals, and trace data through the call stack.
  • Timeouts and cancellation patterns to bound long-running operations and goroutines.
  • Safe propagation of request-scoped values without storing context in structs.
  • Clear guidelines for goroutine lifecycles and background tasks.

Quick Start

Thread a context through your APIs and apply timeouts (e.g., context.WithTimeout) to bound I/O or computation.

Dependency Matrix

Required Modules

None required

Components

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: go-context-patterns
Download link: https://github.com/OlegHQ/claude-config/archive/main.zip#go-context-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.