Registry / samber

samber/cc-skills-golang/golang-dependency-injection

Comprehensive guide for dependency injection (DI) in Golang. Covers why DI matters (testability, loose coupling, separation of concerns, lifecycle management), manual constructor injection, and DI library comparison (google/wire, uber-go/dig, uber-go/fx, samber/do). Use this skill when designing service architecture, setting up dependency injection, refactoring tightly coupled code, managing singletons or service factories, or when the user asks about inversion of control, service containers, or

Agent skill · version 2.0.1-main.1794413031.gd68d80a · from samber/cc-skills-golang

Install

npx yarkr-cli add skill:samber/cc-skills-golang/golang-dependency-injection

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:samber/cc-skills-golang/golang-dependency-injection
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:samber/cc-skills-golang/golang-dependency-injection

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:samber/cc-skills-golang/golang-dependency-injection

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.