By spf13
Authoritative Go skills for Claude Code — written by spf13 (creator of Cobra, Viper, Hugo). Covers idiomatic Go, CLI architecture, spec review, release engineering, desktop apps, file operations, and testable filesystems.
Trending marketplaces
7-day visitors to each marketplace page
npx claudepluginhub spf13/go-skillsIdiomatic Go patterns and best practices — package design, error handling, interfaces, concurrency, testing, and project layout. Written by spf13 (former Go team lead, author of Cobra, Viper, Hugo, Afero).
Definitive guide to building CLI applications with Cobra and Viper — command-first architecture, configuration management, environment variable binding, and in-memory CLI testing. Written by spf13, the original creator of both libraries.
Review Go design documents before implementation begins — catches over-engineering, missing error paths, interface misuse, and Cobra/Viper convention violations while a plan is still cheap to change.
Release engineering for Go modules and applications — semantic versioning, breaking-change detection, deprecation conventions, go.mod hygiene, and binary distribution with GoReleaser.
Building native desktop applications in Go with Wails v2 (stable) and v3 (alpha). CRITICAL: v2 and v3 have incompatible APIs that LLMs constantly blend — this skill detects the version and follows only that version's patterns.
Safe file operations in Go using spf13/fileflow (move, copy, rename across filesystems with conflict-safe naming) and spf13/pathologize (make filenames and path segments safe on every OS).
Testable filesystem code in Go with spf13/afero — inject afero.Fs, test in memory with MemMapFs, layer ReadOnlyFs, CopyOnWriteFs and BasePathFs, and know where MemMapFs differs from a real disk.
Seven Agent Skills for Go work, published as a Claude Code marketplace: idiomatic Go, CLI architecture, design-spec review, release engineering, desktop apps, file operations, and testable filesystems. Written by spf13 — creator of Cobra, Viper, and Hugo, and former Go team lead at Google, where he co-designed Go modules.
| Skill | What it covers | Install |
|---|---|---|
go | Idiomatic Go — package design, error handling, interfaces, concurrency, testing, and project layout. The one to read first. | /plugin install go@go-skills |
cobra-viper | CLI architecture with Cobra and Viper — command-first design, 12-factor configuration, environment-variable binding, and in-memory CLI testing. | /plugin install cobra-viper@go-skills |
go-spec-reviewer | Review a Go design document before implementation begins — catches over-engineering, missing error paths, interface misuse, and Cobra/Viper convention violations while the plan is still cheap to change. | /plugin install go-spec-reviewer@go-skills |
go-release | Release engineering — semantic-versioning promises, mechanical breaking-change detection, Deprecated: conventions, go.mod hygiene, and shipping binaries with GoReleaser. | /plugin install go-release@go-skills |
wails | Desktop apps in Go with Wails v2 (stable) and v3 (alpha) — including how to tell the two apart, since their APIs are incompatible and easily blended by mistake. | /plugin install wails@go-skills |
fileflow-pathologize | Safe file operations with spf13/fileflow and spf13/pathologize — cross-filesystem move, copy, and rename with conflict-safe naming, plus OS-safe path sanitization. | /plugin install fileflow-pathologize@go-skills |
afero | Testable filesystem code with spf13/afero — inject afero.Fs, test in memory, layer read-only and copy-on-write filesystems, and know the four ways MemMapFs differs from a real disk. | /plugin install afero@go-skills |
/plugin marketplace add spf13/go-skills
/plugin install <skill>@go-skills
Substitute any skill name from the table above.
Link each skill directory into your agent's skills directory. On Windows, as Administrator:
New-Item -ItemType Junction -Path "$env:USERPROFILE\.agents\skills\<skill>" -Target "$PWD\<skill>"
On macOS and Linux:
ln -s "$PWD/<skill>" "$HOME/.agents/skills/<skill>"
Then restart your editor. The skills appear in the Copilot customizations index and are invoked automatically when relevant Go or CLI work is detected.
In Claude Code:
/plugin
Every installed skill is listed under its namespaced name (<skill>@go-skills). Then open a Go project, ask a question the skill covers — for example, "review this interface for idiomatic Go" — and confirm the skill fires.
.agents/skills. No runtime dependencies.Search "Go project layout" and you land on golang-standards/project-layout: nested directories, arbitrary layers (service/, repository/, pkg/), worker pools, mock frameworks.
Those are not Go patterns; they are Java patterns in Go syntax, and they fight the language. Go was built for simplicity, readability, and flat APIs. A Spring-Boot-style architecture buys circular dependencies and obscured control flow.
LLMs make it worse: trained on the whole internet, they generate Java-in-Go-syntax by default, then argue. These skills correct that, so the model stops reaching for internal/ junk drawers, BDD frameworks, and worker pools.
Tired of arguing with LLMs trained on Java-style codebases, I wrote this playbook around what the standard library and the best Go projects do:
internal/ junk drawer and the pkg/ anti-pattern.testing, table-driven tests, stubs.7-day visitors to each marketplace page
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Claude Code marketplace entries for the plugin-safe Agentic Awesome Skills library and its compatible editorial bundles.
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations