BigHugger
sk Skill · samber

golang-uber-fx

Golang application framework using uber-go/fx — fx.New, fx.Provide, fx.Invoke, fx.Module, fx.Lifecycle hooks, fx.Annotate (name/group/As), fx.Decorate, fx.Supply, fx.Replace, fx.WithLogger, and signal-aware Run(). Apply when using or adopting uber-go/fx, when the codebase imports go.uber.org/fx, or when wiring services with fx.New. For raw DI without lifecycle, see samber/cc-skills-golang@golang-uber-dig skill.

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

An agent skill that teaches uber-go/fx application wiring in Go: fx.New, Provide, Invoke, Modules, lifecycle hooks, fx.Annotate, decorators, value groups, and signal-aware Run(). It bundles rules, pitfalls, and reference files on advanced usage, recipes, and testing with fxtest.

Reach for it when your codebase imports go.uber.org/fx or you are adopting it and want correct wiring, lifecycle, and module patterns.

Use it to

  • Wire services with fx.New, fx.Provide, and fx.Invoke
  • Structure providers into fx.Module groups
  • Add lifecycle hooks for startup and shutdown
  • Use fx.Annotate for name/group/As bindings
  • Test fx applications with fxtest and fx.Populate

For Go developers using or adopting uber-go/fx

Host repository
samber/cc-skills-golang
Version
1.2.2
Installs, lifetime
35k
Installs, 8 weeks
3,552
Compatible with
Designed for Claude Code, Codex or similar harness, and for projects using Golang.
Licence
MIT
Invocable by
user
Host stars
3,273
Host language
Go
topicsgolanguber-go-fxdependency-injectionlifecycleagent-skilltesting