BigHugger
sk Skill · samber

golang-uber-dig

Implements dependency injection in Golang using uber-go/dig — reflection-based container, Provide/Invoke, dig.In/dig.Out parameter and result objects, named values, value groups, optional dependencies, scopes, and Decorate. Apply when using or adopting uber-go/dig, when the codebase imports go.uber.org/dig, or when wiring an application graph at startup. For higher-level lifecycle and modules, see…

installs 8w
3,697
30-day movement
starts with the next reading
Related entries
1
Connections
0
gobashGo

This is an agent skill (SKILL.md) that encodes rules, pitfalls, and resources for using uber-go/dig, the reflection-based dependency injection container for Go. It covers Provide/Invoke, dig.In/dig.Out parameter and result objects, named values, value groups, dig.As, scopes, Decorate, and testing patterns, with bundled reference files.

Reach for it when your project imports go.uber.org/dig or you are wiring an application object graph at startup and want the agent to follow correct dig conventions.

Use it to

  • Adopt uber-go/dig in a Go codebase
  • Wire constructors and the application graph in main
  • Group dependencies with dig.In and dig.Out tags
  • Disambiguate providers with named values and value groups
  • Build dig containers per test and override via Decorate

For Go developers using or adopting uber-go/dig with coding agents

Host repository
samber/cc-skills-golang
Version
1.2.2
Installs, lifetime
35k
Installs, 8 weeks
3,697
Compatible with
Designed for Claude Code, Codex or similar harness, and for projects using Golang.
Licence
MIT
Invocable by
user
Host stars
3,292
Host language
Go
topicsgolangdependency-injectionuber-go-digagent-skillwiringtesting