Golang Best Practices
koolamusic/claudefiles
A skill your agent uses when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems.
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…
$ npx skills add antoniopaya22/go-rest-template --skill golang-pro -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install antoniopaya22/go-rest-template golang-pro --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/antoniopaya22/go-rest-template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/golang-pro .claude/skills/golang-pro && rm -rf skills-srcUse ~/.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/
Install the "golang-pro" agent skill from https://github.com/antoniopaya22/go-rest-template/tree/master/.agents/skills/golang-pro into .claude/skills/golang-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "golang-pro", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/antoniopaya22/go-rest-template/tree/master/.agents/skills/golang-proType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add antoniopaya22/go-rest-template --skill golang-pro -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install antoniopaya22/go-rest-template golang-pro --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antoniopaya22/go-rest-template.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/golang-pro .agents/skills/golang-pro && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "golang-pro" agent skill from https://github.com/antoniopaya22/go-rest-template/tree/master/.agents/skills/golang-pro into .agents/skills/golang-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "golang-pro", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add antoniopaya22/go-rest-template --skill golang-pro -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install antoniopaya22/go-rest-template golang-pro --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antoniopaya22/go-rest-template.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/golang-pro .cursor/skills/golang-pro && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "golang-pro" agent skill from https://github.com/antoniopaya22/go-rest-template/tree/master/.agents/skills/golang-pro into .cursor/skills/golang-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "golang-pro", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/antoniopaya22/go-rest-template.git --path .agents/skills/golang-pro--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add antoniopaya22/go-rest-template --skill golang-pro -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install antoniopaya22/go-rest-template golang-pro --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antoniopaya22/go-rest-template.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/golang-pro .gemini/skills/golang-pro && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "golang-pro" agent skill from https://github.com/antoniopaya22/go-rest-template/tree/master/.agents/skills/golang-pro into .gemini/skills/golang-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "golang-pro", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install antoniopaya22/go-rest-template golang-proInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add antoniopaya22/go-rest-template --skill golang-pro -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/antoniopaya22/go-rest-template.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/golang-pro .github/skills/golang-pro && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "golang-pro" agent skill from https://github.com/antoniopaya22/go-rest-template/tree/master/.agents/skills/golang-pro into .github/skills/golang-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "golang-pro", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add antoniopaya22/go-rest-template --skill golang-pro -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install antoniopaya22/go-rest-template golang-pro --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/antoniopaya22/go-rest-template.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/golang-pro .opencode/skills/golang-pro && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "golang-pro" agent skill from https://github.com/antoniopaya22/go-rest-template/tree/master/.agents/skills/golang-pro into .opencode/skills/golang-pro/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "golang-pro", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
golang-proImplements 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…
Golang Pro is an agent skill from 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 generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration, CLI tools, benchmarks, or table-driven testing.
Its SKILL.md is about 1.2k 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 Async programming, Microservices and gRPC and Protobuf. It works with Go and gRPC. The repository describes itself as: Go (Golang) API REST Template/Boilerplate with Gin Framework. The licence is MIT.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 1107db6. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
goFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Golang Pro loads about 1.2k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 123 tokens; SKILL.md has 336 words of instructions outside code blocks.
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.
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.
The full file from antoniopaya22/go-rest-template at commit 1107db6, republished under its MIT licence (© antoniopaya22). 336 words, ~1,234 tokens.
.claude/skills/golang-pro/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.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.
go vet ./... before proceedinggolangci-lint run and fix all reported issues before proceeding-race flag, fuzzing, 80%+ coverage; confirm race detector passes before committingLoad detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Concurrency | references/concurrency.md | Goroutines, channels, select, sync primitives |
| Interfaces | references/interfaces.md | Interface design, io.Reader/Writer, composition |
| Generics | references/generics.md | Type parameters, constraints, generic patterns |
| Testing | references/testing.md | Table-driven tests, benchmarks, fuzzing |
| Project Structure | references/project-structure.md | Module layout, internal packages, go.mod |
Goroutine with proper context cancellation and error propagation:
// worker runs until ctx is cancelled or an error occurs.
// Errors are returned via the errCh channel; the caller must drain it.
func worker(ctx context.Context, jobs <-chan Job, errCh chan<- error) {
for {
select {
case <-ctx.Done():
errCh <- fmt.Errorf("worker cancelled: %w", ctx.Err())
return
case job, ok := <-jobs:
if !ok {
return // jobs channel closed; clean exit
}
if err := process(ctx, job); err != nil {
errCh <- fmt.Errorf("process job %v: %w", job.ID, err)
return
}
}
}
}
func runPipeline(ctx context.Context, jobs []Job) error {
ctx, cancel := context.WithTimeout(ctx, 30*time.Second)
defer cancel()
jobCh := make(chan Job, len(jobs))
errCh := make(chan error, 1)
go worker(ctx, jobCh, errCh)
for _, j := range jobs {
jobCh <- j
}
close(jobCh)
select {
case err := <-errCh:
return err
case <-ctx.Done():
return fmt.Errorf("pipeline timed out: %w", ctx.Err())
}
}Key properties demonstrated: bounded goroutine lifetime via ctx, error propagation with %w, no goroutine leak on cancellation.
X | Y union constraints for generics (Go 1.18+)When implementing Go features, provide:
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
© antoniopaya22, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (references) in .agents/skills/golang-pro of antoniopaya22/go-rest-template.
Open the folder on GitHubat commit 1107db6
We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 3 other GitHub owners. This page covers the copy in antoniopaya22/go-rest-template, which our catalogue first saw on October 7, 2026.
Golang Pro 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Golang Pro this skillantoniopaya22/go-rest-template | 172 | 3 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Golang Best Practiceskoolamusic/claudefiles | 130 | — | ~935 | Automated safety check: Pass | MIT | |
| Kratos Developmentaide-family/moon | 253 | — | ~1.5k | Automated safety check: Pass | None | |
| Axone Proto Specificationaxone-protocol/axoned | 176 | — | ~828 | Automated safety check: Pass | Apache-2.0 | |
| Golang Grpccontext-labs/whip | 1.1k | 1 repos | ~2.5k | Automated safety check: Pass | MIT | |
| API Design InterviewerPrepLabsAI/InterviewMentor | 112 | — | ~2.6k | Automated safety check: Pass | MIT |
koolamusic/claudefiles
A skill your agent uses when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems.
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.
axone-protocol/axoned
Design and evolve protobuf APIs for this repository. An agent skill from axone-protocol/axoned.
context-labs/whip
gRPC usage, protobuf organization, and production patterns for Go microservices.
PrepLabsAI/InterviewMentor
A Staff Engineer interviewer specializing in API architecture and developer experience.
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.
antoniopaya22/go-rest-template
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.
antoniopaya22/go-rest-template
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage.
Categories
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…. Golang Pro is an agent skill from 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 generics, interfaces, and robust error handling.
Golang Pro fits situations like: building Go applications requiring concurrent programming; microservices architecture; high-performance systems.
Run `npx skills add antoniopaya22/go-rest-template --skill golang-pro -a claude-code`. Or copy the skill folder (.agents/skills/golang-pro in antoniopaya22/go-rest-template) into .claude/skills/golang-pro in your project. Claude Code loads it when a task matches its description.
Run `npx skills add antoniopaya22/go-rest-template --skill golang-pro -a codex`. Or copy the skill folder (.agents/skills/golang-pro in antoniopaya22/go-rest-template) into .agents/skills/golang-pro in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add antoniopaya22/go-rest-template --skill golang-pro -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-pro, .gemini/skills/golang-pro, .github/skills/golang-pro and .opencode/skills/golang-pro in your project.
Going by SKILL.md and its folder, Golang Pro needs the command-line tools its instructions call (go).
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.
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.
Golang Pro is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.9k 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.
Skills that share tags, products or a category with Golang Pro: Golang Best Practices (koolamusic/claudefiles, 130 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.
antoniopaya22 (a GitHub user) maintains it in antoniopaya22/go-rest-template, which has 172 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on March 31, 2026.
Source: antoniopaya22/go-rest-template on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.