| name | module-conventions-generator |
| description | Generate or refactor modules, jobs, cache layers, gateways, and mappers to match ecommerce-store-api conventions. Use when creating new implementation artifacts so structure, naming, layering, and testing stay consistent automatically. |
Purpose
Apply canonical repository conventions during generation with minimal drift.
Workflow
- Load and apply docs/ai/CONVENTIONS.md, especially sections 1 through 8.
- Identify artifact type (module, use case, gateway, scheduler, process, cache/repository, mapper).
- Generate files in correct layer paths and naming conventions.
- Enforce ACL and thin-controller boundaries.
- Add or update tests using section 7 rules.
- Produce verification and handoff evidence using section 9 rules.
Inputs
Outputs
- Convention-compliant implementation changes.
- Verification summary with tests and residual risks.
Failure and Escalation
Escalate if requested behavior conflicts with architecture invariants or required safety gates.