
Description
golang-uber-fx is an agent skill for building long-running Go services with uber-go/fx. Fx is an application framework that combines a dependency injection container, built on uber-go/dig, with a lifecycle, a module system, a signal-aware run loop and structured event logging. The skill is aimed at services where startup order, graceful shutdown and modular composition matter. Its persona wires the whole graph at the composition root, puts start-up and shut-down work into lifecycle hooks rather than init functions, and treats modules as the unit of reuse. The skill covers the main calls: fx.New to build the application, fx.Provide to register constructors, fx.Invoke to run code at startup, fx.Module to group related providers, lifecycle hooks, fx.Annotate for naming, grouping and interface binding, and fx.Decorate to wrap a dependency. It is not an exhaustive reference, so the agent is told to check the official fx documentation for current API details, and it can use related skills for package facts and for navigating the project's own code. It is part of the samber cc-skills-golang collection and is installed with the skills command in a compatible agent.…
Highlights
- Application framework with lifecycle hooks
- Modules for reusable groups of providers
- fx.Annotate and fx.Decorate
- Graceful start and shutdown guidance
Ratings & Reviews
No ratings yet
Be the first to rate golang-uber-fx.
People also visit
golang-uber-fx FAQ
What does golang-uber-fx do?
It helps an agent build a long-running Go service with the uber-go/fx application framework.
What does fx add over dig?
A lifecycle, a module system, a signal-aware run loop and structured event logging, on top of the dig container.
Where should startup work go?
The skill says to put lifecycle work in hooks rather than in init functions.
What calls does it cover?
fx.New, fx.Provide, fx.Invoke, fx.Module, lifecycle hooks, fx.Annotate and fx.Decorate.
How do I install it?
Run: npx skills add https://github.com/samber/cc-skills-golang --skill golang-uber-fx
What security audits has it passed?
Gen Agent Trust Hub, Socket and Snyk all passed.
What are the best golang-uber-fx alternatives?
Popular alternatives to golang-uber-fx include golang-uber-dig, golang-samber-do and golang-dependency-injection. See all golang-uber-fx alternatives


