repository-design

Guide repository design strategy selection using decision checklists and templates for multi-aggregate domains.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/yaochangyu/ai-dev-toolkit --skill repository-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repository-design
Source: https://github.com/yaochangyu/ai-dev-toolkit/tree/main/.github/skills/repository-design
Command: npx skills add https://github.com/yaochangyu/ai-dev-toolkit --skill repository-design

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

Repository design guidance that helps developers pick the most suitable strategy (data-table oriented, domain-oriented, or hybrid) based on business needs, reducing architectural risk and rework.

Core Features & Use Cases

  • Evaluation framework to match business complexity with a repository approach (table-oriented, domain-oriented, or hybrid)
  • Decision checklist and examples to illustrate when to apply each strategy
  • Ready-made templates and references to align with DDD, EF Core patterns, and best practices

Quick Start

Provide your domain name and business requirements to receive a recommended repository design strategy and starter templates.

Frequently Asked Questions about repository-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to design a Repository pattern for multi-aggregate domains in DDD?

A hybrid repository design combines table-oriented and domain-oriented strategies, applying each where appropriate to balance query performance and domain purity. This strategy is recommended when business requirements span varying complexity levels across multi-aggregate domains.

How do I choose between table-oriented and domain-oriented repository designs in EF Core?

To choose between table-oriented and domain-oriented repository designs in EF Core, use a decision checklist to match business complexity with the appropriate approach. This ensures alignment with domain-driven design patterns and reduces architectural rework.

When do I need a hybrid repository design strategy for C# applications?

You need a hybrid repository design strategy when your C# application handles multi-aggregate domains with mixed business requirements. This approach combines table-oriented and domain-oriented methods to align with specific DDD patterns and EF Core best practices.

Can I get ready-to-use repository templates that align with domain-driven design patterns?

Yes, you can get ready-to-use repository templates and references that align with domain-driven design patterns and EF Core best practices. These starter templates enable immediate implementation once you provide your domain name and business requirements.

Does this repository design guidance work for teams adopting domain-driven design for the first time?

Yes, this repository design guidance works for teams adopting domain-driven design by providing an evaluation framework and decision checklist. It guides teams to pick the most suitable strategy based on business needs, enforcing design philosophy and reducing architectural risk.