add-bc-contract - Add Contract for inter-BC communication
Creates Contract interface, Provider implementation, and configuration when one Bounded Context needs to read data from another BC.
Tags
Updated: 2026-09-14Capabilities
Typical Inputs
What this skill does
- Create Contract interface
- Create Provider implementation
- Update service configuration
- Update Deptrac configuration
- Run quality validation checks
Inputs
- Provider BC name
- Consumer BC name
- Contract name
- Methods list
Outputs
- ProviderBC/Contracts/ContractName.php
- ProviderBC/Adapters/Contracts/ProviderBCContractName.php
- ProviderBC/Frameworks/config/services.yaml
- ConsumerBC/Frameworks/deptrac.yaml
Requirements
- Deptrac and Make CLI tools
- Contract and Provider code templates
