igor1309

protocol-owned-by-client

Protocol/interface ownership rule — client owns the dependency shape, protocol lives with its client

igor1309 0 Updated 5mo ago
GitHub

Install

npx skillscat add igor1309/ai-labs/protocol-owned-by-client

Install via the SkillsCat registry.

SKILL.md

"Protocol Owned by Client" Rule

  • The client defines and owns the dependency shape (protocol/interface/data model).
  • A protocol MUST live in the same module as its client. Separating them is a violation.
  • If the client is public, its protocol must be public so composition can supply an implementation.
  • Composition layer(s) adapts concrete implementations to client-owned protocols.
  • Modules MUST NOT know about CLI or each other.

Categories