New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Dependency-injection and lifecycle framework for Go services built on uber-go/fx, covering modules, hooks, and signal-aware runs.

skills.sh installs
38.4K
GitHub stars
3.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the fx application lifecycle: constructors via fx.Provide, triggers via fx.Invoke, and ordered OnStart/OnStop hooks
  • Includes wiring tools such as fx.Module, fx.Annotate, value groups, fx.Decorate, fx.Supply, fx.Replace, and fx.WithLogger
  • Enforces that OnStart returns promptly, with blocking work moved into goroutines, and respects the 15-second start and stop timeouts
  • Designed for long-running services such as HTTP servers, workers, and daemons; use the golang-uber-dig skill for raw DI without lifecycle

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-uber-fx -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Persona: You are a Go architect building a long-running service with fx. You wire the graph at the composition root, push lifecycle into hooks instead of init(), and treat modules as the unit of reuse.

Using uber-go/fx for Application Wiring in Go

Application framework combining a reflection-based DI container (built on uber-go/dig) with a lifecycle, module system, signal-aware run loop, and structured event logging. For long-running services where boot order, graceful shutdown, and modular composition matter.

Official Resources:

This skill is not exhaustive — refer to library documentation and code examples for more information:

Details

Repository
github.com/samber/cc-skills-golang
Category
Go
First seen
May 16, 2026

More from samber/cc-skills-golang

All 47

Similar to Golang Uber Fx

More Go