Back to list
JamesPrial

go-interfaces

by JamesPrial

WIP - collection of various Claude stuff i make/use/have_Claude_hallucinate

2🍴 0📅 Jan 23, 2026

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/

    • Accept interfaces, return structs principle
    • When to deviate from the rule
  • Interface pollution → see pollution/

    • Detecting unnecessary abstractions
    • Premature interface creation
  • Embedding patterns → see 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

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon