Browser & automation
add-cross-domain
Wire one domain to another using Protocol-based dependency inversion instead of direct implementation imports.
Mr-DooSun · Static checks on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add Mr-DooSun/fastapi-agent-blueprint --skill add-cross-domainAbout this skill
name: add-cross-domain description: Wire one domain to another using Protocol-based dependency inversion instead of direct implementation imports. metadata: short-description: Add cross-domain dependency
Add Cross Domain
Default Flow Position
- Step:
implement(approach optionsupstream always mandatory — cross-domain dep is an architecture commitment) - Routes after: verify (
/test-domain {consumer} run,/test-domain {producer} run) → self-review (/review-architecture {consumer}) → completion gate (/sync-guidelines) - Recursion guard: do not invoke
/plan-featurefrom inside this skill
Procedure
- Read
AGENTS.mdanddocs/ai/shared/skills/add-cross-domain.mdfor the full procedure. - Read
docs/ai/shared/project-dna.mdfor DI patterns and base class paths. - Identify the consumer and provider domains plus the exact capability needed.
- Verify or extend the provider Protocol and Repository first.
- Inject the provider Protocol into the consumer Service via DI Container.
- Reject anti-patterns: Domain importing Infrastructure, Service-to-Service deps, Mapper layers.
- Verify the final dependency direction with grep or tests.