go-modern

go-modern is a skill for Claude Code, Codex from clubpay/ronykit. It costs 109 tokens per session (1,708 once invoked), scanned A, original, BSD-3-Clause.

Guidance for writing and reviewing current, idiomatic Go code, targeting Go 1.25 or later. It covers choices around the standard library, interfaces, errors, contexts, zero values, and generics.

In plain words
What is it for?
Use it when implementing or refactoring Go packages, services, or command-line tools, reviewing Go code, or choosing between standard-library and third-party helpers.
Why use it?
It gives consistent rules for making Go code clear, maintainable, and aligned with the workspace’s conventions. It also helps avoid unnecessary abstractions and incorrect handling of errors or cancellation.

Skill for Claude CodeCodex

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

Good fit Use it when implementing or refactoring Go packages, services, or command-line tools, reviewing Go code, or choosing between standard-library and third-party helpers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/clubpay/ronykit/go-modern
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 clubpay/ronykit --skill go-modern
Clone the repo
git clone --depth 1 https://github.com/clubpay/ronykit

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 go-modern

README.md
[![agentmods](https://agentmods.dev/badge/skills/clubpay/ronykit/go-modern/github.svg)](https://agentmods.dev/skills/clubpay/ronykit/go-modern)
Your own site
<a href="https://agentmods.dev/skills/clubpay/ronykit/go-modern"><img src="https://agentmods.dev/badge/skills/clubpay/ronykit/go-modern/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 go-modern

Your own site · 80×15
<a href="https://agentmods.dev/skills/clubpay/ronykit/go-modern"><img src="https://agentmods.dev/badge/skills/clubpay/ronykit/go-modern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,708 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
  • 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.00109 $0.01708
Opus 5.5 $0.00044 $0.00683
Sonnet 5.5 $0.00022 $0.00342
Haiku 4.5 $0.00011 $0.00171

Measured 1mo ago against content hash 24efee91aea4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-modern 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 1mo 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.

ronyup/internal/skeleton/skills/go-modern/SKILL.md · 125 lines

How it starts

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

Modern Go

Write Go that reads like the standard library: small, explicit, and boring in the best way. Target the workspace Go version (1.25+/1.26).

When to use

  • Implementing or refactoring Go packages, services, or CLIs.
  • Reviewing Go for idiomatic style and current stdlib usage.
  • Deciding between stdlib, a RonyKIT x/* helper, and a third-party package.

Core idioms

  • Accept interfaces, return structs. Keep interfaces small and defined by the consumer (for example internal/repo/port.go is defined for app, not by the sqlc adapter).
  • Names reveal intent. Prefer elapsedDays over d; booleans as predicates (isActive, hasPermission); functions as verb+noun. Package names are short and singular; feature packages are <feature>mod. Don't stutter (invoice.Invoice is fine, invoice.InvoiceService is not).
  • Context first. ctx context.Context is the first parameter; never store it in a struct. Honor cancellation and deadlines; pass it to every I/O call.
  • Zero values are useful. Design types so the zero value is ready to use, or make construction go through NewX(...) (X, error) when invariants apply (see domain-driven-design).
  • Generics for containers/algorithms only. Don't reach for type parameters when a concrete type or a small interface is clearer.
  • Early return. Handle errors and edge cases first; keep the happy path at the left margin.

Errors

Service code uses rony/errs only — never errors.New / fmt.Errorf for domain or API errors. Define sentinels in internal/domain/errors.go:

// internal/domain/errors.go
var (
	ErrInvoiceInvalid = errs.B().Code(errs.InvalidArgument).Msg("INVOICE_INVALID").Err()
	ErrInvoiceSave    = errs.GenWrap(errs.Internal, "INVOICE_SAVE_FAILED")
)

// internal/app
func (a *App) SaveInvoice(ctx context.Context, inv domain.Invoice) error {
	if err := a.invoices.Save(ctx, inv); err != nil {
		return domain.ErrInvoiceSave(err) // GenWrap(nil) returns nil — never use it for validation
	}

	return nil
}

Read the full file on GitHub · 125 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. 1mo ago Changed · +1 lines 24efee91aea4
  2. 1mo ago Changed · +2 lines b07a3861225f
  3. 2mo ago Changed · +54 lines · +48 tokens per session 928792a6fa14
  4. 2mo ago Changed · +1 lines 9aed3c6faa70
  5. 3mo ago First seen · 67 lines · 61 tokens per session scan A 3cef9c4caf34

Subscribe to this mod's changes

go-modern is a skill published in the GitHub repository clubpay/ronykit (38 stars, last pushed 28d ago), licensed BSD-3-Clause. It adds 109 tokens to every session and 1,708 once invoked, about $0.0004 per session on Opus 5.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

go-modern compared with skills from other repositories

go-modern next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-modernclubpay/ronykitSkill3828d agoBSD-3-ClauseA109Claude Code, Codex
ast-introspectionpilinux/gorestSkill507yesterdayMITA28Claude Code, Codex
dependency-auditorpilinux/gorestSkill507yesterdayMITA25Claude Code, Codex
test-runnerpilinux/gorestSkill507yesterdayMITA22Claude Code, Codex
rpcfinom/vovkSkill573d agoMITA347Claude Code
basefinom/vovkSkill573d agoMITA123Claude Code
decoratorsfinom/vovkSkill573d agoMITA207Claude Code