/software-design:j5ik2o-breach-encapsulation-namingfrom software-design
Names unavoidable getters as breachEncapsulationOfX() to distinguish domain-behavior accessors from persistence/serialization/test exposure. Applies Tell Don't Ask and adds review notes for tolerated breaches.
Ships in software-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Make unavoidable state exposure loud. Domain objects should express behavior first; when an accessor is required for persistence, serialization, debugging, or tests, name it as an explicit encapsulation breach.
Classify every requested accessor by consumer: domain behavior, persistence, serialization, tests, framework glue, or presentation.
Replace domain-behavior access with Tell Don't Ask methods on the object that owns the data.
For unavoidable exposure, use breachEncapsulationOfX() or the idiomatic local equivalent such as breach_encapsulation_of_x.
Keep exposed values immutable or defensively copied.
Add a review note explaining why the breach is tolerated and which callers may use it.
Ordinary getters on entities and aggregates need justification.
Accessors used by domain logic are design smells; move the decision to the model.
Framework-required access should be isolated in adapters, serializers, mappers, or repository glue.
Tests may use breach accessors, but assertions should still prefer observable behavior when possible.
Read references/patterns.md for language-specific naming and migration examples.
For non-trivial implementation, review, or refactoring work, read references/details.md before giving final guidance. It contains the detailed rules, examples, smells, and migration notes that do not belong in the short invocation body.
Return the accessor classification, recommended names, any Tell Don't Ask replacements, and the smallest migration path.
What SKILL.md sets; muted values are Claude Code's defaults
29 skills in this plugin
/j5ik2o-clean-architectureUse only when the user explicitly asks for Clean Architecture design, implementation, or review. Applies a domain, use case, interface adapter, and infrastructure layer model, with persistence and RPC adapters outside the domain and use-case rules. Do not trigger for generic architecture advice, hexagonal architecture, onion architecture, or ordinary design review unless Clean Architecture is named./j5ik2o-cqrs-aggregate-modelingUse when CQRS changes aggregate boundaries or state shape. Helps reduce oversized command aggregates by moving read concerns to read models, keeping only command-decision state in aggregates, and using events for state transitions. Trigger for large aggregates, heavy command updates, aggregates containing query-only data, or boundary redesign during CQRS adoption./j5ik2o-cqrs-to-event-sourcingUse when explaining why CQRS often needs event sourcing or durable events for reliable command-to-query synchronization. Covers calculated value sync, database trigger limits, polling scalability, double commits, and making events the source of truth. Trigger for CQRS synchronization, read-model update strategy, CQRS without ES, or double-commit concerns./j5ik2o-cqrs-tradeoffsUse when evaluating whether CQRS is worth adopting, especially tradeoffs among consistency, availability, scalability, operational complexity, and event sourcing. Trigger for read/write separation decisions, eventual consistency concerns, CQRS architecture review, or choosing between a unified model and CQRS./j5ik2o-custom-linter-creatorUse when creating project-specific lint rules for AI agents or humans using existing language linter ecosystems. Generates rules under a `lints/` directory with actionable diagnostic messages that tell an agent exactly how to repair the violation. Trigger for custom lint rules, AI linter rules, enforcing naming or structure patterns, or turning code-review rules into lint checks./j5ik2o-ddd-aggregate-designUse for DDD aggregate design, implementation, refactoring, or review. Covers aggregate boundaries, aggregate roots, true invariants, immutable updates, ID references, eventual consistency, domain events, and Evans/Vernon aggregate rules. Trigger for aggregate boundary questions, aggregate roots, entity design inside aggregates, large aggregates, mutable aggregate code, public fields, direct child mutation, or cross-aggregate coordination.npx claudepluginhub j5ik2o/ai-tools --plugin software-designOther plugins' skills for the same job