In short.
golang-google-wire is an instruction package for AI assistants helping Go developers maintain Wire-based applications, but several examples need correction and its target library is described as archived. It covers constructor wiring, explicit interface bindings, generated files, cleanup and testing patterns. The material is substantial, but its evaluation definitions contain no results demonstrating better assistant performance, and the examples have no supplied execution results.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete supplied skills/golang-google-wire folder: SKILL.md, evals/evals.json and the advanced, recipes and testing reference files, together with the root LICENSE notice at revision d68d80aec298e1b74b37c2a472c002b5217248b3. Other repository skills, upstream Wire source and linked external documentation are excluded. Complete file coverage does not establish example correctness, host compatibility or assistant effectiveness. No code, installation, generation, build, test or evaluation was executed.
The overview
Identity
golang-google-wire is a skill published by samber within cc-skills-golang, rather than a dependency-injection library itself. Its instructions guide an assistant working with github.com/google/wire. The source folder is [https://github.com/samber/cc-skills-golang/tree/main/skills/golang-google-wire].
SKILL.md declares skill version 1.1.2 and compatibility with Claude Code, Codex or similar assistant environments for Go projects. Its separate skill-library-version value of 0.7.0 does not establish which Wire release an application should use.
Assessment
Its clearest fit is an existing Wire project where an assistant needs consistent guidance on constructor dependencies, explicit bindings and regeneration. The main instructions and three reference documents provide substantially more detail than a command cheat sheet.
Technical reliability is uneven. The material includes useful distinctions between generated wiring and runtime containers, but its field-extraction exercise, generated-file instructions and HTTP cleanup example require care. Ten evaluation scenarios describe intended behavior without establishing that any assistant achieved it.
Users
The skill serves Go developers asking an assistant to introduce or maintain Wire dependency graphs. Beginners receive explanations of providers, which are constructor functions, and injectors, which assemble an application from those functions. Understanding Go interfaces, named types and build constraints remains necessary.
Experienced developers receive guidance on package-level provider sets, cleanup propagation, external configuration and test dependencies. Teams seeking built-in startup hooks, signal handling or graceful shutdown would need additional application code or a different approach.
Capabilities
The instructions cover grouping constructors with wire.NewSet, declaring graphs with wire.Build, mapping interfaces with wire.Bind, supplying values and struct fields, and separating otherwise identical dependency types with named Go types.
Additional material covers cleanup functions, partial-construction failures, multiple injectors, configuration passed as injector arguments, fake dependencies and generated-file freshness checks. These are documented techniques the skill asks an assistant to apply; successful implementation is not demonstrated.
Using it
Requirements
The declared requirements are a Go project, the go and wire executables, and a compatible assistant environment. Application examples import github.com/google/wire. Minimum Go versions, supported operating systems and a verified host/version compatibility matrix are unspecified.
The skill metadata lists file access, editing, Go-related shell commands, Git, agents and documentation tools. Whether those capabilities are available depends on the host. PostgreSQL, Redis and OpenTelemetry appear in recipes; they are example dependencies rather than universal requirements.
Mechanism
The assistant reads instructions for describing an application's construction graph. Wire then generates ordinary Go constructor calls from providers and injector declarations. Dependencies are resolved during generation rather than through a runtime container or reflection.
Injector stubs use the //go:build wireinject constraint to keep them out of normal builds; generated implementations are committed as source. Missing dependencies and ambiguous providers are graph-generation problems. This does not establish that databases connect successfully or that application behavior is correct.
Providers can return a value, a cleanup function and an error. The documented generated code unwinds already-created dependencies after partial failure and supplies cleanup in reverse dependency order after successful construction.
Setup
The documented executable installation command is go install github.com/google/wire/cmd/wire@latest. The material also shows module-level tool setup and adding github.com/google/wire to the project. These examples use @latest without establishing a compatible Go/Wire version pair. A host-specific procedure for installing the skill itself is not supplied.
The application setup consists of defining constructors and provider sets, adding a build-constrained injector, generating with wire ./..., and committing the generated output. The intended maintenance pattern is to change providers or injectors and regenerate after graph changes.
Example
A service recipe connects configuration to database and Redis constructors, then to a repository, user service and HTTP handler. An explicit wire.Bind declaration maps the UserStore interface to the PostgreSQL repository implementation. The injector returns the handler, cleanup function and construction error.
For a smaller maintenance example, one evaluation scenario adds a logger parameter to NewServer. Its expected response is to provide the logger in the graph and regenerate wire_gen.go, rather than patching the generated constructor call. This illustrates the intended assistant behavior, not a demonstrated successful response.
Assessment & evidence
Limitations
The skill says google/wire was archived in August 2025 while also saying bug fixes are accepted. An upstream maintenance notice is not included, so present support is unknown. Wire is also described as lacking built-in lifecycle hooks and signal handling.
The wire.FieldsOf evaluation starts with three plain-string configuration fields. Under the skill's own one-provider-per-type rule, extracting all three fields alone does not distinguish them. The assertions allow named types alongside FieldsOf, but the original plain-string example needs that additional disambiguation.
The build-variant recipe asks readers to add constraints to generated files, conflicting with the main instruction never to edit generated output. It does not explain how those edits survive regeneration.
The HTTP recipe defers cleanup and then calls log.Fatal(srv.ListenAndServe()). That fatal exit would bypass deferred cleanup when serving returns. Generated cleanup ordering does not correct this caller behavior.
Reasoning
The practical attraction is visible, ordinary Go initialization code: developers can inspect constructor calls and test components without learning a runtime container API. The skill reinforces explicit interface mappings and small provider sets, making its intended approach clear.
Graph validity and generated-file freshness need separate attention. testing.md describes wire check ./... as validating the graph without regenerating files. It should not be treated as proof that committed generated output is current. The supplied regeneration-and-Git-diff method directly addresses output freshness.
These benefits explain the skill's intended usefulness, but no supplied comparison establishes that loading it improves code correctness, development speed or assistant reliability.
Alternatives
For unit tests, the material recommends calling constructors directly with fake dependencies, without Wire. That approach also illustrates the simpler construction mechanism underneath the generated graph.
The skill points to dig for runtime reflection-based dependency injection, fx for dependency injection with lifecycle management, and samber/do for generics-based dependency injection without reflection. Its daemon evaluation favors fx when startup/shutdown hooks and signal handling are central requirements.
Those comparisons are descriptions in this skill. The alternative libraries and sibling skills are not included, so their current capabilities, support and relative performance are not independently established.
Evidence
The supplied resource comprises SKILL.md, advanced.md, recipes.md, testing.md and evals.json, plus the repository MIT licence. Together they establish the instruction content, examples, declared requirements and redistribution terms.
evals.json contains ten scenarios covering build constraints, interface bindings, duplicate types, cleanup, regeneration, provider organization, external values, field extraction, test injectors and lifecycle choices. These are evaluation definitions, not results. No assistant outputs, scores, installation results, generated artifacts or successful builds are supplied.
The original SKILL.md snapshot is available at [https://raw.githubusercontent.com/samber/cc-skills-golang/d68d80aec298e1b74b37c2a472c002b5217248b3/skills/golang-google-wire/SKILL.md].
Access & freshness
Costs
No purchase price, subscription price, token usage or operating-cost measurements are supplied for this skill. Assistant-provider charges and the time required to install tools, reconcile examples and maintain generated files are unknown.
The MIT licence grants broad usage rights, but it does not establish the cost of an assistant host, model access or infrastructure used by an application.
Rights
SKILL.md declares MIT licensing, and the captured repository licence names Samuel Berthe as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notice remain in copies or substantial portions.
The licence disclaims warranties and liability. The captured notice supports redistribution of the skill with its notices; it does not establish the licences of Wire or the third-party dependencies used in recipes.
Freshness
The supplied snapshot was captured on 16 November 2026 at repository revision d68d80aec298e1b74b37c2a472c002b5217248b3. Its declared skill version is 1.1.2; this metadata does not establish a release date or later maintenance.
Setup examples use @latest, while one CI example pins the Wire executable to v0.7.0. No compatibility results connect those choices to a supported Go version. Later source changes and current upstream support are unknown.
Actions
Before adopting the skill, confirm Wire's support status through its upstream repository [https://github.com/google/wire] and choose an explicit Go/Wire version combination. Reconcile the plain-string FieldsOf example, generated-file build constraints and HTTP fatal-exit cleanup before copying those recipes.
For an existing project, assess the guidance against a representative constructor change: regenerate wiring, inspect the resulting diff, build the application and run relevant tests. Check cleanup on both construction failure and application shutdown. These are recommended validation steps; no such execution results are supplied.
If lifecycle hooks and signal handling are the main requirement, compare the source's suggested fx approach before committing to manual lifecycle management around Wire.
