Skip to content
Back to skills

Interfaces

ASecurity

Go interface design patterns and best practices

  • 3 stars
  • 0 votes
  • 1 copy
  • 16 views
  • Added February 7, 2026
developmentgo

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add JamesPrial/claudefiles --skill interfaces --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Interfaces?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Interfaces
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jamesprial-interfaces/badge)](https://www.skillsdirectory.com/skills/jamesprial-interfaces)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md827 B
  • design/SKILL.md1.4 KB
  • embedding/SKILL.md1.9 KB
  • pollution/SKILL.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.