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/golang

SKILL.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

  1. Clear over clever. Short functions, short files, short package names.
  2. Return errors; never panic at API boundaries. Panics are for unrecoverable bugs, not flow control.
  3. Accept interfaces, return structs. The caller owns the abstraction.
  4. Interfaces live at the call site (consumer-defined). Don't define an interface until you have two implementations or a test double.
  5. `context.Context` as the first parameter on anything that does I/O or can be cancelled.
  6. Goroutines need a lifecycle. Every go f() needs a story: how it stops, who waits, what happens on error.
  7. No hidden control flow. No macros, no implicit constructors, no this. If it runs, it's in the code you see.
  8. Format with `gofmt`. Style is not a discussion.

How to use references

ReferenceWhen 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)

  • panic outside of init() 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 return statement
  • Global mutable state for business data (singletons, package-level vars)
  • Allocating in a hot loop when sync.Pool or preallocation would fix it
  • Using interface{} / any when 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/edwardzhang/sps-cli/golang/badge)](https://verified-skill.com/skills/edwardzhang/sps-cli/golang)

Something wrong with this skill or its page? Tell us.