golang-cli

A guide to building command-line tools in Go—programs that people run from a terminal—with commands, flags, configuration, input, and tests.

In plain words
What is it for?
Use it when building or reviewing Go CLI tools, including command structure, configuration, exit codes, shell completion, and unit tests.
Why use it?
It helps make terminal programs behave predictably, handle invalid input and shutdowns, and remain testable.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/emilioforrer/go-stack/golang-cli
Any agent
npx skills add emilioforrer/go-stack --skill golang-cli
Clone the repo
git clone --depth 1 https://github.com/emilioforrer/go-stack

Made for: Claude Code, Codex.

Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,278 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00075 $0.02278
Opus 5 $0.00037 $0.01139
Sonnet 5 $0.00015 $0.00456
Haiku 4.5 $0.00007 $0.00228

Measured 2d ago against content hash 0ede7a0cca10, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

golang-cli 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 2d 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/golang-cli/SKILL.md · 206 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 2d ago First seen · 206 lines · 75 tokens per session scan A 0ede7a0cca10

Subscribe to this mod's changes

golang-cli is a skill published in the GitHub repository emilioforrer/go-stack (6 stars, last pushed 13d ago), with no licence file. It adds 75 tokens to every session and 2,278 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-31.

Related

Other skills, from other repositories

hns-moaiadk-best-practices

Every change must pass all five dimensions before completion.

modu-ai/moai-adk · 129 tokens

hns-moaiadk-patterns

Skill "hns-moaiadk-patterns" from modu-ai/moai-adk, covering moai-adk-go domain patterns, architecture quick reference, key source paths, pipeline specialist delegation map and template-first build cycle.

modu-ai/moai-adk · 116 tokens

hns-moaiadk-dev-reference

Skill "hns-moaiadk-dev-reference" from modu-ai/moai-adk, covering hns-moaiadk-dev-reference, version management (from claude.local.md §5), single source of truth, build version injection and build with version injection.

modu-ai/moai-adk · 54 tokens

ring:adopting-lib-commons-huma-wrapper

Adopting the lib-commons/v5 shared Huma (OAS 3.1) OpenAPI wrapper + RFC 9457 problem model (commons/net/http/{openapi,problem}) in a Lerian Go service: wire openapi.New/ServeSpec + problem.Install (central >=500 scrub) on BOTH runtime and spec-gen paths, the per-rail problem.MapError flex seam, and rename-only spec…

LerianStudio/ring · 142 tokens

kessoku-di

Kessoku compile-time DI with parallel initialization for Go. Use when writing or debugging kessoku providers/injectors, enabling async dependencies, migrating from google/wire, or fixing go:generate/codegen issues in Go services.

mazrean/kessoku · 52 tokens

loom-golang

Go language expertise for idiomatic, production-quality code. Use for Go development, concurrency patterns with goroutines and channels, error handling, testing, and module management following Effective Go principles.

cosmix/loom · 41 tokens