edwardzhang/sps-cli/golang
Claude Code and agent skill by edwardzhang/sps-cli
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Go language skill — idioms, errors, concurrency, testing. Pair with end skills (`backend`, `devops`) for architecture and with `coding-standards` for cross-language principles.
Install
npx vskill@latest install edwardzhang/sps-cli/golangSKILL.md
The same SKILL.md was published earlier as edwardzhang/sps-cli/golang.
Go
Go is small on purpose. Few idioms, clear conventions, one canonical way to do most things. Fight the language less, follow its grain more.
When to load
- Project primary language is Go
- Reviewing Go code
- Designing packages, interfaces, error types
- Concurrency with goroutines, channels,
context.Context
Core principles
- Clear over clever. Short functions, short files, short package names.
- Return errors; never panic at API boundaries. Panics are for unrecoverable bugs, not flow control.
- Accept interfaces, return structs. The caller owns the abstraction.
- Interfaces live at the call site (consumer-defined). Don't define an interface until you have two implementations or a test double.
- `context.Context` as the first parameter on anything that does I/O or can be cancelled.
- Goroutines need a lifecycle. Every
go f()needs a story: how it stops, who waits, what happens on error. - No hidden control flow. No macros, no implicit constructors, no
this. If it runs, it's in the code you see. - Format with `gofmt`. Style is not a discussion.
How to use references
| Reference | When to load | |
|---|---|---|
| `references/idioms.md` | Package layout, naming, zero values, struct embedding, slices vs. arrays | |
| `references/errors.md` | error interface, wrapping (%w), errors.Is/As, sentinel vs. typed errors | |
| `references/concurrency.md` | Goroutines, channels, sync, context.Context, cancellation, errgroup | |
| `references/testing.md` | testing package, table-driven tests, t.Run, testify, fuzzing, benchmarks |
Forbidden patterns (auto-reject)
panicoutside ofinit()or truly unrecoverable state- Ignoring errors with
_, except in narrow documented cases - Goroutines without a cancellation path / termination contract
- Blocking operations without
context.Context - Interface defined in the package that provides the implementation (should live at call site)
init()doing I/O or mutating globals- Returning named result parameters just to "save" a
returnstatement - Global mutable state for business data (singletons, package-level vars)
- Allocating in a hot loop when
sync.Poolor preallocation would fix it - Using
interface{}/anywhen a concrete type is known
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/golang/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/edwardzhang/sps-cli/golang)