coding/golang-patterns/SKILL.md
Idiomatic Go patterns, best practices, and conventions for building robust, readable, and maintainable Go code. Use when writing, reviewing, or refactoring Go (APIs, packages, errors, interfaces, concurrency, and code style).
npx skillsauth add aeondave/malskill golang-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill focuses on idiomatic Go design and code review guidance.
If your task is primarily measurement/profiling/optimization, use golang-performance.
gofmt.panic for control flow.errors.Is/As.gofmt, tests, vet/race) is easy to run in CI.fmt.Errorf("context: %w", err), errors.Is/As used correctlyctx is first param; cancellation propagates; no context.Context stored in structsgo test ./..., go test -race ./..., go vet ./...context.Context in structsDoer, Manager, Service without clear boundaryLoad on demand (progressive disclosure):
references/effective-go.md — distilled Effective Go + Code Review Comments pointersreferences/errors.md — wrapping, sentinel vs typed errors, validation, retryable errorsreferences/interfaces.md — interface placement, design patterns, optional behaviorreferences/concurrency.md — cancellation, errgroup, leaks, worker pools, backpressurereferences/api-and-structs.md — receiver rules, functional options, embeddingreferences/package-layout.md — project layout, package naming, dependency injectionreferences/tooling.md — gofmt/goimports, vet, staticcheck, golangci-lint guidancedevelopment
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.