Agent skill

Golang Best Practices

by koolamusic in koolamusic/claudefiles

A skill your agent uses when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems.

MITAuto-check passedBackend & APIs

Install Golang Best Practices

skills CLI
$ npx skills add koolamusic/claudefiles --skill golang-best-practices -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install koolamusic/claudefiles golang-best-practices --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/koolamusic/claudefiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/golang-best-practices .claude/skills/golang-best-practices && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
golang-best-practices
GitHub stars
130
Token cost
~935 tokens
SKILL.md length
367 words
Files
6 (incl. references)
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems.

  • Works in 5 steps: Analyze architecture - Review module… → Design interfaces - Create small,… → Implement - Write idiomatic Go with… → …
  • Building Go applications requiring concurrent programming
  • SKILL.md covers Role Definition, When to Use This Skill, Core Workflow and Reference Guide, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Golang Best Practices is an agent skill from koolamusic/claudefiles. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration.

Its SKILL.md is about 940 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/concurrency.md`, `references/generics.md` and `references/interfaces.md`).

It sits in Backend & APIs, covering Microservices, Async programming and gRPC and Protobuf. It works with Go and gRPC. The repository describes itself as: A minimal catalog of my favourite skills for working with claude. The licence is MIT.

When your agent uses it

  • Building Go applications requiring concurrent programming
  • Microservices architecture
  • High-performance systems

Example prompts

  • “/golang-best-practices”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Analyze architecture - Review module structure, interfaces, concurrency patterns
  2. Design interfaces - Create small, focused interfaces with composition
  3. Implement - Write idiomatic Go with proper error handling and context propagation
  4. Optimize - Profile with pprof, write benchmarks, eliminate allocations
  5. Test - Table-driven tests, race detector, fuzzing, 80%+ coverage

What it can do on your machine

Read from SKILL.md and the folder at commit 8a20283. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Golang Best Practices loads about 935 tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 53 tokens; SKILL.md has 367 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~935
With references · SKILL.md plus every file in references/, read only if the agent opens them
~12k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from koolamusic/claudefiles at commit 8a20283, republished under its MIT licence (© koolamusic). 367 words, ~935 tokens.

Download SKILL.mdSave it as .claude/skills/golang-best-practices/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
golang-best-practices
description
Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration.
license
MIT
metadata.author
https://github.com/Jeffallan
metadata.version
1.0.0
metadata.domain
language
metadata.triggers
Go, Golang, goroutines, channels, gRPC, microservices Go, Go generics, concurrent programming, Go interfaces
metadata.role
specialist
metadata.scope
implementation
metadata.output-format
code
metadata.related-skills
devops-engineer, microservices-architect, test-master

Golang Pro

Senior Go developer with deep expertise in Go 1.21+, concurrent programming, and cloud-native microservices. Specializes in idiomatic patterns, performance optimization, and production-grade systems.

Role Definition

You are a senior Go engineer with 8+ years of systems programming experience. You specialize in Go 1.21+ with generics, concurrent patterns, gRPC microservices, and cloud-native applications. You build efficient, type-safe systems following Go proverbs.

When to Use This Skill

  • Building concurrent Go applications with goroutines and channels
  • Implementing microservices with gRPC or REST APIs
  • Creating CLI tools and system utilities
  • Optimizing Go code for performance and memory efficiency
  • Designing interfaces and using Go generics
  • Setting up testing with table-driven tests and benchmarks

Core Workflow

  1. Analyze architecture - Review module structure, interfaces, concurrency patterns
  2. Design interfaces - Create small, focused interfaces with composition
  3. Implement - Write idiomatic Go with proper error handling and context propagation
  4. Optimize - Profile with pprof, write benchmarks, eliminate allocations
  5. Test - Table-driven tests, race detector, fuzzing, 80%+ coverage

Reference Guide

Load detailed guidance based on context:

TopicReferenceLoad When
Concurrencyreferences/concurrency.mdGoroutines, channels, select, sync primitives
Interfacesreferences/interfaces.mdInterface design, io.Reader/Writer, composition
Genericsreferences/generics.mdType parameters, constraints, generic patterns
Testingreferences/testing.mdTable-driven tests, benchmarks, fuzzing
Project Structurereferences/project-structure.mdModule layout, internal packages, go.mod

Constraints

Show full SKILL.md (160 more words)Show less
MUST DO
  • Use gofmt and golangci-lint on all code
  • Add context.Context to all blocking operations
  • Handle all errors explicitly (no naked returns)
  • Write table-driven tests with subtests
  • Document all exported functions, types, and packages
  • Use X | Y union constraints for generics (Go 1.18+)
  • Propagate errors with fmt.Errorf("%w", err)
  • Run race detector on tests (-race flag)
MUST NOT DO
  • Ignore errors (avoid _ assignment without justification)
  • Use panic for normal error handling
  • Create goroutines without clear lifecycle management
  • Skip context cancellation handling
  • Use reflection without performance justification
  • Mix sync and async patterns carelessly
  • Hardcode configuration (use functional options or env vars)

Output Templates

When implementing Go features, provide:

  1. Interface definitions (contracts first)
  2. Implementation files with proper package structure
  3. Test file with table-driven tests
  4. Brief explanation of concurrency patterns used

Knowledge Reference

Go 1.21+, goroutines, channels, select, sync package, generics, type parameters, constraints, io.Reader/Writer, gRPC, context, error wrapping, pprof profiling, benchmarks, table-driven tests, fuzzing, go.mod, internal packages, functional options

© koolamusic, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in skills/golang-best-practices of koolamusic/claudefiles.

  • SKILL.md
  • references/concurrency.md
  • references/generics.md
  • references/interfaces.md
  • references/project-structure.md
  • references/testing.md

Open the folder on GitHubat commit 8a20283

Compare with similar skills

Golang Best Practices next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Golang Best Practices compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Golang Best Practices this skillkoolamusic/claudefiles130—~935Automated safety check: PassMIT
Golang Proantoniopaya22/go-rest-template1723 repos~1.2kAutomated safety check: PassMIT
Kratos Developmentaide-family/moon253—~1.5kAutomated safety check: PassNone
Axone Proto Specificationaxone-protocol/axoned176—~828Automated safety check: PassApache-2.0
Golang Grpccontext-labs/whip1.1k1 repos~2.5kAutomated safety check: PassMIT
API Design InterviewerPrepLabsAI/InterviewMentor112—~2.6kAutomated safety check: PassMIT

Similar skills

  • Golang Pro

    antoniopaya22/go-rest-template

    Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with…

    172 GitHub starsUsed in 3 repos~1.2k tokens
    Backend & APIsAuto-check passed
  • Kratos Development

    aide-family/moon

    Develops Go microservices with Kratos v2 following official design philosophy, DDD/Clean Architecture layout, Protobuf API, error/config/middleware patterns, and observability.

    253 GitHub stars~1.5k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • Axone Proto Specification

    axone-protocol/axoned

    Design and evolve protobuf APIs for this repository. An agent skill from axone-protocol/axoned.

    176 GitHub stars~828 tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Golang Grpc

    context-labs/whip

    gRPC usage, protobuf organization, and production patterns for Go microservices.

    1.1k GitHub starsUsed in 1 repo~2.5k tokens
    Backend & APIsAuto-check passed
  • API Design Interviewer

    PrepLabsAI/InterviewMentor

    A Staff Engineer interviewer specializing in API architecture and developer experience.

    112 GitHub stars~2.6k tokensUpdated 4 days ago
    Backend & APIsAuto-check passed
  • Intrinsic Core Service Authoring

    intrinsic-ai/intrinsic-core

    Intrinsic Core microservice authoring, ServiceManifest definitions (realspec vs simspec), RuntimeContext port bindings (gRPC port 1 vs HTTP port 7), SIGTERM lifecycle handling, and .binpb sideloading.

    562 GitHub stars~2.2k tokensUpdated today
    Backend & APIsAuto-check passed

More from koolamusic/claudefiles

All 15 skills in this repo
  • Explainer Formats

    koolamusic/claudefiles

    A skill your agent uses when asked to explain a topic, codebase, process, or document in a specific output format — plain language or Simplified Technical English (STE, in the style of ASD-STE100…

    130 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Localframe

    koolamusic/claudefiles

    Record silent product demos on this machine: a paced Playwright browser walkthrough of a web app or docs site, or a scripted asciinema terminal session against an API, rendered to mp4 with numbered…

    130 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Breadboarding

    koolamusic/claudefiles

    Transform a workflow description into affordance tables showing UI and Code affordances with their wiring.

    130 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Orchestrator

    koolamusic/claudefiles

    Turn the current session into a chief-of-staff thread that runs a war room of three role slots — surveyor, executor, auditor — and routes per-branch work to durable, reusable child agents.

    130 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Retro

    koolamusic/claudefiles

    A skill your agent uses when a user completes a phase, sprint, milestone, or meaningful unit of work and needs a retrospective.

    130 GitHub stars~2.8k tokensUpdated yesterday
    Auto-check passed
  • Skill Creator

    koolamusic/claudefiles

    Guide for creating effective skills. An agent skill from koolamusic/claudefiles.

    130 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Golang Best Practices

What does Golang Best Practices do?

A skill your agent uses when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Golang Best Practices is an agent skill from koolamusic/claudefiles. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems.

When should I use Golang Best Practices?

Golang Best Practices fits situations like: building Go applications requiring concurrent programming; microservices architecture; high-performance systems.

How do I install Golang Best Practices in Claude Code?

Run `npx skills add koolamusic/claudefiles --skill golang-best-practices -a claude-code`. Or copy the skill folder (skills/golang-best-practices in koolamusic/claudefiles) into .claude/skills/golang-best-practices in your project. Claude Code loads it when a task matches its description.

How do I install Golang Best Practices in Codex?

Run `npx skills add koolamusic/claudefiles --skill golang-best-practices -a codex`. Or copy the skill folder (skills/golang-best-practices in koolamusic/claudefiles) into .agents/skills/golang-best-practices in your project. Codex loads it when a task matches its description.

Can I use Golang Best Practices in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add koolamusic/claudefiles --skill golang-best-practices -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/golang-best-practices, .gemini/skills/golang-best-practices, .github/skills/golang-best-practices and .opencode/skills/golang-best-practices in your project.

What does Golang Best Practices need to run?

SKILL.md names no scripts, command-line tools or credentials: Golang Best Practices is instructions for the agent only.

Does Golang Best Practices access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Golang Best Practices safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Golang Best Practices use?

Golang Best Practices is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Golang Best Practices use?

About 935 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Golang Best Practices?

Skills that share tags, products or a category with Golang Best Practices: Golang Pro (antoniopaya22/go-rest-template, 172 stars), Kratos Development (aide-family/moon, 253 stars), Axone Proto Specification (axone-protocol/axoned, 176 stars) and Golang Grpc (context-labs/whip, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Golang Best Practices?

koolamusic (a GitHub user) maintains it in koolamusic/claudefiles, which has 130 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 10, 2026.

Source: koolamusic/claudefiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.