This teaches Claude how to wire Go services with Uber's fx framework, which wraps dig's dependency injection with lifecycle hooks, signal-aware shutdown, and a module system. You want this when building long-running servers where startup order and graceful teardown matter. It covers the essentials: fx.Provide for wiring, fx.Invoke to trigger construction, fx.Lifecycle for OnStart/OnStop hooks, fx.Module for scoped composition, and fx.Annotate for tagging without boilerplate structs. The skill draws a clear line between fx and raw dig, recommends lifecycle hooks over init() to avoid races, and pushes a module-by-concern architecture. Good for HTTP servers, workers, and daemons where the composition root needs real structure.

skills.sh installs
38.1K
GitHub stars
3.8K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

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

More from samber/cc-skills-golang

All 47
1clerk avatarclerk-cliclerk/skillsOperate the Clerk CLI (`clerk` binary) for authentication, user/org/session management, impersonation, local webhook testing, deploy verification, instance conf35.8Kskills.sh installs
2jimliu avatarbaoyu-post-to-wechatjimliu/baoyu-skillsPosts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text p34.8Kskills.sh installs
3addyosmani avatarcore-web-vitalsaddyosmani/web-quality-skillsOptimize Core Web Vitals (LCP, INP, CLS) for better page experience and search ranking. Use when asked to "improve Core Web Vitals", "fix LCP", "reduce CLS", "o34.4Kskills.sh installs
4jimliu avatarbaoyu-infographicjimliu/baoyu-skillsGenerate professional infographics with 21 layout types and 22 visual styles. Analyzes content, recommends layout×style combinations, and generates publication-33.4Kskills.sh installs
5mcp-use avatarmcp-apps-buildermcp-use/mcp-useBuild, modify, debug, migrate, or review TypeScript MCP servers and interactive MCP Apps using mcp-use v2. Use for tools, resources, prompts, Views, React host 33.1Kskills.sh installs
6vercel-labs avatarnext-cache-componentsvercel-labs/next-skillsMix static, cached, and dynamic content in a single Next.js route with Partial Prerendering.33Kskills.sh installs