golang
Go coding conventions, idiomatic patterns, and CLI commands reference. Follows Effective Go and Go Code Review Comments strictly. Trigger on any Go-related question — code style, error handling, concurrency, project structure, go mod, testing, etc.
Works with
--- name: golang description: Go coding conventions, idiomatic patterns, and CLI commands reference. Follows Effective Go and Go Code Review Comments strictly. Trigger on any Go-related question — code style, error handling, concurrency, project structure, go mod, testing, etc. license: Apache-2.0 --- # Golang Skill Go best practices, idiomatic patterns, and toolchain reference. Strictly follows [Effective Go](https://go.dev/doc/effective_go) and [Go Code Review Comments](https://go.dev/wiki/CodeReviewComments). ## How to use this skill Read the relevant reference file based on the user's question: ### 1. [Rules](../../rules/golang/rules.md) Read when writing or reviewing Go code — naming, formatting, error handling, documentation, package design. Covers: - Naming conventions (MixedCaps, acronyms, interface names) - Error handling (don't panic, wrap errors, sentinel errors) - Package design (small, focused, no circular deps) - Documentation comments (godoc format) - Import organization and blank imports - Variable declaration style - Receiver naming and type ### 2. [Patterns](references/patterns.md) Read when implementing Go features or asking about idiomatic Go approaches. Covers: - Interface design (small interfaces, accept interfaces return structs) - Concurrency (goroutines, channels, sync primitives, context) - Error patterns (custom errors, error wrapping, errors.Is/As) - Functional options pattern - Table-driven tests - Struct embedding - init() and package initialization - Graceful shutdown ### 3. Commands Read when the user needs Go build or test commands. - [go-build](../../commands/golang/go-build.md) — go build, cross-compilation, build tags, ldflags - [go-test](../../commands/golang/go-test.md) — go test, coverage, benchmarks, fuzzing
More Testing skills
tdd
mattpocock/skills
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
setup-pre-commit
mattpocock/skills
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
agent-browser
vercel-labs/agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

