
Description
Go Interfaces is an agent skill for defining and implementing Go interfaces, designing abstractions, creating mockable boundaries for tests and composing types through embedding. Its main rule is to accept interfaces and return concrete types. Interfaces belong in the package that consumes values, not the package that implements them, and constructors should return concrete types, usually pointers or structs, so that new methods can be added later without refactoring callers. The skill includes a routing guide to its reference notes. One note covers embedding interfaces or structs in public APIs, and another covers pointer and value receivers and how they affect whether a type satisfies an interface. It also ships a heuristic script that finds exported interfaces that may need compile-time assertions, and a small Go helper that does the method-set analysis behind it. The skill suits Go developers designing package boundaries or writing tests with fakes and mocks. It works best when the agent reads the reference notes that match the task, and it leaves the decision about each interface to the developer. The skill is part of the golang-skills collection by cxuu and installs with the skills CLI. The listing shows it as free.…
Highlights
- Accept interfaces, return concrete types
- Mockable boundaries for testing
- Embedding in public APIs
- Script to find interfaces needing compile-time checks
Ratings & Reviews
No ratings yet
Be the first to rate go-interfaces.
People also visit

design-an-interface
Generate multiple radically different interface designs for a module
go-interfaces FAQ
What does the Go Interfaces skill cover?
Defining and implementing Go interfaces, designing abstractions, mockable test boundaries and type composition by embedding.
Where should an interface be declared?
In the package that consumes the values, not the package that implements them, according to the skill.
How do I install it?
Run: npx skills add https://github.com/cxuu/golang-skills --skill go-interfaces
Is it free?
Yes. The listing shows the skill as free.
What do the security audits show?
Gen Agent Trust Hub: Warn. Socket: Pass. Snyk: Pass.
What are the best go-interfaces alternatives?
Popular alternatives to go-interfaces include golang-structs-interfaces, golang-design-patterns and go-testing. See all go-interfaces alternatives










