Lightlines
By cxuu

go-interfaces

cxuu1.2k installs

Design clear interface boundaries in your Go code.

What it does

Guides the design and implementation of Go interfaces, composition, and safe type checks.

When to use it

Use when defining or implementing interfaces, choosing interface versus concrete types, composing types through embedding, or using type assertions and switches.

How to use it

It changes how the agent designs Go interfaces and constructors in the project, favoring consumer-owned interfaces and concrete return types.

What you provide

  • An existing project

Latest review

What you need · 1

Requires the Go toolchain with go on PATH to build and run the instructed interface-compliance checker.


Access · 1

This skill

~/.cache/golang-skills

Write

Caches the compiled interface checker