Skill / SKILL.md

Go Dependency Injection

eduardo-sl/go-agent-skills

Dependency injection in Go: constructor injection, wiring in main, avoiding global state, and when frameworks (wire, fx, dig) earn their complexity. Use when: "dependency injection", "wire up dependencies", "inject this", "remove global state", "singleton in Go", "use google/wire", "uber fx", "make this testable". Not for: interface design (go-interface-design), directory structure (go-project-layout), test doubles and mocks (go-test-quality).
3 views 90 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Dependency injection in Go: constructor injection, wiring in main, avoiding global state, and when frameworks (wire, fx, dig) earn their complexity. Use when: "dependency injection", "wire up dependencies", "inject this", "remove global state", "singleton in Go", "use google/wire", "uber fx", "make this testable". Not for: interface design (go-interface-design), directory structure (go-project-layout), test doubles and mocks (go-test-quality).

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/eduardo-sl/go-agent-skills' skill-source

Use the complete skill-source/skills/(architecture)/go-dependency-injection directory with your client’s skill installer.

  • skills/(architecture)/go-dependency-injection

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/(architecture)/go-dependency-injection

Compatibility & requirements

Declared compatibility

Designed for Claude Code or similar AI coding agents working on Go projects. Requires the Go toolchain. wire and fx are optional.

Declared tools

Read Edit Write Glob Grep Bash(go:*) Bash(gofmt:*)

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
6aa6f65ad8e813dc043c7b170db316b66f2dccf223c5a0c5bd77ef5f2b7af8de
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills