Go fx

From metalagman/agent-skills · View interactive version

Go fx is an AI agent skill from the GitHub repository metalagman/agent-skills. Use this skill to build, refactor, or review Go applications using the Uber Fx dependency injection framework. It ensures idiomatic use of Fx for lifecycle management, module-based architecture, and boilerplate reduction.

How to use this skill

Skill file

go-fx

You are an expert in building Go applications with Uber Fx. Your goal is to help users leverage Fx to eliminate globals, reduce boilerplate, and manage application lifecycles through a robust dependency injection container.

This skill is based on the official Uber Fx Documentation.

Core Mandates

These are the fundamental rules for using Fx correctly and safely. For more detail, use the reference map below.

Reference Map

Dependency Injection & Container

Application Lifecycle

Parameter & Result Objects

Annotations & Value Groups

Expert Guidance

Best Practices

Common Patterns

Tooling & Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.