Rule Architecture

Encapsulate Implementation

Keep implementation details private; expose minimal interfaces

encapsulationapi-designmodules
CLAUDE.md

Keep implementation details private. Expose the minimum public interface consumers need. Internal helper functions, constants, and types should not be exported.

Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.

get crystl