
Description
golang-google-wire is an agent skill for compile-time dependency injection in Go with google/wire. Wire resolves the dependency graph when you run wire, and it emits plain Go constructor calls, so there is no runtime container and no reflection. Missing dependencies are reported as build-time errors rather than at the first request. The skill teaches the main building blocks, including wire.NewSet for grouping providers, wire.Build for the injector, wire.Bind for mapping an interface to a concrete type, wire.Struct and wire.Value. It tells the agent to treat the generated wire_gen.go file as committed source and to run wire ./... again after every change to the graph. The skill notes that google/wire was archived in August 2025, so it is feature-complete and only bug fixes are accepted. It links to the official user guide and best-practices notes for more detail. The skill is part of the samber cc-skills-golang collection and is added to a compatible agent with the skills command. It is useful for Go teams that want explicit, checked wiring of their services, and it expects the wire command to be installed with go install.…
Highlights
- Compile-time dependency graph with plain Go code
- Covers NewSet, Build, Bind, Struct and Value
- Keeps wire_gen.go as committed source
- Notes that google/wire is archived
Ratings & Reviews
No ratings yet
Be the first to rate golang-google-wire.
People also visit

golang-patterns
Idiomatic Go patterns, best practices, and conventions for building robust

golang-testing
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing

swift-protocol-di-testing
Protocol-based dependency injection for testable Swift code

go-concurrency-patterns
Master Go concurrency with goroutines, channels, sync primitives, and context
golang-google-wire FAQ
What does this skill do?
It helps an agent use google/wire to set up compile-time dependency injection in a Go project.
Does wire use reflection at runtime?
No. The README says wire emits plain Go constructor calls, with no runtime container and no reflection.
Is google/wire still maintained?
The skill says it was archived in August 2025. It is feature-complete, and bug fixes are still accepted.
What do I need to install?
The wire command, installed with go install github.com/google/wire/cmd/wire@latest.
How do I install the skill?
Run: npx skills add https://github.com/samber/cc-skills-golang --skill golang-google-wire
What security audits has it passed?
Gen Agent Trust Hub, Socket and Snyk all passed.
What are the best golang-google-wire alternatives?
Popular alternatives to golang-google-wire include golang-patterns, golang-testing and golang-uber-dig. See all golang-google-wire alternatives



