j5ik2o/ai-tools/j5ik2o-breach-encapsulation-naming
Claude Code and agent skill by j5ik2o/ai-tools
- community
Checking that the SKILL.md file is still in the repository.
Use when designing or reviewing domain-model accessors that expose internal state for persistence, serialization, tests, or framework integration. Applies the breachEncapsulationOf naming pattern so unavoidable getters are visibly treated as encapsulation breaches, not casual domain APIs. Trigger for getter naming conventions, persistence-only getters, serialization accessors, Tell Don't Ask pressure, or requests to prevent getter misuse.
Install
npx vskill@latest install j5ik2o/ai-tools/j5ik2o-breach-encapsulation-namingSKILL.md
Breach Encapsulation Naming
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.
Workflow
- 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 asbreach_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.
Review Checks
- 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.
References
Read references/patterns.md for language-specific naming and migration examples.
Detailed Reference
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.
Output
Return the accessor classification, recommended names, any Tell Don't Ask replacements, and the smallest migration path.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/software-design/skills/j5ik2o-breach-encapsulation-naming/SKILL.md
Popularity
- Repository stars
- 28
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/j5ik2o/ai-tools/j5ik2o-breach-encapsulation-naming)