# Go

> Go standards: context, deps, stdlib, errors.

- Skill: `darknesskiller/go` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add darknesskiller/go`
- Raw SKILL.md: https://api.skillmd.com/api/skills/darknesskiller/go/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: darknesskiller (https://skillmd.com/u/darknesskiller)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/darknesskiller/go

---


# Go

1. Propagate the existing request context through downstream work.
2. Use `context.Background()` only at process bootstrap or intentionally detached workers.
3. Prefer explicit code and constructor injection.
4. Avoid package-level mutable state.
5. Wrap errors with useful context. Never silently ignore them.
6. Match existing project patterns before adding helpers.
7. Add tests for new behaviour.
8. Avoid dependencies unless the standard library or installed packages fall short.

Completion: changed Go code preserves request context, has explicit dependencies and useful errors, follows local package patterns, and passes the narrowest relevant tests.

