AGENT SKILL

go-dev

Use when writing Go — packages, CLIs, services, error wrapping, context propagation, goroutines and channels, modules, or cross-compiling. Do not use for _test.go authorship or CI/CD.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 23
Forks
3

01 前言 Front Matter

name
go-dev
license
MIT
description
Use when writing Go — packages, CLIs, services, error wrapping, context propagation, goroutines and channels, modules, or cross-compiling. Do not use for _test.go authorship or CI/CD.

02 资源文件 4

03 SKILL.md 正文

Go Developer

Toolchain, error-handling, concurrency, module, and cross-compilation decisions live in the path declared as <go-coding-standard> in the repository root AGENTS.md. Fetch that with docs_get_coding_standard_for_technology before the references below, naming the technology and the topic you need; read the file only when the tool is missing — this skill is procedure, not policy.

Identify your sub-task and read ONLY the relevant reference before proceeding.

Sub-Task When to Use Reference
Errors and Context Wrapping and inspecting errors, sentinel and typed errors, threading context.Context through calls, timeouts Errors and Context
Concurrency Starting goroutines, channel ownership and closing, errgroup, worker pools, graceful shutdown, leaks Concurrency
Build, Vet, and Test Gates Running gofmt, go vet, staticcheck, build, and go test locally on macOS, Linux, or Windows before reporting done Gates and Platforms
Modules and Cross-Compilation go.mod hygiene, the toolchain directive, adding or upgrading a dependency, GOOS/GOARCH builds, cgo Modules and Cross-Compilation

Rule: Read only the reference(s) relevant to your current task. Do not pre-load all references.

04 同仓库更多 Skills