Agent skill

Use Modern Go

by compozy in compozy/compozy

Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code.

MITAuto-check passedDevelopment

Install Use Modern Go

skills CLI
$ npx skills add compozy/compozy --skill use-modern-go -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install compozy/compozy use-modern-go --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/compozy/compozy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/use-modern-go .claude/skills/use-modern-go && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
use-modern-go
GitHub stars
2.8k
Token cost
~653 tokens
SKILL.md length
320 words
Files
4 (incl. scripts)
Skills in repo
47
Repo updated
First seen
Licence
MIT

At a glance

Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code.

  • Works in 4 steps: Call the wrapper's list subcommand for… → If the target Go version is already… → Read the complete list output before… → …
  • Tasks that involve Refactoring
  • Runs PowerShell and Shell scripts from its folder; calls sh

What it does

Use Modern Go is an agent skill from compozy/compozy. Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance to generated changes.

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `scripts/run-tool.sh`).

It sits in Development, covering Refactoring. The repository describes itself as: An operating system for AI agents. Plug in the agent CLIs you already use (Claude Code, Codex, Gemini CLI, Cursor) and they become a team: they split the work, hand tasks to each… The licence is MIT.

When your agent uses it

  • Tasks that involve Refactoring

Example prompts

  • “/use-modern-go”

Requirements

  • A Bash shell
  • PowerShell

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Call the wrapper's list subcommand for the relevant Go file.
  2. If the target Go version is already known, you may pass it directly
  3. Read the complete list output before deciding which guidelines apply.
  4. Treat returned guidelines as authoritative for modern Go style choices in code you are editing.

What it can do on your machine

Read from SKILL.md and the folder at commit 8853494. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (PowerShell and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • sh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Use Modern Go loads about 653 tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 320 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~653

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from compozy/compozy at commit 8853494, republished under its MIT licence (© compozy). 320 words, ~653 tokens.

Download SKILL.mdSave it as .claude/skills/use-modern-go/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
use-modern-go
description
Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance to generated changes.

Modern Go Guidelines CLI

Always write modern, idiomatic Go code. Use the Modern Go Guidelines CLI as the source of truth for modern Go idioms that may be newer than your knowledge cutoff.

Command:

  • Linux or macOS: sh "<skill-dir>/scripts/run-tool.sh"
  • Windows PowerShell: & '<skill-dir>\scripts\run-tool.ps1'

First run and approvals:

On first use, the wrapper installs the Modern Go Guidelines CLI in a local cache directory.

Subcommands:

  • list
  • explain

Before editing Go code:

  1. Call the wrapper's list subcommand for the relevant Go file.

    Prefer passing the file you are about to edit:

    sh
    sh "<skill-dir>/scripts/run-tool.sh" list --file-path path/to/file.go

    On Windows, use the PowerShell wrapper with the same arguments.

    The CLI resolves the applicable Go version from go.mod, go.work, the local Go toolchain, or an explicit override.

  2. If the target Go version is already known, you may pass it directly:

    sh
    sh "<skill-dir>/scripts/run-tool.sh" list --go-version 1.24
  3. Read the complete list output before deciding which guidelines apply.

    The list output is ordered newest first. Read the full output because older supported guidelines may still apply.

    Do not pipe the output through head, tail, grep, sed, or any other truncating/filtering command. Important guidelines may otherwise be missed.

  4. Treat returned guidelines as authoritative for modern Go style choices in code you are editing.

    If a guideline applies, follow it even when nearby code or repository convention uses an older pattern. Skip it only when it would not compile, would change behavior, or clearly does not match the edited code. Before skipping a returned guideline that seems relevant, call the wrapper's explain subcommand for that guideline ID.

Call explain only when a specific guideline may apply and you need the detailed explanation or examples. Request only the guideline IDs you intend to evaluate or apply:

sh
sh "<skill-dir>/scripts/run-tool.sh" explain sync_waitgroup_go

Multiple guideline IDs may be requested as positional arguments:

sh
sh "<skill-dir>/scripts/run-tool.sh" explain atomic_types errors_as_type

Do not call explain without guideline IDs. Use list first to discover the short guideline list for the target Go version, then call explain for the specific returned IDs that need more context.

© compozy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts) in .agents/skills/use-modern-go of compozy/compozy.

  • SKILL.md
  • scripts/VERSION
  • scripts/run-tool.ps1
  • scripts/run-tool.sh

Open the folder on GitHubat commit 8853494

Compare with similar skills

Use Modern Go next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Use Modern Go compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Use Modern Go this skillcompozy/compozy2.8k—~653Automated safety check: PassMIT
Guidelinesakash-network/node1.1k20 repos~577Automated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Component Refactoringlangflow-ai/langflow155k—~3.5kAutomated safety check: PassMIT
Ponytail Lazy Developer ModeDietrichGebert/ponytail160k1 repos~873Automated safety check: PassMIT
ast-grep Structural Searchcode-yeongyu/oh-my-openagent70k—~3.3kAutomated safety check: PassMIT

Similar skills

  • Guidelines

    akash-network/node

    Behavioral guidelines to reduce common LLM coding mistakes. An agent skill from akash-network/node.

    1.1k GitHub starsUsed in 20 repos~577 tokens
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Component Refactoring

    langflow-ai/langflow

    Refactor high-complexity React components in Langflow frontend.

    155k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Ponytail Lazy Developer Mode

    DietrichGebert/ponytail

    Makes the agent pick the laziest solution that works: skip unneeded work, reuse what exists, prefer the standard library and platform features, and keep diffs small.

    160k GitHub starsUsed in 1 repo~873 tokens
    DevelopmentAuto-check passed
  • ast-grep Structural Search

    code-yeongyu/oh-my-openagent

    Searches and rewrites code by syntax-tree shape across 25 languages with ast-grep, for codemods, structural queries and YAML lint rules, using a Python wrapper script.

    70k GitHub stars~3.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Systematic Code Refactoring

    luongnv89/claude-howto

    Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.

    42k GitHub stars~3k tokensUpdated 9 days ago
    DevelopmentAuto-check passed

More from compozy/compozy

All 47 skills in this repo
  • Eng Real Scenario QA

    compozy/compozy

    Dogfoods Compozy through an autonomous startup scenario with live providers, cross-surface observation, and strict evidence audit.

    2.8k GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • Eng Test Conventions

    compozy/compozy

    Go test-shape discipline for Compozy. An agent skill from compozy/compozy.

    2.8k GitHub stars~467 tokensUpdated today
    Auto-check passed
  • Assistant UI

    compozy/compozy

    Guide for assistant-ui library - AI chat UI components. An agent skill from compozy/compozy.

    2.8k GitHub stars~958 tokensUpdated today
    Auto-check passed
  • Guide for assistant-ui UI primitives - ThreadPrimitive, ComposerPrimitive, MessagePrimitive.

    2.8k GitHub stars~999 tokensUpdated today
    Auto-check passed
  • Assistant UI Runtime

    compozy/compozy

    Guide for assistant-ui runtime system and state management. An agent skill from compozy/compozy.

    2.8k GitHub stars~856 tokensUpdated today
    Auto-check passed
  • Assistant UI Streaming

    compozy/compozy

    Guide for assistant-stream package and streaming protocols. An agent skill from compozy/compozy.

    2.8k GitHub stars~813 tokensUpdated today
    Auto-check passed

Categories

Questions about Use Modern Go

What does Use Modern Go do?

Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Use Modern Go is an agent skill from compozy/compozy. Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code.

When should I use Use Modern Go?

Use Modern Go fits situations like: tasks that involve Refactoring.

How do I install Use Modern Go in Claude Code?

Run `npx skills add compozy/compozy --skill use-modern-go -a claude-code`. Or copy the skill folder (.agents/skills/use-modern-go in compozy/compozy) into .claude/skills/use-modern-go in your project. Claude Code loads it when a task matches its description.

How do I install Use Modern Go in Codex?

Run `npx skills add compozy/compozy --skill use-modern-go -a codex`. Or copy the skill folder (.agents/skills/use-modern-go in compozy/compozy) into .agents/skills/use-modern-go in your project. Codex loads it when a task matches its description.

Can I use Use Modern Go in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add compozy/compozy --skill use-modern-go -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/use-modern-go, .gemini/skills/use-modern-go, .github/skills/use-modern-go and .opencode/skills/use-modern-go in your project.

What does Use Modern Go need to run?

Going by SKILL.md and its folder, Use Modern Go needs PowerShell and a shell for the scripts in its folder and the command-line tools its instructions call (sh). Our summary lists: A Bash shell; PowerShell.

Does Use Modern Go access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Use Modern Go safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Use Modern Go use?

Use Modern Go is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Use Modern Go use?

About 653 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Use Modern Go?

Skills that share tags, products or a category with Use Modern Go: Guidelines (akash-network/node, 1.1k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), Component Refactoring (langflow-ai/langflow, 155k stars) and Ponytail Lazy Developer Mode (DietrichGebert/ponytail, 160k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Use Modern Go?

compozy (a GitHub organization) maintains it in compozy/compozy, which has 2,792 GitHub stars. The repository holds 47 skills in this directory. The repository was last updated on October 10, 2026.

Source: compozy/compozy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.