interface-pollution

Define consumer-driven interfaces where they are actually used.

3|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/JamesPrial/claudefiles --skill interface-pollution
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: interface-pollution
Source: https://github.com/JamesPrial/claudefiles/tree/main/skills/golang/interfaces/pollution
Command: npx skills add https://github.com/JamesPrial/claudefiles --skill interface-pollution

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interface pollution happens when interfaces are created before they're needed.

Core Features & Use Cases

  • Consumer-Driven Interfaces: Define interfaces where they are actually used.
  • Refactoring Guidance: Split large interfaces into focused ones.

Quick Start

Introduce small interfaces that capture essential behavior for a handler.