omgskills Get the Mac app
Skill

golang-dependency-injection

@samber 1.5k stars 34k installs Trending #322 on Skills.Sh Updated 2026-05-01 Author match: High

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 wiring dependencies in Go.

agentagent-skillsaiantigravityclaudeclaude-codecodecodex

Install

Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.

Install command
git clone https://github.com/samber/cc-skills-golang /tmp/cc-skills-golang && ln -s /tmp/cc-skills-golang/skills/golang-dependency-injection ~/.claude/skills/golang-dependency-injection

View on GitHub

More from this repo