golang

golang is a skill for Claude Code, Codex from neverinfamous/memory-journal-mcp. It costs 81 tokens per session (1,056 once invoked), scanned A, original, MIT.

A set of practical standards for writing Go, a programming language often used for backend services and APIs.

In plain words
What is it for?
Use it when building Go services, designing APIs, handling errors, working with goroutines, or configuring Go linters.
Why use it?
It helps keep Go code consistent, safe, and easier to review by applying established guidance for interfaces, errors, contexts, and concurrent work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building Go services, designing APIs, handling errors, working with goroutines, or configuring Go linters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neverinfamous/memory-journal-mcp/golang
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 neverinfamous/memory-journal-mcp --skill golang
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

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/neverinfamous/memory-journal-mcp/golang.svg)](https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/golang)
Your own site
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/golang"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/golang.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,056 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.
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.00081 $0.01056
Opus 5 $0.00041 $0.00528
Sonnet 5 $0.00016 $0.00211
Haiku 4.5 $0.00008 $0.00106

Measured 8d ago against content hash 80b867e0845a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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.

skills/golang/SKILL.md · 62 lines

How it starts

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

Golang Engineering Standards

This skill synthesizes the absolute best practices from the ecosystem (Uber Guide, Google Guide, and community consensus) to ensure written Go code is idiomatic, performant, and safe.

1. Interface & API Design

  • Accept Interfaces, Return Structs: Define interfaces where they are consumed (by the caller), not where they are implemented. Return concrete structs from constructors so callers can use all methods or mock as needed.
  • Context is King: context.Context must always be the first parameter of any function doing I/O or asynchronous work.
  • Never Store Context: Do not store context.Context inside structs. It is meant to flow entirely through the function stack.
  • No Dependency Injection via Context: Only use context.WithValue for request-scoped data (like trace IDs, user claims). Never use it to pass databases, loggers, or configuration.

2. Error Handling

  • Wrapping Options: Use fmt.Errorf("doing operation: %w", err) to preserve the underlying error for errors.Is or errors.As. Use %v only if you explicitly want to hide the underlying error's identity.
  • Never Log AND Return: Pick one. If you log an error, handle it there. If you return it, let the caller log it. Doing both creates duplicate noise in APM systems.
  • Sentinel Errors: Define top-level exported errors for standard package failure modes (var ErrNotFound = errors.New(...)). Use errors.Is(err, ErrNotFound) rather than string comparisons.

3. Concurrency & Goroutines

  • Know When To Stop: Never start a goroutine without knowing exactly how and when it will terminate. Unbounded or untracked goroutines cause devastating memory leaks.
  • Coordination: Use sync.WaitGroup to wait for a pool of workers.
  • Channels vs Mutexes:
    • Use chan to pass ownership of data between concurrent routines.
    • Use sync.Mutex to protect shared state accessed from multiple routines.
  • Lock Discipline: Keep the critical section of a lock as short as physically possible. Never perform I/O while holding a mutex.

Read the full file on GitHub · 62 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. 8d ago First seen · 62 lines · 81 tokens per session scan A 80b867e0845a

Subscribe to this mod's changes

golang is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 81 tokens to every session and 1,056 once invoked, about $0.0004 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

go-grpc-patterns

Upstream: https://pkg.go.dev/google.golang.org/grpc · https://grpc.io/docs/languages/go/.

RaNDoM6913/claude-code-superkit · 70 tokens

go-samber-do

Upstream: https://github.com/samber/do · v2: https://github.com/samber/do/tree/v2.

RaNDoM6913/claude-code-superkit · 65 tokens

golang-graphql

Implements GraphQL APIs in Golang using gqlgen or graphql-go. Apply when building GraphQL servers, designing schemas, writing resolvers, handling subscriptions, or integrating GraphQL with existing Go HTTP services. Also apply when the codebase imports github.com/99designs/gqlgen or github.com/graph-gophers/graphql-go.

samber/cc-skills-golang · 77 tokens

golang-pro

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…

Jeffallan/claude-skills · 95 tokens

golang-grpc

Provides gRPC usage guidelines, protobuf organization, and production-ready patterns for Golang microservices. Use when implementing, reviewing, or debugging gRPC servers/clients, writing proto files, setting up interceptors, handling gRPC errors with status codes, configuring TLS/mTLS, testing with bufconn, or…

samber/cc-skills-golang · 72 tokens

golang-swagger

Golang OpenAPI/Swagger documentation with swaggo/swag — annotation comments (@Summary, @Param, @Success, @Router, @Security), swag init code generation, framework integrations (gin, echo, fiber, chi, net/http), security definitions (Bearer/JWT, OAuth2, API key), and struct tags (swaggertype, enums, example…

samber/cc-skills-golang · 146 tokens