golang

golang is a skill for Claude Code, Codex from JanDeDobbeleer/oh-my-posh. It costs 26 tokens per session (3,816 once invoked), scanned A, original, MIT.

A set of coding standards for Go, a programming language commonly used for backend tools and services. It covers code structure, naming, errors, documentation, and use of Go modules for dependencies.

In plain words
What is it for?
It is for writing, reviewing, or refactoring Go source files. It guides package names, exported documentation, error messages, control flow, and typed collections.
Why use it?
It helps keep Go code clear, predictable, and consistent with established community practices. It reduces avoidable review issues caused by confusing style or unnecessary complexity.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit It is for writing, reviewing, or refactoring Go source files. It guides package names, exported documentation, error messages, control flow, and typed collections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jandedobbeleer/oh-my-posh/golang
About the project

oh-my-posh is a customizable prompt theme engine that renders command-line prompts across shells and platforms. Developers and terminal users use it to configure primary, secondary, right, and transient prompts in shells such as PowerShell, zsh, Bash, and cmd. The catalogue entries provide skills, instructions, agents, and an MCP integration for working with oh-my-posh.

JanDeDobbeleer/oh-my-posh · 23,439 stars · on GitHub · ohmyposh.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JanDeDobbeleer/oh-my-posh --skill golang
Clone the repo
git clone --depth 1 https://github.com/JanDeDobbeleer/oh-my-posh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for golang

README.md
[![agentmods](https://agentmods.dev/badge/skills/jandedobbeleer/oh-my-posh/golang/github.svg)](https://agentmods.dev/skills/jandedobbeleer/oh-my-posh/golang)
Your own site
<a href="https://agentmods.dev/skills/jandedobbeleer/oh-my-posh/golang"><img src="https://agentmods.dev/badge/skills/jandedobbeleer/oh-my-posh/golang/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for golang

Your own site · 80×15
<a href="https://agentmods.dev/skills/jandedobbeleer/oh-my-posh/golang"><img src="https://agentmods.dev/badge/skills/jandedobbeleer/oh-my-posh/golang.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.03816
Opus 5 $0.00013 $0.01908
Sonnet 5 $0.00005 $0.00763
Haiku 4.5 $0.00003 $0.00382

Measured 11d ago against content hash 27e6905b4fa8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

golang scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/golang/SKILL.md · 513 lines

How it starts

The opening of the file, as written. The whole thing — 513 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go Development Instructions

Follow idiomatic Go practices and community standards when writing Go code. These instructions are based on Effective Go, Go Code Review Comments, and Google's Go Style Guide.

General Instructions

  • Write simple, clear, and idiomatic Go code
  • Favor clarity and simplicity over cleverness
  • Follow the principle of least surprise
  • Keep the happy path left-aligned (reduce indentation)
  • Return early to reduce nesting
  • Make the zero value useful
  • Document exported types, functions, methods, and packages
  • Use Go modules for dependency management
  • AVOID else statements - use early returns, continue, or break instead
  • Avoid wrapping primitives without a clear semantic benefit; define new types when they add meaning.
  • Use typed slices/maps and document element semantics when not obvious.
  • Start error strings with a lowercase letter.

Naming Conventions

Packages

  • Use lowercase, single-word package names
  • Avoid _ characters, hyphens, or mixedCaps
  • Choose names that describe what the package provides, not what it contains
  • Avoid generic names like util, common, or base
  • Package names should be singular, not plural

Variables and Functions

  • Use mixedCaps or MixedCaps (camelCase) rather than _ characters
  • Keep names short but descriptive
  • Use single-letter variables for very short scopes (like loop indices)
  • Exported names start with a capital letter
  • Unexported names start with a lowercase letter
  • Avoid stuttering (e.g., avoid http.HTTPServer, prefer http.Server)

Interfaces

  • Name interfaces with -er suffix when possible (e.g., Reader, Writer, Formatter)
  • Single-method interfaces should be named after the method (e.g., ReadReader)
  • Keep interfaces small and focused

Constants

  • Use MixedCaps for exported constants
  • Use mixedCaps for unexported constants
  • Group related constants using const blocks
  • Consider using typed constants for better type safety

Read the full file on GitHub · 513 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 513 lines · 26 tokens per session scan A 27e6905b4fa8

Subscribe to this mod's changes

golang is a skill published in the GitHub repository JanDeDobbeleer/oh-my-posh (23,439 stars, last pushed 2d ago), licensed MIT. It adds 26 tokens to every session and 3,816 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

golang-style

Go conventions specific to this author. Use before writing or editing any Go (.go) file.

fredrikaverpil/dotfiles · 23 tokens

scaffold-go

Scaffold a complete Go project with CI/CD, release pipeline, Makefile, sr.yaml, .envrc, and standard files. Uses go toolchain and make as the native build system. Loads on top of scaffold-project (run that first for cross-language standard files). Use when creating a new Go CLI, service, or module, or when the user…

urmzd/dotfiles · 116 tokens

golang-testing

Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.

affaan-m/ECC · 37 tokens

golang-patterns

Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization. Use when working with Go code to apply idiomatic Go patterns.

affaan-m/ECC · 45 tokens

golang-testing

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…

samber/cc-skills-golang · 115 tokens

golang-samber-oops

Structured error handling in Golang with samber/oops — error builders, stack traces, error codes, error context, error wrapping, error attributes, user-facing vs developer messages, panic recovery, and logger integration. Apply when using or adopting samber/oops, or when the codebase already imports…

samber/cc-skills-golang · 74 tokens