go-modern-version

go-modern-version is a skill for Claude Code, Codex from Dankosik/go-service-template-rest. It costs 34 tokens per session (330 once invoked), scanned A, original, MIT.

A guide that checks which Go language and standard-library features are available for a module's declared Go version. Go is a programming language, and the module version determines which modern forms are appropriate.

In plain words
What is it for?
Use it before editing handwritten Go to inspect applicable modernization rules, record decisions for changed files, and run focused lint checks.
Why use it?
It prevents new code from copying older Go patterns when clearer supported forms are available, while preserving behavior where changes would matter.

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 Use it before editing handwritten Go to inspect applicable modernization rules, record decisions for changed files, and run focused lint checks.

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

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-version

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dankosik/go-service-template-rest/go-modern-version"><img src="https://agentmods.dev/badge/skills/dankosik/go-service-template-rest/go-modern-version.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 330 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.00034 $0.00330
Opus 5 $0.00017 $0.00165
Sonnet 5 $0.00007 $0.00066
Haiku 4.5 $0.00003 $0.00033

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

Security

Grade A, and why

go-modern-version 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 5d 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/go-modern-version/SKILL.md · 37 lines

What it actually says

Go Modern Version

Modern Go is a version surface: the module's Go version determines which language and standard-library forms are available.

Read the affected module's go.mod. When version availability affects the planned choice or modernization is requested, query the pinned JetBrains inventory from the repository root against that module's Go file or go.mod:

go tool -modfile=tools/go.mod go-modern-guidelines list --file-path <path>

Reuse the inventory for the same resolved version. Read and explain only guidelines that may affect the diff. Text-only edits or edits with no version-dependent choice need no inventory. For a modernization spanning multiple files, record applicable guideline IDs and a disposition per affected file; a single local choice needs only its rationale and focused proof.

The wrong default is copying nearby legacy syntax after the target version supports a clearer form. Apply the modern form unless it changes behavior, error identity, nil or empty meaning, aliasing, ordering, performance contracts, or source ownership; those semantic owners take precedence.

Complete when the chosen forms are available at the module's version and the affected behavior is preserved with focused proof. A modernization sweep also accounts for each affected file as applied, not applicable, or blocked with an exact reason. Use the active workflow's validation plan.

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. 5d ago Changed · +2 lines · +2 tokens per session 636739721269
  2. 11d ago First seen · 35 lines · 32 tokens per session scan A c7f7b00b437a

Subscribe to this mod's changes

go-modern-version is a skill published in the GitHub repository Dankosik/go-service-template-rest (7 stars, last pushed 3d ago), licensed MIT. It adds 34 tokens to every session and 330 once invoked, about $0.0002 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-31.