Back to skills
SKILL.md
Interfaces
ASecurityGo interface design patterns and best practices
- 3 stars
- 0 votes
- 1 copy
- 16 views
- Added February 7, 2026
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add JamesPrial/claudefiles --skill interfaces --agent claude-codeAre you the author of Interfaces?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jamesprial-interfaces)---
name: go-interfaces
description: Go interface design patterns and best practices
---
# Interface Design
Master Go's approach to interfaces: implicit satisfaction, consumer-driven design, and composition patterns.
## Route by Concern
- **Accept/return patterns** → see [design/](design/)
- Accept interfaces, return structs principle
- When to deviate from the rule
- **Interface pollution** → see [pollution/](pollution/)
- Detecting unnecessary abstractions
- Premature interface creation
- **Embedding patterns** → see [embedding/](embedding/)
- Interface composition techniques
- Method set expansion
## Quick Check
- [ ] Interface defined by consumer, not producer
- [ ] Keep interfaces small (<5 methods)
- [ ] Return concrete types from functions
- [ ] No interface{} unless truly necessary
Files in this skill
- SKILL.md
- design/SKILL.md
- embedding/SKILL.md
- pollution/SKILL.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.