Agent skill

Golang Patterns

by antoniopaya22 in antoniopaya22/go-rest-template

Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.

No licenceAuto-check passedDevelopment

Install Golang Patterns

skills CLI
$ npx skills add antoniopaya22/go-rest-template --skill golang-patterns -a claude-code

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

GitHub CLI
$ gh skill install antoniopaya22/go-rest-template golang-patterns --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/antoniopaya22/go-rest-template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/golang-patterns .claude/skills/golang-patterns && 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-patterns
GitHub stars
172
Used in
9 other repos
Token cost
~3.5k tokens
SKILL.md length
298 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
None found

At a glance

Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.

  • Works in 3 steps: Simplicity and Clarity → Make the Zero Value Useful → Accept Interfaces, Return Structs
  • Tasks that involve Async programming
  • SKILL.md covers When to Activate, Core Principles, Error Handling Patterns and Concurrency Patterns, plus 4 more sections
  • Calls go

What it does

Golang Patterns is an agent skill from antoniopaya22/go-rest-template. Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Async programming. It works with Go. The repository describes itself as: Go (Golang) API REST Template/Boilerplate with Gin Framework.

When your agent uses it

  • Tasks that involve Async programming

Example prompts

  • “/golang-patterns”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Simplicity and Clarity
  2. Make the Zero Value Useful
  3. Accept Interfaces, Return Structs

What it can do on your machine

Read from SKILL.md and the folder at commit 1107db6. 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

    Shell commands in SKILL.md call:

    • go

    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 Patterns loads about 3.5k tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 298 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~34
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 298 words (~3,480 tokens).

“Idiomatic Go patterns and best practices for building robust, efficient, and maintainable applications.”

— opening of SKILL.md by antoniopaya22
name
golang-patterns
origin
ECC

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/golang-patterns of antoniopaya22/go-rest-template.

Open the folder on GitHubat commit 1107db6

Used in 9 other repositories

We found 14 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 9 other GitHub owners. This page covers the copy in antoniopaya22/go-rest-template, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Golang Patterns 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 Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Golang Patterns this skillantoniopaya22/go-rest-template1729 repos~3.5kAutomated safety check: PassNone
Context Handling in fp-goIBM/fp-go2k—~4.2kAutomated safety check: PassApache-2.0
Go Concurrencyinference-gateway/inference-gateway214—~2.3kAutomated safety check: PassApache-2.0
Golang Concurrencyunxed/f42441 repos~2.4kAutomated safety check: PassMIT
Golang Prodavila7/claude-code-templates33k8 repos~1.9kAutomated safety check: PassMIT
Golang Concurrencycontext-labs/whip1.1k—~2.3kAutomated safety check: PassMIT

Similar skills

  • Official

    Covers handling Go's context.Context idiomatically in fp-go code: reading and scoping context through operators, timeouts, cancellation and converting ctx-first functions.

    2k GitHub stars~4.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Go Concurrency

    inference-gateway/inference-gateway

    Idiomatic Go concurrency - sync primitives, channel semantics, the select statement, and the standard channel patterns (cancellation/done-channel, fan-out/fan-in, pipeline, or-done, context…

    214 GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Golang concurrency design — goroutine lifecycle and leak prevention, channels and select, channel ownership and direction, sync.Mutex/RWMutex/sync.Map/sync.Once/atomics, errgroup, singleflight…

    244 GitHub starsUsed in 1 repo~2.4k tokens
    DevelopmentAuto-check passed
  • Golang Pro

    davila7/claude-code-templates

    Master Go 1.21+ with modern patterns, advanced concurrency, performance optimization, and production-ready microservices.

    33k GitHub starsUsed in 8 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Golang Concurrency

    context-labs/whip

    Golang concurrency patterns. An agent skill from context-labs/whip.

    1.1k GitHub stars~2.3k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Golang Expert

    RightNow-AI/openfang

    Go programming expert for goroutines, channels, interfaces, modules, and concurrency patterns

    18k GitHub stars~867 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed

More from antoniopaya22/go-rest-template

  • 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
    Auto-check passed
  • Golang Testing

    antoniopaya22/go-rest-template

    Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage.

    172 GitHub starsUsed in 9 repos~4.2k tokens
    Auto-check passed

Works with

Categories

Questions about Golang Patterns

What does Golang Patterns do?

Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications. Golang Patterns is an agent skill from antoniopaya22/go-rest-template. Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.

When should I use Golang Patterns?

Golang Patterns fits situations like: tasks that involve Async programming.

How do I install Golang Patterns in Claude Code?

Run `npx skills add antoniopaya22/go-rest-template --skill golang-patterns -a claude-code`. Or copy the skill folder (.agents/skills/golang-patterns in antoniopaya22/go-rest-template) into .claude/skills/golang-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Golang Patterns in Codex?

Run `npx skills add antoniopaya22/go-rest-template --skill golang-patterns -a codex`. Or copy the skill folder (.agents/skills/golang-patterns in antoniopaya22/go-rest-template) into .agents/skills/golang-patterns in your project. Codex loads it when a task matches its description.

Can I use Golang Patterns 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 antoniopaya22/go-rest-template --skill golang-patterns -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-patterns, .gemini/skills/golang-patterns, .github/skills/golang-patterns and .opencode/skills/golang-patterns in your project.

What does Golang Patterns need to run?

Going by SKILL.md and its folder, Golang Patterns needs the command-line tools its instructions call (go).

Does Golang Patterns 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 Patterns 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 Patterns use?

No licence was found for Golang Patterns or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Golang Patterns use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Golang Patterns?

Skills that share tags, products or a category with Golang Patterns: Context Handling in fp-go (IBM/fp-go, 2k stars), Go Concurrency (inference-gateway/inference-gateway, 214 stars), Golang Concurrency (unxed/f4, 244 stars) and Golang Pro (davila7/claude-code-templates, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Golang Patterns?

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.