golang-context
SolidIdiomatic context.Context usage in Golang — propagation through API boundaries, cancellation, timeouts and deadlines, request-scoped values, context.WithoutCancel for background work outliving requests. Apply when designing context propagation across layers, debugging leaked or unexpired contexts, choosing between context.Background/TODO/WithoutCancel, or storing values in context. Not for code that merely accepts ctx as first parameter.
Install
Quality Score: 81/100
Skill Content
Details
- Author
- marcioaltoe
- Repository
- marcioaltoe/roundfix
- Created
- 2 months ago
- Last Updated
- 4 days ago
- Language
- Go
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
golang-context
Idiomatic context.Context usage in Golang — creation, propagation, cancellation, timeouts, deadlines, context values, and cross-service tracing. Apply when working with context.Context in any Go code.
go-context
Use when designing, propagating, or debugging context.Context flow in Go — first-parameter placement, deadlines and cancellation, request-scoped values, WithoutCancel for fire-and-forget work, and key-collision-safe value patterns. Apply proactively whenever a function takes ctx, spawns work, or accepts request-scoped data, even if the user has not asked about context.
go-concurrency
Use when writing or reviewing Go code that starts goroutines, passes context, uses channels, sync primitives, worker pools, or errgroup — goroutine lifecycle and leaks, context propagation and cancellation, timeouts, and safe shared state. Triggers on `go func`, `context.Context`, `sync.`, `select`, or reports of leaks, races, and hangs.