跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
浏览器与自动化

add-cross-domain

Wire one domain to another using Protocol-based dependency inversion instead of direct implementation imports.

Mr-DooSun · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add Mr-DooSun/fastapi-agent-blueprint --skill add-cross-domain

技能说明


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 options upstream 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-feature from inside this skill

Procedure

  1. Read AGENTS.md and docs/ai/shared/skills/add-cross-domain.md for the full procedure.
  2. Read docs/ai/shared/project-dna.md for DI patterns and base class paths.
  3. Identify the consumer and provider domains plus the exact capability needed.
  4. Verify or extend the provider Protocol and Repository first.
  5. Inject the provider Protocol into the consumer Service via DI Container.
  6. Reject anti-patterns: Domain importing Infrastructure, Service-to-Service deps, Mapper layers.
  7. Verify the final dependency direction with grep or tests.