--- globs: "**/Repository/*.php,**/Data/**/*Repository*.php,**/Logic/**/*Repository*.php" description: Enforce clear separation between Logic, Data, and Shared layers by ensuring proper placement of repositories according to domain-driven design principles. alwaysApply: true --- All repository implementations must be located in the Data layer and use entities for persistence. Repository interfaces must be defined in the Logic layer, not in the Data layer. Services in the Logic layer must depend on repository interfaces defined in their respective Logic folder.