This is a comprehensive reference that consolidates production Go patterns from Google, Uber, and the core Go team, updated for Go 1.25. It covers the usual suspects like error handling, concurrency, and testing, but also includes newer features like the 1.23+ iterators, 1.24+ tool directives in go.mod, and 1.25's synctest for deterministic concurrent testing. The guidance is opinionated in the right ways: return errors don't panic, channel size 0 or 1, use errgroup over bare waitgroups. It's structured as a quick reference with deeper sub-skills available, so you can skim for reminders or dive into specifics. Good for teams trying to align on style or solo developers who want battle-tested defaults instead of reinventing decisions.

skills.sh installs
437
GitHub stars
6
last updated
Jun 3, 2026

Install

$ npx -y skills add saisudhir14/golang-agent-skill --skill golang --agent claude-code

Installs into .claude/skills of the current project.

Files

Go Best Practices

Production patterns from Google, Uber, and the Go team. Updated for Go 1.25.

Sub-skills: skills/go-error-handling, skills/go-concurrency, skills/go-testing, skills/go-performance, skills/go-code-review, skills/go-linting, skills/go-project-layout, skills/go-security. Deep-dive references in references/.

Core Principles

Readable code prioritizes these attributes in order:

  1. Clarity: purpose and rationale are obvious to the reader
  2. Simplicity: accomplishes the goal in the simplest way
  3. Concision: high signal to noise ratio
  4. Maintainability: easy to modify correctly
  5. Consistency: matches surrounding codebase

Error Handling

Full guide: skills/go-error-handling/SKILL.md | Reference: references/error-handling.md

Sponsors

Details

Repository
github.com/saisudhir14/golang-agent-skill
Categories
AI & Agent Building, Go
First seen
Jun 3, 2026
1steipete avatarcreate-clisteipete/agent-scriptsCLI UX/spec: args, flags, help, output, errors, config, dry-run.437skills.sh installs
2aj-geddes avatarrelease-planningaj-geddes/useful-ai-promptsPlan, coordinate, and execute software releases across environments. Manage versioning, rollout strategies, rollback procedures, and stakeholder communication f436skills.sh installs
3jwynia avatarcontext-networkjwynia/agent-skillsBootstrap, maintain, and evolve context networks across their full lifecycle. Use when starting a new project, when existing documentation feels scattered, or w436skills.sh installs
4jwynia avatarspeech-adaptationjwynia/agent-skillsTransform comprehensive written content into purposeful spoken guidance. Use when adapting for speech, converting to spoken format, optimizing for listening, or436skills.sh installs
5auth0 avatarauth0-spa-jsauth0/agent-skillsUse when adding Auth0 login or token management to a Vanilla JS, Svelte, or framework-agnostic SPA. Integrates @auth0/auth0-spa-js — use when there is no framew434skills.sh installs
6jwynia avatarcompetency-builderjwynia/agent-skillsGuide competency framework development and operation. Use when building training that produces capability, when existing training doesn't produce competence, wh434skills.sh installs