go-interface
OfficialIdiomatic Go interfaces, simplified.
Authorcanopy-network
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides guidance on designing focused, consumer-oriented interfaces in Go, promoting small interfaces, interface composition, and testability.
Core Features & Use Cases
- Small Interfaces: Encourage minimal method sets and avoid god interfaces.
- Consumer-Level Interfaces: Place interfaces where they are used to reduce coupling.
- Use Case: When building a service, define a UserRepository interface in the service package and depend on it, not the concrete implementation.
Quick Start
In struct definitions, replace large interfaces with focused ones and wire dependencies through constructors.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-interface Download link: https://github.com/canopy-network/launchpad/archive/main.zip#go-interface Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.