breach-encapsulation-naming

Enforce breachEncapsulationOf-prefixed getters for persistence and serialization access.

81|3|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/j5ik2o/okite-ai --skill breach-encapsulation-naming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: breach-encapsulation-naming
Source: https://github.com/j5ik2o/okite-ai/tree/main/.agent/skills/breach-encapsulation-naming
Command: npx skills add https://github.com/j5ik2o/okite-ai --skill breach-encapsulation-naming

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Getter overuse breaks encapsulation in domain models; using a breachEncapsulationOf prefix makes such access explicit, helping teams respect Tell Don't Ask and prevent uncontrolled usage of getters.

Core Features & Use Cases

  • Enforces explicit getter naming to signal encapsulation breaches in domain models across languages (Java, Kotlin, Scala, TypeScript, Python, Go, Rust).
  • Provides a standardized breachEncapsulationOf<PropertyName>() pattern for accessors required for persistence or serialization.
  • Supports code review, new implementations, and refactoring by guiding getter design decisions.

Quick Start

Refactor domain model getters to breachEncapsulationOf-prefixed accessors where persistence or serialization demands access.

Frequently Asked Questions about breach-encapsulation-naming

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does the breachEncapsulationOf naming convention preserve domain model encapsulation?

The breachEncapsulationOf naming convention preserves encapsulation by explicitly flagging getters that break domain boundaries, ensuring internal state access is restricted to persistence or serialization and guiding teams to respect Tell Don't Ask principles.

When should I use explicit getter naming for domain model persistence?

Use explicit getter naming for domain model persistence when ORM frameworks or serialization layers require direct access to internal state, applying the breachEncapsulationOf prefix to signal a deliberate boundary violation rather than standard property access.

How do I refactor domain model getters to enforce Tell Don't Ask during code review?

Refactor domain model getters to enforce Tell Don't Ask by replacing standard accessor methods with breachEncapsulationOf-prefixed methods, making encapsulation breaks visible during code review and preventing uncontrolled getter usage across the codebase.

Does the breachEncapsulationOf naming pattern work across multiple programming languages?

Yes, the breachEncapsulationOf naming pattern works across multiple programming languages including Java, Kotlin, Scala, TypeScript, Python, Go, and Rust, providing a standardized accessor pattern for domain entities wherever persistence or serialization is needed.

What is the best way to prevent invisible encapsulation breaks in domain models?

The best way to prevent invisible encapsulation breaks in domain models is enforcing a clear accessor pattern using the breachEncapsulationOf prefix, which makes state access explicit and discourages uncontrolled getter usage outside of serialization contexts.

Are there limitations to using explicit getter prefixes for domain entity serialization?

A limitation of using explicit getter prefixes for domain entity serialization is that the breachEncapsulationOf pattern requires team-wide discipline during refactoring, as persistence layers must correctly invoke the prefixed accessors without falling back to standard getter methods.