Home / Skills / golang-dependency-injection
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 wiring dependencies in Go. For a specific DI library, → See `samber/cc-skills-golang@golang-google-
Why this score
This repo hosts 10 skills, so its 3,522 stars are split between them (about 352 each) for scoring.
Popularity score: 69/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank
Security
Scanned Oct 20, 2026 at commit 8e899e20ff0c, with Cisco's open-source skill-scanner.
None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.
A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan
Alternatives
Other makers' add-ons that do the same job, next to this one.
| Name | Score | Stars | Context | Updated |
|---|---|---|---|---|
| This onegolang-dependency-injection samber/cc-skills-golang · Skill | 69 | ★ 3.5k | ≈157 always | 1mo ago |
| pydantic-ai-dependency-injection existential-birds/beagle · Skill Both about injection and dependency | 49 | ★ 84 | ≈53 always | 2mo ago |
| language-injection microsoft/data-formulator · Skill Both about injection | 84 | ★ 18k | ≈24 always | 16d ago |
| golang-pro ursisterbtw/ccprompts · Subagent Both about golang and go | 52 | ★ 70 | ≈153 in chat | 1mo ago |
| audit-dependencies flutter/flutter-intellij · Skill Both about dependency and library | 73 | ★ 2.0k | ≈29 always | 19d ago |
| dependency-audit omergocmen/vibe-coder-kit · Skill Both about dependency | 48 | ★ 95 | ≈21 always | 5mo ago |