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.
npx skills add alexastrum/skl --skill golang-how-togit clone --depth 1 https://github.com/alexastrum/sklWrote 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.
[](https://agentmods.dev/skills/alexastrum/skl/golang-how-to)<a href="https://agentmods.dev/skills/alexastrum/skl/golang-how-to"><img src="https://agentmods.dev/badge/skills/alexastrum/skl/golang-how-to/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.
<a href="https://agentmods.dev/skills/alexastrum/skl/golang-how-to"><img src="https://agentmods.dev/badge/skills/alexastrum/skl/golang-how-to.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00166 | $0.02212 |
| Opus 5 | $0.00083 | $0.01106 |
| Sonnet 5 | $0.00033 | $0.00442 |
| Haiku 4.5 | $0.00017 | $0.00221 |
Grade A, and why
golang-how-to 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Persona: You are a Go skills orchestrator. For every Go task, identify all relevant skills and load them together — a task rarely belongs to a single skill.
Modes:
- Orchestrate — for any Go coding, review, debug, or setup task, load the primary skill plus all applicable secondary skills simultaneously.
- Disambiguate — when two skills seem to overlap, show the boundary table. See disambiguation.md.
- Configure — add a
## Required Go skillsblock to the project'sCLAUDE.mdorAGENTS.md. Follow project-config.md.
Skill loading
For each task, load the primary skill and all applicable secondary skills at the same time. Do not wait — load them together at the start.
| Intent | Primary | Also load |
|---|---|---|
| Design an API, choose a pattern | golang-design-patterns |
golang-structs-interfaces, golang-naming |
| Name a type, function, or package | golang-naming |
golang-code-style |
| Handle errors idiomatically | golang-error-handling |
golang-safety (nil-heavy code) |
| Write goroutines, channels, sync | golang-concurrency |
golang-context (if cancellation) |
| Pass deadlines / cancel operations | golang-context |
golang-concurrency (if goroutines) |
| Design structs, embed, use interfaces | golang-structs-interfaces |
golang-design-patterns |
| Database queries and transactions | golang-database |
golang-error-handling, golang-security |
| Build a gRPC service | golang-grpc |
golang-testing, golang-error-handling |
| Build a GraphQL API | golang-graphql |
golang-testing, golang-error-handling |
| Build a CLI command tree | golang-spf13-cobra |
golang-cli, golang-spf13-viper (if config) |
| Layer config from flags/env/file | golang-spf13-viper |
golang-spf13-cobra |
| Write tests | golang-testing |
golang-stretchr-testify (if using testify) |
| Apply optimization patterns | golang-performance |
golang-benchmark (measure first) |
| Measure with pprof / benchstat | golang-benchmark |
golang-performance (fix), golang-troubleshooting (root cause) |
| Debug a panic or unexpected behavior | golang-troubleshooting |
golang-safety, golang-benchmark (if perf-related) |
| Monitor in production | golang-observability |
golang-performance (if SLO breach) |
| Audit security vulnerabilities | golang-security |
golang-safety, golang-lint |
| Review formatting and style | golang-code-style |
golang-naming, golang-lint |
| Configure golangci-lint | golang-lint |
golang-code-style |
| Write godoc / README / CHANGELOG | golang-documentation |
golang-naming |
| Set up a new project structure | golang-project-layout |
golang-design-patterns, golang-dependency-injection, golang-lint |
| Set up CI/CD pipeline | golang-continuous-integration |
golang-lint, golang-security |
| Choose a library | golang-popular-libraries |
relevant library-specific skill |
| Adopt new Go language features | golang-modernize |
golang-lint |
| Use samber/lo (slice/map helpers) | golang-samber-lo |
golang-data-structures, golang-performance |
| Use samber/oops (structured errors) | golang-samber-oops |
golang-error-handling |
| Use log/slog | golang-samber-slog |
golang-observability, golang-error-handling |
| Use dependency injection | golang-dependency-injection |
golang-google-wire or golang-uber-dig or golang-uber-fx or golang-samber-do |
All skill identifiers above are short forms of samber/cc-skills-golang@<name>.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 12d ago First seen · 109 lines · 166 tokens per session scan A bfa27d95813c
golang-how-to is a skill published in the GitHub repository alexastrum/skl (11 stars, last pushed 3mo ago), licensed MIT. It adds 166 tokens to every session and 2,212 once invoked, about $0.0008 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.
Other skills, from other repositories
gograph
Go repository intelligence for Claude Code. Use when reading, navigating, editing, reviewing, or refactoring a Go codebase. Exposes 64 query, analysis, and workflow capabilities through the local gograph MCP server, including bounded first-call exploration, AST-aware call graphs, blast-radius analysis, impact, and…
printing-press-polish
Polish a generated CLI to pass verification and become publish-ready. Runs diagnostics (dogfood, verify, scorecard, go vet, gosec), automatically fixes all issues (verify failures, static-analysis findings, dead code, descriptions, README, MCP tool quality), reports the before/after delta, and offers to publish. Use…
use-modern-go
Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance to generated changes.
printing-press
Set up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or Postman spec via the lean research -> generate -> build -> shipcheck loop. Use when the user says build a CLI, wrap this API, set up a new integration, add a connector, integrate with a…
go-127
What changed in Go 1.27 (released August 2026) and how it changes the way Go is written in pi-go. Use this skill when writing or reviewing Go that could use a 1.27 feature, when bumping the go directive in go.mod, when a build or test behaves differently after a toolchain upgrade, or when code-guidelines-go points…
bubbletea-testing
Use this skill whenever writing tests for Bubble Tea (charmbracelet/bubbletea) TUI applications in Go. Triggers include any mention of testing Bubble Tea models, teatest, golden file testing for TUIs, testing tea.Cmd or tea.Msg, snapshot testing terminal output, or writing tests for any Go CLI/TUI that uses the Elm…