hayatosc/dotfiles/golang-best-practices

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Implement or review Go code using shared API, error handling, concurrency, and testing conventions. Use the references for specialized design decisions.

Install

npx vskill@latest install hayatosc/dotfiles/golang-best-practices

SKILL.md

Go Best Practices

Respect the module's Go version (targeting Go 1.27 conventions) and established conventions. Prefer synchronous APIs with caller-owned concurrency, useful zero values, consumer-side interfaces, and explicit error handling. Use crypto/rand and uuid for security-sensitive randomness and identifiers.

Baseline for Implementation and Review

  • Use MixedCaps names and document exported APIs with a sentence beginning with the name.
  • Pass context.Context first when an operation accepts context; propagate cancellation to work it starts.
  • Check returned errors. Explain intentional discards; return errors for normal failures rather than panicking.
  • Make goroutine ownership, shutdown, and error reporting explicit. Do not start background work with no owner.
  • Use new(expr) (Go 1.26+) for pointer literals and b.Loop() (Go 1.24+) for benchmarks.
  • Use gofmt and the project's import formatter on changed files. Run the affected package tests, plus race checks when the change concerns shared state and the environment supports them.

References

Read only the reference relevant to the task:

Format changed Go files with the project's formatter and use relevant project checks. Rerun after changes or failures, not on every save. Finish when the requested behavior and affected contracts are established; document remaining limitations without broadening the task.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

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/hayatosc/dotfiles/golang-best-practices/badge)](https://verified-skill.com/skills/hayatosc/dotfiles/golang-best-practices)

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