
Golang Uber Fx
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
What it does
- Covers the fx application lifecycle: constructors via
fx.Provide, triggers viafx.Invoke, and orderedOnStart/OnStophooks - Includes wiring tools such as
fx.Module,fx.Annotate, value groups,fx.Decorate,fx.Supply,fx.Replace, andfx.WithLogger - Enforces that
OnStartreturns 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-digskill for raw DI without lifecycle
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-uber-fx -yInstalls 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- Golang Uber Dig38.4K
- Golang How To38.3K
- Golang Linter26.5K
- Golang Pkg Go Dev13.7K
- Golang Refactoring13.3K
- Golang Gopls12.9K
- Golang Code Style46.6K
- Golang Testing45.9K
- Golang Error Handling45.9K
- Golang Security44.7K
- Golang Design Patterns44.3K
- Golang Performance44.1K
- Golang Concurrency44.1K
- Golang Context43.2K
- Golang Database43K
- Golang Naming43K
- Golang Safety42.7K
- Golang Project Layout42.5K
- Golang Documentation42.4K
- Golang Modernize42.4K
- Golang Lint42.3K
- Golang Data Structures42.3K
- Golang Troubleshooting42K
- Golang Observability42K
Similar to Golang Uber Fx
More Go
golang-uber-digSkillsamber/cc-skills-golang38.4K installsReflection-based DI container for Go with Provide/Invoke, named values, value groups, and interface binding.
golang-dependency-injectionSkillsamber/cc-skills-golang41.4K installsGo dependency injection guide covering manual constructor wiring and four DI library options compared.
sentry-go-sdkSkillgetsentry/sentry-for-ai2.3K installsOfficial Go SDK setup wizard for error monitoring, tracing, logging, metrics, and crons in Go apps.
fuse-goPluginfusengine/agents36 starsExpert Go 1.27+ — idioms, concurrency, backend services, cargo-grade tooling (golangci-lint v2, govulncheck), with SOLID principles
golang-proSkilljeffallan/claude-skills19.8K installsSenior Go specialist for concurrent systems, microservices, and performance work with pprof-verified optimizations.
go-concurrency-patternsSkillsickn33/agentic-awesome-skills263 installsGo concurrency guidance covering goroutines, channels, sync primitives, and context for worker pools and race debugging.