AGENT SKILL

dotnet-di-layering

暂无简介

License 许可
MIT
最近更新
2026-05-26
Stars
★ 0
Forks
0

02 资源文件 1

03 SKILL.md 正文

.NET DI Layering

Follow ../_shared/skill-contract.md.

Purpose

Define how services, repositories, and infrastructure are registered and separated.

Use when

  • dependency injection or layer registration changes

Do not use when

  • the task is only transport or UI

Inputs required

  • service list
  • repository list
  • composition root

Outputs expected

  • DI map
  • layer registration plan
  • boundary notes

Workflow

  1. List services and repositories.
  2. Define composition root.
  3. Keep registration centralized.
  4. Verify dependencies point inward.
  5. Check testability.

Validation checklist

  • [ ] Registration is centralized
  • [ ] Layers are explicit
  • [ ] Dependencies are testable

References

  • ../../prompts/review_architecture.md

04 同仓库更多 Skills