go-modern

go-modern is a skill for Claude Code, Codex from clubpay/ronykit. It costs 61 tokens per session (748 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 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 748 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.00061 $0.00748
Opus 5 $0.00030 $0.00374
Sonnet 5 $0.00012 $0.00150
Haiku 4.5 $0.00006 $0.00075

Measured 9d ago against content hash 3cef9c4caf34, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d 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 · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 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, not the producer.
  • Names reveal intent. Prefer elapsedDays over d; booleans as predicates (isActive, hasPermission); functions as verb+noun. See refactoring-patterns when renaming is part of a structural cleanup.
  • Errors: wrap with fmt.Errorf("...: %w", err); inspect with errors.Is / errors.As. In this workspace prefer rony/errs for domain errors.
  • Context first. ctx context.Context is the first parameter; never store it in a struct. Honor cancellation and deadlines.
  • Zero values are useful. Design types so the zero value is ready to use.
  • Generics for containers/algorithms only. Don't reach for type parameters when a concrete type or a small interface is clearer.

Use current stdlib

  • Iterators (iter.Seq, range-over-func), slices, maps, cmp for collection work instead of hand-rolled loops.
  • min/max/clear builtins.
  • for i := range n for counted loops.
  • errors.Join to combine multiple failures.
  • context.WithoutCancel, WithDeadlineCause, and AfterFunc where they fit.
  • log/slog for structured logging (or the workspace x/telemetry/logkit).

Package selection (this workspace)

Before importing a third-party or stdlib helper, check for a RonyKIT equivalent: IDs/JSON-byte casts/string↔number/case/collections → x/rkit; config → x/settings; DI → x/di; errors → rony/errs; logging → x/telemetry/logkit. Durable workflows: flow only — never import go.temporal.io/sdk directly. See knowledge://ronyup/architecture/package-selection.

Read the full file on GitHub · 67 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. 9d 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 yesterday), licensed BSD-3-Clause. It adds 61 tokens to every session and 748 once invoked, about $0.0003 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

ast-introspection

Use Go AST-aware analysis to enumerate symbols, extract signatures, and propose mechanically safe refactors (read-only by default).

pilinux/gorest · 28 tokens

dependency-auditor

Inspect Go module dependencies, detect outdated or vulnerable modules, and recommend safe updates or pinning strategies.

pilinux/gorest · 25 tokens

test-runner

Run and triage Go tests with correct environment handling; produce compact, actionable failure summaries.

pilinux/gorest · 22 tokens

rpc

Vovk.ts RPC client — how vovk generate turns controllers into type-safe client modules, composed vovk-client vs segmented clients, call shape (apiRoot, params, body, query, meta, init, disableClientValidation, validateOnClient, interpretAs, transform, fetcher), customizing generation via outputConfig.imports.fetcher +…

finom/vovk · 354 tokens

decorators

Vovk.ts decorators — built-in (@prefix, @operation, @get/@post/@put/@patch/@del, .auto()) and custom via createDecorator. Covers authorization / auth decorators, middleware-style wrapping (pre-handler + post-handler logic), req.vovk.meta() for cross-decorator state, stacking order, the decorate() alternative for…

finom/vovk · 228 tokens

mixins

Vovk.ts OpenAPI mixins — importing third-party OpenAPI 3.x schemas as typed client modules that share the same call signature as native Vovk RPC modules. Use whenever the user asks to "call a third-party API from my Vovk app", "mixin an OpenAPI schema", "import an OpenAPI spec as a client", "wrap an external service…

finom/vovk · 275 tokens