Go Context
Use context.Context correctly for cancellation, deadlines, and scoped values in Go.
Test report
- Verdict
- In test queue
- Tested
- —
- Environment
- Pending
In the test queue — machine-screened (validator 85/100, 126★ repo), full install/trigger/output test scheduled.
What Go Context does
Use when working with context.Context in Go — placement in signatures, propagating cancellation and deadlines, and storing values in context vs parameters. Also use when cancelling long-running operations, setting timeouts, or passing request-scoped data, even if they don't mention context.Context directly. Does not cover goroutine lifecycle or sync primitives (see go-concurrency).
How to install Go Context
git clone https://github.com/cxuu/golang-skills
cp -r golang-skills/skills/go-context ~/.claude/skills/go-context
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Go Context
-
/go-contextUse context.Context correctly for cancellation, deadlines, and scoped values in Go.
It also activates on plain-language prompts like these:
-
Add a timeout to this Go database call -
Propagate cancellation through this request handler -
Should this value go in context or a parameter?
Frequently asked questions
- Is the Go Context skill free?
- Yes. The skill itself is free from cxuu/golang-skills. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Go Context work with Claude Code?
- It is in our test queue — we run every skill on real work before issuing a verdict, and this one is scheduled.
- How do I install Go Context?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Go Context with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.