@the-bearded-bear/claude-craft 3.1.2 → 3.3.1-next.f4f0d1e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dev/i18n/de/Angular/CLAUDE.md.template +49 -0
- package/Dev/i18n/de/Angular/agents/angular-reviewer.md +213 -0
- package/Dev/i18n/de/Angular/checklists/new-feature.md +125 -0
- package/Dev/i18n/de/Angular/checklists/pre-commit.md +77 -0
- package/Dev/i18n/de/Angular/commands/check-architecture.md +261 -0
- package/Dev/i18n/de/Angular/commands/check-code-quality.md +238 -0
- package/Dev/i18n/de/Angular/commands/check-compliance.md +199 -0
- package/Dev/i18n/de/Angular/commands/check-security.md +263 -0
- package/Dev/i18n/de/Angular/commands/check-testing.md +292 -0
- package/Dev/i18n/de/Angular/commands/generate-component.md +220 -0
- package/Dev/i18n/de/Angular/rules/00-project-context.md.template +78 -0
- package/Dev/i18n/de/Angular/rules/02-architecture-angular.md +477 -0
- package/Dev/i18n/de/Angular/rules/03-coding-standards.md +640 -0
- package/Dev/i18n/de/Angular/rules/06-tooling.md +516 -0
- package/Dev/i18n/de/Angular/rules/07-testing-angular.md +739 -0
- package/Dev/i18n/de/Angular/rules/08-quality-tools.md +501 -0
- package/Dev/i18n/de/Angular/rules/11-security-angular.md +497 -0
- package/Dev/i18n/de/Angular/templates/component.template.ts +115 -0
- package/Dev/i18n/de/Angular/templates/service.template.ts +203 -0
- package/Dev/i18n/de/CSharp/CLAUDE.md.template +65 -0
- package/Dev/i18n/de/CSharp/agents/csharp-reviewer.md +166 -0
- package/Dev/i18n/de/CSharp/checklists/new-feature.md +178 -0
- package/Dev/i18n/de/CSharp/checklists/pre-commit.md +126 -0
- package/Dev/i18n/de/CSharp/commands/check-architecture.md +294 -0
- package/Dev/i18n/de/CSharp/commands/check-code-quality.md +355 -0
- package/Dev/i18n/de/CSharp/commands/check-compliance.md +178 -0
- package/Dev/i18n/de/CSharp/commands/check-security.md +369 -0
- package/Dev/i18n/de/CSharp/commands/check-testing.md +295 -0
- package/Dev/i18n/de/CSharp/commands/generate-feature.md +481 -0
- package/Dev/i18n/de/CSharp/rules/00-project-context.md.template +100 -0
- package/Dev/i18n/de/CSharp/rules/02-architecture-csharp.md +536 -0
- package/Dev/i18n/de/CSharp/rules/03-coding-standards.md +494 -0
- package/Dev/i18n/de/CSharp/rules/06-tooling.md +493 -0
- package/Dev/i18n/de/CSharp/rules/07-testing-csharp.md +566 -0
- package/Dev/i18n/de/CSharp/rules/08-quality-tools.md +497 -0
- package/Dev/i18n/de/CSharp/rules/11-security-csharp.md +568 -0
- package/Dev/i18n/de/CSharp/rules/12-aspire-cloud-native.md +514 -0
- package/Dev/i18n/de/CSharp/templates/command-handler.template.cs +100 -0
- package/Dev/i18n/de/CSharp/templates/entity.template.cs +159 -0
- package/Dev/i18n/de/Common/commands/add-technology.md +195 -0
- package/Dev/i18n/de/Laravel/CLAUDE.md.template +104 -0
- package/Dev/i18n/de/Laravel/agents/laravel-reviewer.md +200 -0
- package/Dev/i18n/de/Laravel/checklists/new-feature.md +277 -0
- package/Dev/i18n/de/Laravel/checklists/pre-commit.md +156 -0
- package/Dev/i18n/de/Laravel/commands/check-architecture.md +306 -0
- package/Dev/i18n/de/Laravel/commands/check-code-quality.md +302 -0
- package/Dev/i18n/de/Laravel/commands/check-compliance.md +141 -0
- package/Dev/i18n/de/Laravel/commands/check-security.md +372 -0
- package/Dev/i18n/de/Laravel/commands/check-testing.md +397 -0
- package/Dev/i18n/de/Laravel/commands/generate-controller.md +388 -0
- package/Dev/i18n/de/Laravel/rules/00-project-context.md.template +140 -0
- package/Dev/i18n/de/Laravel/rules/02-architecture-laravel.md +644 -0
- package/Dev/i18n/de/Laravel/rules/03-coding-standards.md +573 -0
- package/Dev/i18n/de/Laravel/rules/06-tooling.md +580 -0
- package/Dev/i18n/de/Laravel/rules/07-testing-laravel.md +525 -0
- package/Dev/i18n/de/Laravel/rules/08-quality-tools.md +591 -0
- package/Dev/i18n/de/Laravel/rules/11-security-laravel.md +787 -0
- package/Dev/i18n/de/Laravel/templates/action.template.php +79 -0
- package/Dev/i18n/de/Laravel/templates/controller.template.php +99 -0
- package/Dev/i18n/de/Laravel/templates/model.template.php +206 -0
- package/Dev/i18n/de/Laravel/templates/test.template.php +263 -0
- package/Dev/i18n/de/PHP/CLAUDE.md.template +460 -0
- package/Dev/i18n/de/PHP/agents/php-reviewer.md +345 -0
- package/Dev/i18n/de/PHP/checklists/new-feature.md +132 -0
- package/Dev/i18n/de/PHP/checklists/pre-commit.md +231 -0
- package/Dev/i18n/de/PHP/commands/check-architecture.md +557 -0
- package/Dev/i18n/de/PHP/commands/check-code-quality.md +448 -0
- package/Dev/i18n/de/PHP/commands/check-compliance.md +477 -0
- package/Dev/i18n/de/PHP/commands/check-security.md +420 -0
- package/Dev/i18n/de/PHP/commands/check-testing.md +486 -0
- package/Dev/i18n/de/PHP/rules/00-project-context.md.template +266 -0
- package/Dev/i18n/de/PHP/rules/02-architecture-php.md +696 -0
- package/Dev/i18n/de/PHP/rules/03-coding-standards.md +641 -0
- package/Dev/i18n/de/PHP/rules/06-tooling.md +543 -0
- package/Dev/i18n/de/PHP/rules/07-testing-php.md +636 -0
- package/Dev/i18n/de/PHP/rules/08-quality-tools.md +533 -0
- package/Dev/i18n/de/PHP/rules/11-security-php.md +759 -0
- package/Dev/i18n/de/PHP/templates/entity.md +435 -0
- package/Dev/i18n/de/PHP/templates/use-case.md +512 -0
- package/Dev/i18n/de/PHP/templates/value-object.md +555 -0
- package/Dev/i18n/de/VueJS/CLAUDE.md.template +102 -0
- package/Dev/i18n/de/VueJS/agents/vuejs-reviewer.md +206 -0
- package/Dev/i18n/de/VueJS/checklists/new-feature.md +131 -0
- package/Dev/i18n/de/VueJS/checklists/pre-commit.md +68 -0
- package/Dev/i18n/de/VueJS/commands/check-architecture.md +137 -0
- package/Dev/i18n/de/VueJS/commands/check-code-quality.md +152 -0
- package/Dev/i18n/de/VueJS/commands/check-compliance.md +124 -0
- package/Dev/i18n/de/VueJS/commands/check-security.md +186 -0
- package/Dev/i18n/de/VueJS/commands/check-testing.md +185 -0
- package/Dev/i18n/de/VueJS/commands/generate-component.md +233 -0
- package/Dev/i18n/de/VueJS/rules/00-project-context.md.template +125 -0
- package/Dev/i18n/de/VueJS/rules/02-architecture-vuejs.md +375 -0
- package/Dev/i18n/de/VueJS/rules/03-coding-standards.md +502 -0
- package/Dev/i18n/de/VueJS/rules/06-tooling.md +422 -0
- package/Dev/i18n/de/VueJS/rules/07-testing-vuejs.md +606 -0
- package/Dev/i18n/de/VueJS/rules/08-quality-tools.md +441 -0
- package/Dev/i18n/de/VueJS/rules/11-security-vuejs.md +465 -0
- package/Dev/i18n/de/VueJS/templates/component.template.vue +133 -0
- package/Dev/i18n/de/VueJS/templates/composable.template.ts +162 -0
- package/Dev/i18n/de/VueJS/templates/store.template.ts +282 -0
- package/Dev/i18n/de/VueJS/templates/test.template.ts +233 -0
- package/Dev/i18n/en/Angular/CLAUDE.md.template +49 -0
- package/Dev/i18n/en/Angular/agents/angular-reviewer.md +213 -0
- package/Dev/i18n/en/Angular/checklists/new-feature.md +125 -0
- package/Dev/i18n/en/Angular/checklists/pre-commit.md +77 -0
- package/Dev/i18n/en/Angular/commands/check-architecture.md +261 -0
- package/Dev/i18n/en/Angular/commands/check-code-quality.md +238 -0
- package/Dev/i18n/en/Angular/commands/check-compliance.md +199 -0
- package/Dev/i18n/en/Angular/commands/check-security.md +263 -0
- package/Dev/i18n/en/Angular/commands/check-testing.md +292 -0
- package/Dev/i18n/en/Angular/commands/generate-component.md +220 -0
- package/Dev/i18n/en/Angular/rules/00-project-context.md.template +78 -0
- package/Dev/i18n/en/Angular/rules/02-architecture-angular.md +477 -0
- package/Dev/i18n/en/Angular/rules/03-coding-standards.md +640 -0
- package/Dev/i18n/en/Angular/rules/06-tooling.md +516 -0
- package/Dev/i18n/en/Angular/rules/07-testing-angular.md +739 -0
- package/Dev/i18n/en/Angular/rules/08-quality-tools.md +501 -0
- package/Dev/i18n/en/Angular/rules/11-security-angular.md +497 -0
- package/Dev/i18n/en/Angular/templates/component.template.ts +115 -0
- package/Dev/i18n/en/Angular/templates/service.template.ts +203 -0
- package/Dev/i18n/en/CSharp/CLAUDE.md.template +65 -0
- package/Dev/i18n/en/CSharp/agents/csharp-reviewer.md +166 -0
- package/Dev/i18n/en/CSharp/checklists/new-feature.md +178 -0
- package/Dev/i18n/en/CSharp/checklists/pre-commit.md +126 -0
- package/Dev/i18n/en/CSharp/commands/check-architecture.md +294 -0
- package/Dev/i18n/en/CSharp/commands/check-code-quality.md +355 -0
- package/Dev/i18n/en/CSharp/commands/check-compliance.md +178 -0
- package/Dev/i18n/en/CSharp/commands/check-security.md +369 -0
- package/Dev/i18n/en/CSharp/commands/check-testing.md +295 -0
- package/Dev/i18n/en/CSharp/commands/generate-feature.md +481 -0
- package/Dev/i18n/en/CSharp/rules/00-project-context.md.template +100 -0
- package/Dev/i18n/en/CSharp/rules/02-architecture-csharp.md +536 -0
- package/Dev/i18n/en/CSharp/rules/03-coding-standards.md +494 -0
- package/Dev/i18n/en/CSharp/rules/06-tooling.md +493 -0
- package/Dev/i18n/en/CSharp/rules/07-testing-csharp.md +566 -0
- package/Dev/i18n/en/CSharp/rules/08-quality-tools.md +497 -0
- package/Dev/i18n/en/CSharp/rules/11-security-csharp.md +568 -0
- package/Dev/i18n/en/CSharp/rules/12-aspire-cloud-native.md +514 -0
- package/Dev/i18n/en/CSharp/templates/command-handler.template.cs +100 -0
- package/Dev/i18n/en/CSharp/templates/entity.template.cs +159 -0
- package/Dev/i18n/en/Common/commands/add-technology.md +293 -0
- package/Dev/i18n/en/Laravel/CLAUDE.md.template +104 -0
- package/Dev/i18n/en/Laravel/agents/laravel-reviewer.md +200 -0
- package/Dev/i18n/en/Laravel/checklists/new-feature.md +277 -0
- package/Dev/i18n/en/Laravel/checklists/pre-commit.md +156 -0
- package/Dev/i18n/en/Laravel/commands/check-architecture.md +306 -0
- package/Dev/i18n/en/Laravel/commands/check-code-quality.md +302 -0
- package/Dev/i18n/en/Laravel/commands/check-compliance.md +141 -0
- package/Dev/i18n/en/Laravel/commands/check-security.md +372 -0
- package/Dev/i18n/en/Laravel/commands/check-testing.md +397 -0
- package/Dev/i18n/en/Laravel/commands/generate-controller.md +388 -0
- package/Dev/i18n/en/Laravel/rules/00-project-context.md.template +140 -0
- package/Dev/i18n/en/Laravel/rules/02-architecture-laravel.md +644 -0
- package/Dev/i18n/en/Laravel/rules/03-coding-standards.md +573 -0
- package/Dev/i18n/en/Laravel/rules/06-tooling.md +580 -0
- package/Dev/i18n/en/Laravel/rules/07-testing-laravel.md +525 -0
- package/Dev/i18n/en/Laravel/rules/08-quality-tools.md +591 -0
- package/Dev/i18n/en/Laravel/rules/11-security-laravel.md +787 -0
- package/Dev/i18n/en/Laravel/templates/action.template.php +79 -0
- package/Dev/i18n/en/Laravel/templates/controller.template.php +99 -0
- package/Dev/i18n/en/Laravel/templates/model.template.php +206 -0
- package/Dev/i18n/en/Laravel/templates/test.template.php +263 -0
- package/Dev/i18n/en/PHP/CLAUDE.md.template +460 -0
- package/Dev/i18n/en/PHP/agents/php-reviewer.md +345 -0
- package/Dev/i18n/en/PHP/checklists/new-feature.md +132 -0
- package/Dev/i18n/en/PHP/checklists/pre-commit.md +231 -0
- package/Dev/i18n/en/PHP/commands/check-architecture.md +557 -0
- package/Dev/i18n/en/PHP/commands/check-code-quality.md +448 -0
- package/Dev/i18n/en/PHP/commands/check-compliance.md +477 -0
- package/Dev/i18n/en/PHP/commands/check-security.md +420 -0
- package/Dev/i18n/en/PHP/commands/check-testing.md +486 -0
- package/Dev/i18n/en/PHP/rules/00-project-context.md.template +266 -0
- package/Dev/i18n/en/PHP/rules/02-architecture-php.md +696 -0
- package/Dev/i18n/en/PHP/rules/03-coding-standards.md +641 -0
- package/Dev/i18n/en/PHP/rules/06-tooling.md +543 -0
- package/Dev/i18n/en/PHP/rules/07-testing-php.md +636 -0
- package/Dev/i18n/en/PHP/rules/08-quality-tools.md +533 -0
- package/Dev/i18n/en/PHP/rules/11-security-php.md +759 -0
- package/Dev/i18n/en/PHP/templates/entity.md +435 -0
- package/Dev/i18n/en/PHP/templates/use-case.md +512 -0
- package/Dev/i18n/en/PHP/templates/value-object.md +555 -0
- package/Dev/i18n/en/VueJS/CLAUDE.md.template +102 -0
- package/Dev/i18n/en/VueJS/agents/vuejs-reviewer.md +206 -0
- package/Dev/i18n/en/VueJS/checklists/new-feature.md +131 -0
- package/Dev/i18n/en/VueJS/checklists/pre-commit.md +68 -0
- package/Dev/i18n/en/VueJS/commands/check-architecture.md +137 -0
- package/Dev/i18n/en/VueJS/commands/check-code-quality.md +152 -0
- package/Dev/i18n/en/VueJS/commands/check-compliance.md +124 -0
- package/Dev/i18n/en/VueJS/commands/check-security.md +186 -0
- package/Dev/i18n/en/VueJS/commands/check-testing.md +185 -0
- package/Dev/i18n/en/VueJS/commands/generate-component.md +233 -0
- package/Dev/i18n/en/VueJS/rules/00-project-context.md.template +125 -0
- package/Dev/i18n/en/VueJS/rules/02-architecture-vuejs.md +375 -0
- package/Dev/i18n/en/VueJS/rules/03-coding-standards.md +502 -0
- package/Dev/i18n/en/VueJS/rules/06-tooling.md +422 -0
- package/Dev/i18n/en/VueJS/rules/07-testing-vuejs.md +606 -0
- package/Dev/i18n/en/VueJS/rules/08-quality-tools.md +441 -0
- package/Dev/i18n/en/VueJS/rules/11-security-vuejs.md +465 -0
- package/Dev/i18n/en/VueJS/templates/component.template.vue +133 -0
- package/Dev/i18n/en/VueJS/templates/composable.template.ts +162 -0
- package/Dev/i18n/en/VueJS/templates/store.template.ts +282 -0
- package/Dev/i18n/en/VueJS/templates/test.template.ts +233 -0
- package/Dev/i18n/es/Angular/CLAUDE.md.template +49 -0
- package/Dev/i18n/es/Angular/agents/angular-reviewer.md +213 -0
- package/Dev/i18n/es/Angular/checklists/new-feature.md +125 -0
- package/Dev/i18n/es/Angular/checklists/pre-commit.md +77 -0
- package/Dev/i18n/es/Angular/commands/check-architecture.md +261 -0
- package/Dev/i18n/es/Angular/commands/check-code-quality.md +238 -0
- package/Dev/i18n/es/Angular/commands/check-compliance.md +199 -0
- package/Dev/i18n/es/Angular/commands/check-security.md +263 -0
- package/Dev/i18n/es/Angular/commands/check-testing.md +292 -0
- package/Dev/i18n/es/Angular/commands/generate-component.md +220 -0
- package/Dev/i18n/es/Angular/rules/00-project-context.md.template +78 -0
- package/Dev/i18n/es/Angular/rules/02-architecture-angular.md +477 -0
- package/Dev/i18n/es/Angular/rules/03-coding-standards.md +640 -0
- package/Dev/i18n/es/Angular/rules/06-tooling.md +516 -0
- package/Dev/i18n/es/Angular/rules/07-testing-angular.md +739 -0
- package/Dev/i18n/es/Angular/rules/08-quality-tools.md +501 -0
- package/Dev/i18n/es/Angular/rules/11-security-angular.md +497 -0
- package/Dev/i18n/es/Angular/templates/component.template.ts +115 -0
- package/Dev/i18n/es/Angular/templates/service.template.ts +203 -0
- package/Dev/i18n/es/CSharp/CLAUDE.md.template +65 -0
- package/Dev/i18n/es/CSharp/agents/csharp-reviewer.md +166 -0
- package/Dev/i18n/es/CSharp/checklists/new-feature.md +178 -0
- package/Dev/i18n/es/CSharp/checklists/pre-commit.md +126 -0
- package/Dev/i18n/es/CSharp/commands/check-architecture.md +294 -0
- package/Dev/i18n/es/CSharp/commands/check-code-quality.md +355 -0
- package/Dev/i18n/es/CSharp/commands/check-compliance.md +178 -0
- package/Dev/i18n/es/CSharp/commands/check-security.md +369 -0
- package/Dev/i18n/es/CSharp/commands/check-testing.md +295 -0
- package/Dev/i18n/es/CSharp/commands/generate-feature.md +481 -0
- package/Dev/i18n/es/CSharp/rules/00-project-context.md.template +100 -0
- package/Dev/i18n/es/CSharp/rules/02-architecture-csharp.md +536 -0
- package/Dev/i18n/es/CSharp/rules/03-coding-standards.md +494 -0
- package/Dev/i18n/es/CSharp/rules/06-tooling.md +493 -0
- package/Dev/i18n/es/CSharp/rules/07-testing-csharp.md +566 -0
- package/Dev/i18n/es/CSharp/rules/08-quality-tools.md +497 -0
- package/Dev/i18n/es/CSharp/rules/11-security-csharp.md +568 -0
- package/Dev/i18n/es/CSharp/rules/12-aspire-cloud-native.md +514 -0
- package/Dev/i18n/es/CSharp/templates/command-handler.template.cs +100 -0
- package/Dev/i18n/es/CSharp/templates/entity.template.cs +159 -0
- package/Dev/i18n/es/Common/commands/add-technology.md +195 -0
- package/Dev/i18n/es/Laravel/CLAUDE.md.template +104 -0
- package/Dev/i18n/es/Laravel/agents/laravel-reviewer.md +200 -0
- package/Dev/i18n/es/Laravel/checklists/new-feature.md +277 -0
- package/Dev/i18n/es/Laravel/checklists/pre-commit.md +156 -0
- package/Dev/i18n/es/Laravel/commands/check-architecture.md +306 -0
- package/Dev/i18n/es/Laravel/commands/check-code-quality.md +302 -0
- package/Dev/i18n/es/Laravel/commands/check-compliance.md +141 -0
- package/Dev/i18n/es/Laravel/commands/check-security.md +372 -0
- package/Dev/i18n/es/Laravel/commands/check-testing.md +397 -0
- package/Dev/i18n/es/Laravel/commands/generate-controller.md +388 -0
- package/Dev/i18n/es/Laravel/rules/00-project-context.md.template +140 -0
- package/Dev/i18n/es/Laravel/rules/02-architecture-laravel.md +644 -0
- package/Dev/i18n/es/Laravel/rules/03-coding-standards.md +573 -0
- package/Dev/i18n/es/Laravel/rules/06-tooling.md +580 -0
- package/Dev/i18n/es/Laravel/rules/07-testing-laravel.md +525 -0
- package/Dev/i18n/es/Laravel/rules/08-quality-tools.md +591 -0
- package/Dev/i18n/es/Laravel/rules/11-security-laravel.md +787 -0
- package/Dev/i18n/es/Laravel/templates/action.template.php +79 -0
- package/Dev/i18n/es/Laravel/templates/controller.template.php +99 -0
- package/Dev/i18n/es/Laravel/templates/model.template.php +206 -0
- package/Dev/i18n/es/Laravel/templates/test.template.php +263 -0
- package/Dev/i18n/es/PHP/CLAUDE.md.template +460 -0
- package/Dev/i18n/es/PHP/agents/php-reviewer.md +345 -0
- package/Dev/i18n/es/PHP/checklists/new-feature.md +132 -0
- package/Dev/i18n/es/PHP/checklists/pre-commit.md +231 -0
- package/Dev/i18n/es/PHP/commands/check-architecture.md +557 -0
- package/Dev/i18n/es/PHP/commands/check-code-quality.md +448 -0
- package/Dev/i18n/es/PHP/commands/check-compliance.md +477 -0
- package/Dev/i18n/es/PHP/commands/check-security.md +420 -0
- package/Dev/i18n/es/PHP/commands/check-testing.md +486 -0
- package/Dev/i18n/es/PHP/rules/00-project-context.md.template +266 -0
- package/Dev/i18n/es/PHP/rules/02-architecture-php.md +696 -0
- package/Dev/i18n/es/PHP/rules/03-coding-standards.md +641 -0
- package/Dev/i18n/es/PHP/rules/06-tooling.md +543 -0
- package/Dev/i18n/es/PHP/rules/07-testing-php.md +636 -0
- package/Dev/i18n/es/PHP/rules/08-quality-tools.md +533 -0
- package/Dev/i18n/es/PHP/rules/11-security-php.md +759 -0
- package/Dev/i18n/es/PHP/templates/entity.md +435 -0
- package/Dev/i18n/es/PHP/templates/use-case.md +512 -0
- package/Dev/i18n/es/PHP/templates/value-object.md +555 -0
- package/Dev/i18n/es/VueJS/CLAUDE.md.template +102 -0
- package/Dev/i18n/es/VueJS/agents/vuejs-reviewer.md +206 -0
- package/Dev/i18n/es/VueJS/checklists/new-feature.md +131 -0
- package/Dev/i18n/es/VueJS/checklists/pre-commit.md +68 -0
- package/Dev/i18n/es/VueJS/commands/check-architecture.md +137 -0
- package/Dev/i18n/es/VueJS/commands/check-code-quality.md +152 -0
- package/Dev/i18n/es/VueJS/commands/check-compliance.md +124 -0
- package/Dev/i18n/es/VueJS/commands/check-security.md +186 -0
- package/Dev/i18n/es/VueJS/commands/check-testing.md +185 -0
- package/Dev/i18n/es/VueJS/commands/generate-component.md +233 -0
- package/Dev/i18n/es/VueJS/rules/00-project-context.md.template +125 -0
- package/Dev/i18n/es/VueJS/rules/02-architecture-vuejs.md +375 -0
- package/Dev/i18n/es/VueJS/rules/03-coding-standards.md +502 -0
- package/Dev/i18n/es/VueJS/rules/06-tooling.md +422 -0
- package/Dev/i18n/es/VueJS/rules/07-testing-vuejs.md +606 -0
- package/Dev/i18n/es/VueJS/rules/08-quality-tools.md +441 -0
- package/Dev/i18n/es/VueJS/rules/11-security-vuejs.md +465 -0
- package/Dev/i18n/es/VueJS/templates/component.template.vue +133 -0
- package/Dev/i18n/es/VueJS/templates/composable.template.ts +162 -0
- package/Dev/i18n/es/VueJS/templates/store.template.ts +282 -0
- package/Dev/i18n/es/VueJS/templates/test.template.ts +233 -0
- package/Dev/i18n/fr/Angular/CLAUDE.md.template +49 -0
- package/Dev/i18n/fr/Angular/agents/angular-reviewer.md +213 -0
- package/Dev/i18n/fr/Angular/checklists/new-feature.md +125 -0
- package/Dev/i18n/fr/Angular/checklists/pre-commit.md +77 -0
- package/Dev/i18n/fr/Angular/commands/check-architecture.md +261 -0
- package/Dev/i18n/fr/Angular/commands/check-code-quality.md +238 -0
- package/Dev/i18n/fr/Angular/commands/check-compliance.md +199 -0
- package/Dev/i18n/fr/Angular/commands/check-security.md +263 -0
- package/Dev/i18n/fr/Angular/commands/check-testing.md +292 -0
- package/Dev/i18n/fr/Angular/commands/generate-component.md +220 -0
- package/Dev/i18n/fr/Angular/rules/00-project-context.md.template +78 -0
- package/Dev/i18n/fr/Angular/rules/02-architecture-angular.md +477 -0
- package/Dev/i18n/fr/Angular/rules/03-coding-standards.md +640 -0
- package/Dev/i18n/fr/Angular/rules/06-tooling.md +516 -0
- package/Dev/i18n/fr/Angular/rules/07-testing-angular.md +739 -0
- package/Dev/i18n/fr/Angular/rules/08-quality-tools.md +501 -0
- package/Dev/i18n/fr/Angular/rules/11-security-angular.md +497 -0
- package/Dev/i18n/fr/Angular/templates/component.template.ts +115 -0
- package/Dev/i18n/fr/Angular/templates/service.template.ts +203 -0
- package/Dev/i18n/fr/CSharp/CLAUDE.md.template +65 -0
- package/Dev/i18n/fr/CSharp/agents/csharp-reviewer.md +166 -0
- package/Dev/i18n/fr/CSharp/checklists/new-feature.md +178 -0
- package/Dev/i18n/fr/CSharp/checklists/pre-commit.md +126 -0
- package/Dev/i18n/fr/CSharp/commands/check-architecture.md +294 -0
- package/Dev/i18n/fr/CSharp/commands/check-code-quality.md +355 -0
- package/Dev/i18n/fr/CSharp/commands/check-compliance.md +178 -0
- package/Dev/i18n/fr/CSharp/commands/check-security.md +369 -0
- package/Dev/i18n/fr/CSharp/commands/check-testing.md +295 -0
- package/Dev/i18n/fr/CSharp/commands/generate-feature.md +481 -0
- package/Dev/i18n/fr/CSharp/rules/00-project-context.md.template +100 -0
- package/Dev/i18n/fr/CSharp/rules/02-architecture-csharp.md +536 -0
- package/Dev/i18n/fr/CSharp/rules/03-coding-standards.md +494 -0
- package/Dev/i18n/fr/CSharp/rules/06-tooling.md +493 -0
- package/Dev/i18n/fr/CSharp/rules/07-testing-csharp.md +566 -0
- package/Dev/i18n/fr/CSharp/rules/08-quality-tools.md +497 -0
- package/Dev/i18n/fr/CSharp/rules/11-security-csharp.md +568 -0
- package/Dev/i18n/fr/CSharp/rules/12-aspire-cloud-native.md +514 -0
- package/Dev/i18n/fr/CSharp/templates/command-handler.template.cs +100 -0
- package/Dev/i18n/fr/CSharp/templates/entity.template.cs +159 -0
- package/Dev/i18n/fr/Common/commands/add-technology.md +293 -0
- package/Dev/i18n/fr/Laravel/CLAUDE.md.template +104 -0
- package/Dev/i18n/fr/Laravel/agents/laravel-reviewer.md +200 -0
- package/Dev/i18n/fr/Laravel/checklists/new-feature.md +277 -0
- package/Dev/i18n/fr/Laravel/checklists/pre-commit.md +156 -0
- package/Dev/i18n/fr/Laravel/commands/check-architecture.md +306 -0
- package/Dev/i18n/fr/Laravel/commands/check-code-quality.md +302 -0
- package/Dev/i18n/fr/Laravel/commands/check-compliance.md +141 -0
- package/Dev/i18n/fr/Laravel/commands/check-security.md +372 -0
- package/Dev/i18n/fr/Laravel/commands/check-testing.md +397 -0
- package/Dev/i18n/fr/Laravel/commands/generate-controller.md +388 -0
- package/Dev/i18n/fr/Laravel/rules/00-project-context.md.template +140 -0
- package/Dev/i18n/fr/Laravel/rules/02-architecture-laravel.md +644 -0
- package/Dev/i18n/fr/Laravel/rules/03-coding-standards.md +573 -0
- package/Dev/i18n/fr/Laravel/rules/06-tooling.md +580 -0
- package/Dev/i18n/fr/Laravel/rules/07-testing-laravel.md +525 -0
- package/Dev/i18n/fr/Laravel/rules/08-quality-tools.md +591 -0
- package/Dev/i18n/fr/Laravel/rules/11-security-laravel.md +787 -0
- package/Dev/i18n/fr/Laravel/templates/action.template.php +79 -0
- package/Dev/i18n/fr/Laravel/templates/controller.template.php +99 -0
- package/Dev/i18n/fr/Laravel/templates/model.template.php +206 -0
- package/Dev/i18n/fr/Laravel/templates/test.template.php +263 -0
- package/Dev/i18n/fr/PHP/CLAUDE.md.template +460 -0
- package/Dev/i18n/fr/PHP/agents/php-reviewer.md +345 -0
- package/Dev/i18n/fr/PHP/checklists/new-feature.md +132 -0
- package/Dev/i18n/fr/PHP/checklists/pre-commit.md +231 -0
- package/Dev/i18n/fr/PHP/commands/check-architecture.md +557 -0
- package/Dev/i18n/fr/PHP/commands/check-code-quality.md +448 -0
- package/Dev/i18n/fr/PHP/commands/check-compliance.md +477 -0
- package/Dev/i18n/fr/PHP/commands/check-security.md +420 -0
- package/Dev/i18n/fr/PHP/commands/check-testing.md +486 -0
- package/Dev/i18n/fr/PHP/rules/00-project-context.md.template +266 -0
- package/Dev/i18n/fr/PHP/rules/02-architecture-php.md +506 -0
- package/Dev/i18n/fr/PHP/rules/03-coding-standards.md +585 -0
- package/Dev/i18n/fr/PHP/rules/06-tooling.md +543 -0
- package/Dev/i18n/fr/PHP/rules/07-testing-php.md +636 -0
- package/Dev/i18n/fr/PHP/rules/08-quality-tools.md +533 -0
- package/Dev/i18n/fr/PHP/rules/11-security-php.md +642 -0
- package/Dev/i18n/fr/PHP/templates/entity.md +435 -0
- package/Dev/i18n/fr/PHP/templates/use-case.md +512 -0
- package/Dev/i18n/fr/PHP/templates/value-object.md +555 -0
- package/Dev/i18n/fr/VueJS/CLAUDE.md.template +102 -0
- package/Dev/i18n/fr/VueJS/agents/vuejs-reviewer.md +206 -0
- package/Dev/i18n/fr/VueJS/checklists/new-feature.md +131 -0
- package/Dev/i18n/fr/VueJS/checklists/pre-commit.md +68 -0
- package/Dev/i18n/fr/VueJS/commands/check-architecture.md +137 -0
- package/Dev/i18n/fr/VueJS/commands/check-code-quality.md +152 -0
- package/Dev/i18n/fr/VueJS/commands/check-compliance.md +124 -0
- package/Dev/i18n/fr/VueJS/commands/check-security.md +186 -0
- package/Dev/i18n/fr/VueJS/commands/check-testing.md +185 -0
- package/Dev/i18n/fr/VueJS/commands/generate-component.md +233 -0
- package/Dev/i18n/fr/VueJS/rules/00-project-context.md.template +125 -0
- package/Dev/i18n/fr/VueJS/rules/02-architecture-vuejs.md +375 -0
- package/Dev/i18n/fr/VueJS/rules/03-coding-standards.md +502 -0
- package/Dev/i18n/fr/VueJS/rules/06-tooling.md +422 -0
- package/Dev/i18n/fr/VueJS/rules/07-testing-vuejs.md +606 -0
- package/Dev/i18n/fr/VueJS/rules/08-quality-tools.md +441 -0
- package/Dev/i18n/fr/VueJS/rules/11-security-vuejs.md +465 -0
- package/Dev/i18n/fr/VueJS/templates/component.template.vue +133 -0
- package/Dev/i18n/fr/VueJS/templates/composable.template.ts +162 -0
- package/Dev/i18n/fr/VueJS/templates/store.template.ts +282 -0
- package/Dev/i18n/fr/VueJS/templates/test.template.ts +233 -0
- package/Dev/i18n/pt/Angular/CLAUDE.md.template +49 -0
- package/Dev/i18n/pt/Angular/agents/angular-reviewer.md +213 -0
- package/Dev/i18n/pt/Angular/checklists/new-feature.md +125 -0
- package/Dev/i18n/pt/Angular/checklists/pre-commit.md +77 -0
- package/Dev/i18n/pt/Angular/commands/check-architecture.md +261 -0
- package/Dev/i18n/pt/Angular/commands/check-code-quality.md +238 -0
- package/Dev/i18n/pt/Angular/commands/check-compliance.md +199 -0
- package/Dev/i18n/pt/Angular/commands/check-security.md +263 -0
- package/Dev/i18n/pt/Angular/commands/check-testing.md +292 -0
- package/Dev/i18n/pt/Angular/commands/generate-component.md +220 -0
- package/Dev/i18n/pt/Angular/rules/00-project-context.md.template +78 -0
- package/Dev/i18n/pt/Angular/rules/02-architecture-angular.md +477 -0
- package/Dev/i18n/pt/Angular/rules/03-coding-standards.md +640 -0
- package/Dev/i18n/pt/Angular/rules/06-tooling.md +516 -0
- package/Dev/i18n/pt/Angular/rules/07-testing-angular.md +739 -0
- package/Dev/i18n/pt/Angular/rules/08-quality-tools.md +501 -0
- package/Dev/i18n/pt/Angular/rules/11-security-angular.md +497 -0
- package/Dev/i18n/pt/Angular/templates/component.template.ts +115 -0
- package/Dev/i18n/pt/Angular/templates/service.template.ts +203 -0
- package/Dev/i18n/pt/CSharp/CLAUDE.md.template +65 -0
- package/Dev/i18n/pt/CSharp/agents/csharp-reviewer.md +166 -0
- package/Dev/i18n/pt/CSharp/checklists/new-feature.md +178 -0
- package/Dev/i18n/pt/CSharp/checklists/pre-commit.md +126 -0
- package/Dev/i18n/pt/CSharp/commands/check-architecture.md +294 -0
- package/Dev/i18n/pt/CSharp/commands/check-code-quality.md +355 -0
- package/Dev/i18n/pt/CSharp/commands/check-compliance.md +178 -0
- package/Dev/i18n/pt/CSharp/commands/check-security.md +369 -0
- package/Dev/i18n/pt/CSharp/commands/check-testing.md +295 -0
- package/Dev/i18n/pt/CSharp/commands/generate-feature.md +481 -0
- package/Dev/i18n/pt/CSharp/rules/00-project-context.md.template +100 -0
- package/Dev/i18n/pt/CSharp/rules/02-architecture-csharp.md +536 -0
- package/Dev/i18n/pt/CSharp/rules/03-coding-standards.md +494 -0
- package/Dev/i18n/pt/CSharp/rules/06-tooling.md +493 -0
- package/Dev/i18n/pt/CSharp/rules/07-testing-csharp.md +566 -0
- package/Dev/i18n/pt/CSharp/rules/08-quality-tools.md +497 -0
- package/Dev/i18n/pt/CSharp/rules/11-security-csharp.md +568 -0
- package/Dev/i18n/pt/CSharp/rules/12-aspire-cloud-native.md +514 -0
- package/Dev/i18n/pt/CSharp/templates/command-handler.template.cs +100 -0
- package/Dev/i18n/pt/CSharp/templates/entity.template.cs +159 -0
- package/Dev/i18n/pt/Common/commands/add-technology.md +195 -0
- package/Dev/i18n/pt/Laravel/CLAUDE.md.template +104 -0
- package/Dev/i18n/pt/Laravel/agents/laravel-reviewer.md +200 -0
- package/Dev/i18n/pt/Laravel/checklists/new-feature.md +277 -0
- package/Dev/i18n/pt/Laravel/checklists/pre-commit.md +156 -0
- package/Dev/i18n/pt/Laravel/commands/check-architecture.md +306 -0
- package/Dev/i18n/pt/Laravel/commands/check-code-quality.md +302 -0
- package/Dev/i18n/pt/Laravel/commands/check-compliance.md +141 -0
- package/Dev/i18n/pt/Laravel/commands/check-security.md +372 -0
- package/Dev/i18n/pt/Laravel/commands/check-testing.md +397 -0
- package/Dev/i18n/pt/Laravel/commands/generate-controller.md +388 -0
- package/Dev/i18n/pt/Laravel/rules/00-project-context.md.template +140 -0
- package/Dev/i18n/pt/Laravel/rules/02-architecture-laravel.md +644 -0
- package/Dev/i18n/pt/Laravel/rules/03-coding-standards.md +573 -0
- package/Dev/i18n/pt/Laravel/rules/06-tooling.md +580 -0
- package/Dev/i18n/pt/Laravel/rules/07-testing-laravel.md +525 -0
- package/Dev/i18n/pt/Laravel/rules/08-quality-tools.md +591 -0
- package/Dev/i18n/pt/Laravel/rules/11-security-laravel.md +787 -0
- package/Dev/i18n/pt/Laravel/templates/action.template.php +79 -0
- package/Dev/i18n/pt/Laravel/templates/controller.template.php +99 -0
- package/Dev/i18n/pt/Laravel/templates/model.template.php +206 -0
- package/Dev/i18n/pt/Laravel/templates/test.template.php +263 -0
- package/Dev/i18n/pt/PHP/CLAUDE.md.template +460 -0
- package/Dev/i18n/pt/PHP/agents/php-reviewer.md +345 -0
- package/Dev/i18n/pt/PHP/checklists/new-feature.md +132 -0
- package/Dev/i18n/pt/PHP/checklists/pre-commit.md +231 -0
- package/Dev/i18n/pt/PHP/commands/check-architecture.md +557 -0
- package/Dev/i18n/pt/PHP/commands/check-code-quality.md +448 -0
- package/Dev/i18n/pt/PHP/commands/check-compliance.md +477 -0
- package/Dev/i18n/pt/PHP/commands/check-security.md +420 -0
- package/Dev/i18n/pt/PHP/commands/check-testing.md +486 -0
- package/Dev/i18n/pt/PHP/rules/00-project-context.md.template +266 -0
- package/Dev/i18n/pt/PHP/rules/02-architecture-php.md +696 -0
- package/Dev/i18n/pt/PHP/rules/03-coding-standards.md +641 -0
- package/Dev/i18n/pt/PHP/rules/06-tooling.md +543 -0
- package/Dev/i18n/pt/PHP/rules/07-testing-php.md +636 -0
- package/Dev/i18n/pt/PHP/rules/08-quality-tools.md +533 -0
- package/Dev/i18n/pt/PHP/rules/11-security-php.md +759 -0
- package/Dev/i18n/pt/PHP/templates/entity.md +435 -0
- package/Dev/i18n/pt/PHP/templates/use-case.md +512 -0
- package/Dev/i18n/pt/PHP/templates/value-object.md +555 -0
- package/Dev/i18n/pt/VueJS/CLAUDE.md.template +102 -0
- package/Dev/i18n/pt/VueJS/agents/vuejs-reviewer.md +206 -0
- package/Dev/i18n/pt/VueJS/checklists/new-feature.md +131 -0
- package/Dev/i18n/pt/VueJS/checklists/pre-commit.md +68 -0
- package/Dev/i18n/pt/VueJS/commands/check-architecture.md +137 -0
- package/Dev/i18n/pt/VueJS/commands/check-code-quality.md +152 -0
- package/Dev/i18n/pt/VueJS/commands/check-compliance.md +124 -0
- package/Dev/i18n/pt/VueJS/commands/check-security.md +186 -0
- package/Dev/i18n/pt/VueJS/commands/check-testing.md +185 -0
- package/Dev/i18n/pt/VueJS/commands/generate-component.md +233 -0
- package/Dev/i18n/pt/VueJS/rules/00-project-context.md.template +125 -0
- package/Dev/i18n/pt/VueJS/rules/02-architecture-vuejs.md +375 -0
- package/Dev/i18n/pt/VueJS/rules/03-coding-standards.md +502 -0
- package/Dev/i18n/pt/VueJS/rules/06-tooling.md +422 -0
- package/Dev/i18n/pt/VueJS/rules/07-testing-vuejs.md +606 -0
- package/Dev/i18n/pt/VueJS/rules/08-quality-tools.md +441 -0
- package/Dev/i18n/pt/VueJS/rules/11-security-vuejs.md +465 -0
- package/Dev/i18n/pt/VueJS/templates/component.template.vue +133 -0
- package/Dev/i18n/pt/VueJS/templates/composable.template.ts +162 -0
- package/Dev/i18n/pt/VueJS/templates/store.template.ts +282 -0
- package/Dev/i18n/pt/VueJS/templates/test.template.ts +233 -0
- package/Dev/scripts/install-angular-rules.sh +543 -0
- package/Dev/scripts/install-common-rules.sh +13 -1
- package/Dev/scripts/install-csharp-rules.sh +544 -0
- package/Dev/scripts/install-flutter-rules.sh +17 -4
- package/Dev/scripts/install-from-config.sh +61 -23
- package/Dev/scripts/install-laravel-rules.sh +552 -0
- package/Dev/scripts/install-php-rules.sh +537 -0
- package/Dev/scripts/install-python-rules.sh +17 -4
- package/Dev/scripts/install-react-rules.sh +17 -4
- package/Dev/scripts/install-reactnative-rules.sh +17 -4
- package/Dev/scripts/install-symfony-rules.sh +22 -4
- package/Dev/scripts/install-vuejs-rules.sh +588 -0
- package/README.md +68 -2
- package/Tools/Ralph/README.md +106 -10
- package/Tools/Ralph/lib/checkpoint.sh +15 -9
- package/Tools/Ralph/lib/circuit-breaker.sh +16 -7
- package/Tools/Ralph/lib/context-manager.sh +473 -0
- package/Tools/Ralph/lib/context-reconstruction.sh +329 -0
- package/Tools/Ralph/lib/dod-validator.sh +17 -4
- package/Tools/Ralph/lib/loop.sh +33 -10
- package/Tools/Ralph/lib/session.sh +88 -33
- package/Tools/Ralph/lib/sprint-progress.sh +832 -0
- package/Tools/Ralph/lib/utils.sh +362 -0
- package/Tools/Ralph/ralph.sh +172 -14
- package/Tools/Ralph/templates/ralph.yml.template +87 -0
- package/Tools/Ralph/templates/sprint-progress.md.template +72 -0
- package/Tools/i18n/ralph/de.sh +31 -0
- package/Tools/i18n/ralph/en.sh +31 -0
- package/Tools/i18n/ralph/es.sh +31 -0
- package/Tools/i18n/ralph/fr.sh +31 -0
- package/Tools/i18n/ralph/pt.sh +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
# C#/.NET Architecture Standards
|
|
2
|
+
|
|
3
|
+
## Clean Architecture Principles
|
|
4
|
+
|
|
5
|
+
### Layer Structure
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
Solution/
|
|
9
|
+
├── src/
|
|
10
|
+
│ ├── Domain/ # Core business logic
|
|
11
|
+
│ │ ├── Entities/ # Business entities
|
|
12
|
+
│ │ ├── ValueObjects/ # Immutable value types
|
|
13
|
+
│ │ ├── Enums/ # Domain enumerations
|
|
14
|
+
│ │ ├── Events/ # Domain events
|
|
15
|
+
│ │ ├── Exceptions/ # Domain exceptions
|
|
16
|
+
│ │ └── Interfaces/ # Repository contracts
|
|
17
|
+
│ │
|
|
18
|
+
│ ├── Application/ # Use cases & orchestration
|
|
19
|
+
│ │ ├── Common/ # Shared behaviors
|
|
20
|
+
│ │ │ ├── Behaviors/ # MediatR pipeline behaviors
|
|
21
|
+
│ │ │ ├── Exceptions/ # Application exceptions
|
|
22
|
+
│ │ │ ├── Interfaces/ # Service interfaces
|
|
23
|
+
│ │ │ ├── Mappings/ # AutoMapper profiles
|
|
24
|
+
│ │ │ └── Models/ # DTOs
|
|
25
|
+
│ │ ├── Features/ # CQRS commands & queries
|
|
26
|
+
│ │ │ └── {Feature}/
|
|
27
|
+
│ │ │ ├── Commands/ # Write operations
|
|
28
|
+
│ │ │ └── Queries/ # Read operations
|
|
29
|
+
│ │ └── DependencyInjection.cs
|
|
30
|
+
│ │
|
|
31
|
+
│ ├── Infrastructure/ # External concerns
|
|
32
|
+
│ │ ├── Data/ # EF Core DbContext
|
|
33
|
+
│ │ │ ├── Configurations/ # Entity configurations
|
|
34
|
+
│ │ │ ├── Migrations/ # Database migrations
|
|
35
|
+
│ │ │ └── Repositories/ # Repository implementations
|
|
36
|
+
│ │ ├── Identity/ # Authentication/Authorization
|
|
37
|
+
│ │ ├── Services/ # External service implementations
|
|
38
|
+
│ │ └── DependencyInjection.cs
|
|
39
|
+
│ │
|
|
40
|
+
│ └── WebAPI/ # Presentation layer
|
|
41
|
+
│ ├── Controllers/ # API controllers (if not Minimal)
|
|
42
|
+
│ ├── Endpoints/ # Minimal API endpoints
|
|
43
|
+
│ ├── Filters/ # Action filters
|
|
44
|
+
│ ├── Middleware/ # Custom middleware
|
|
45
|
+
│ └── Program.cs # Entry point
|
|
46
|
+
│
|
|
47
|
+
├── tests/
|
|
48
|
+
│ ├── Domain.UnitTests/
|
|
49
|
+
│ ├── Application.UnitTests/
|
|
50
|
+
│ ├── Infrastructure.IntegrationTests/
|
|
51
|
+
│ └── WebAPI.FunctionalTests/
|
|
52
|
+
│
|
|
53
|
+
└── docker-compose.yml
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Dependency Rules
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
┌─────────────────────────────────────────────────────┐
|
|
60
|
+
│ WebAPI │
|
|
61
|
+
│ (Controllers, Endpoints) │
|
|
62
|
+
└────────────────────────┬────────────────────────────┘
|
|
63
|
+
│ depends on
|
|
64
|
+
┌────────────────────────▼────────────────────────────┐
|
|
65
|
+
│ Infrastructure │
|
|
66
|
+
│ (EF Core, External Services) │
|
|
67
|
+
└────────────────────────┬────────────────────────────┘
|
|
68
|
+
│ depends on
|
|
69
|
+
┌────────────────────────▼────────────────────────────┐
|
|
70
|
+
│ Application │
|
|
71
|
+
│ (Use Cases, CQRS, DTOs) │
|
|
72
|
+
└────────────────────────┬────────────────────────────┘
|
|
73
|
+
│ depends on
|
|
74
|
+
┌────────────────────────▼────────────────────────────┐
|
|
75
|
+
│ Domain │
|
|
76
|
+
│ (Entities, Value Objects, Interfaces) │
|
|
77
|
+
└─────────────────────────────────────────────────────┘
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**CRITICAL**: Dependencies MUST flow inward only. Domain has NO external dependencies.
|
|
81
|
+
|
|
82
|
+
## Domain Layer
|
|
83
|
+
|
|
84
|
+
### Entity Design
|
|
85
|
+
|
|
86
|
+
```csharp
|
|
87
|
+
// Domain/Entities/Order.cs
|
|
88
|
+
public class Order : BaseEntity, IAggregateRoot
|
|
89
|
+
{
|
|
90
|
+
private readonly List<OrderItem> _items = new();
|
|
91
|
+
|
|
92
|
+
public Guid CustomerId { get; private set; }
|
|
93
|
+
public OrderStatus Status { get; private set; }
|
|
94
|
+
public Money TotalAmount { get; private set; }
|
|
95
|
+
public IReadOnlyCollection<OrderItem> Items => _items.AsReadOnly();
|
|
96
|
+
public DateTime CreatedAt { get; private set; }
|
|
97
|
+
|
|
98
|
+
private Order() { } // EF Core constructor
|
|
99
|
+
|
|
100
|
+
public static Order Create(Guid customerId)
|
|
101
|
+
{
|
|
102
|
+
var order = new Order
|
|
103
|
+
{
|
|
104
|
+
Id = Guid.NewGuid(),
|
|
105
|
+
CustomerId = customerId,
|
|
106
|
+
Status = OrderStatus.Draft,
|
|
107
|
+
TotalAmount = Money.Zero,
|
|
108
|
+
CreatedAt = DateTime.UtcNow
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
order.AddDomainEvent(new OrderCreatedEvent(order.Id));
|
|
112
|
+
return order;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public void AddItem(Product product, int quantity)
|
|
116
|
+
{
|
|
117
|
+
Guard.Against.NegativeOrZero(quantity, nameof(quantity));
|
|
118
|
+
|
|
119
|
+
var item = new OrderItem(product.Id, product.Price, quantity);
|
|
120
|
+
_items.Add(item);
|
|
121
|
+
RecalculateTotal();
|
|
122
|
+
|
|
123
|
+
AddDomainEvent(new OrderItemAddedEvent(Id, item.ProductId));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
public void Submit()
|
|
127
|
+
{
|
|
128
|
+
if (Status != OrderStatus.Draft)
|
|
129
|
+
throw new InvalidOrderStateException("Only draft orders can be submitted");
|
|
130
|
+
|
|
131
|
+
if (!_items.Any())
|
|
132
|
+
throw new EmptyOrderException("Cannot submit an empty order");
|
|
133
|
+
|
|
134
|
+
Status = OrderStatus.Submitted;
|
|
135
|
+
AddDomainEvent(new OrderSubmittedEvent(Id));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
private void RecalculateTotal()
|
|
139
|
+
{
|
|
140
|
+
TotalAmount = _items.Aggregate(Money.Zero, (sum, item) => sum + item.Total);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Value Objects
|
|
146
|
+
|
|
147
|
+
```csharp
|
|
148
|
+
// Domain/ValueObjects/Money.cs
|
|
149
|
+
public sealed class Money : ValueObject
|
|
150
|
+
{
|
|
151
|
+
public decimal Amount { get; }
|
|
152
|
+
public string Currency { get; }
|
|
153
|
+
|
|
154
|
+
public static Money Zero => new(0, "USD");
|
|
155
|
+
|
|
156
|
+
private Money(decimal amount, string currency)
|
|
157
|
+
{
|
|
158
|
+
Amount = amount;
|
|
159
|
+
Currency = currency;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
public static Money Create(decimal amount, string currency = "USD")
|
|
163
|
+
{
|
|
164
|
+
Guard.Against.Negative(amount, nameof(amount));
|
|
165
|
+
Guard.Against.NullOrWhiteSpace(currency, nameof(currency));
|
|
166
|
+
|
|
167
|
+
return new Money(amount, currency.ToUpperInvariant());
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
public static Money operator +(Money left, Money right)
|
|
171
|
+
{
|
|
172
|
+
if (left.Currency != right.Currency)
|
|
173
|
+
throw new CurrencyMismatchException();
|
|
174
|
+
|
|
175
|
+
return new Money(left.Amount + right.Amount, left.Currency);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
protected override IEnumerable<object> GetEqualityComponents()
|
|
179
|
+
{
|
|
180
|
+
yield return Amount;
|
|
181
|
+
yield return Currency;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### Repository Interfaces
|
|
187
|
+
|
|
188
|
+
```csharp
|
|
189
|
+
// Domain/Interfaces/IOrderRepository.cs
|
|
190
|
+
public interface IOrderRepository
|
|
191
|
+
{
|
|
192
|
+
Task<Order?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default);
|
|
193
|
+
Task<IReadOnlyList<Order>> GetByCustomerIdAsync(Guid customerId, CancellationToken cancellationToken = default);
|
|
194
|
+
Task AddAsync(Order order, CancellationToken cancellationToken = default);
|
|
195
|
+
Task UpdateAsync(Order order, CancellationToken cancellationToken = default);
|
|
196
|
+
Task DeleteAsync(Order order, CancellationToken cancellationToken = default);
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## Application Layer
|
|
201
|
+
|
|
202
|
+
### CQRS Pattern with MediatR
|
|
203
|
+
|
|
204
|
+
```csharp
|
|
205
|
+
// Application/Features/Orders/Commands/CreateOrder/CreateOrderCommand.cs
|
|
206
|
+
public record CreateOrderCommand(Guid CustomerId) : IRequest<Guid>;
|
|
207
|
+
|
|
208
|
+
// Application/Features/Orders/Commands/CreateOrder/CreateOrderCommandHandler.cs
|
|
209
|
+
public class CreateOrderCommandHandler : IRequestHandler<CreateOrderCommand, Guid>
|
|
210
|
+
{
|
|
211
|
+
private readonly IOrderRepository _orderRepository;
|
|
212
|
+
private readonly IUnitOfWork _unitOfWork;
|
|
213
|
+
|
|
214
|
+
public CreateOrderCommandHandler(
|
|
215
|
+
IOrderRepository orderRepository,
|
|
216
|
+
IUnitOfWork unitOfWork)
|
|
217
|
+
{
|
|
218
|
+
_orderRepository = orderRepository;
|
|
219
|
+
_unitOfWork = unitOfWork;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
public async Task<Guid> Handle(CreateOrderCommand request, CancellationToken cancellationToken)
|
|
223
|
+
{
|
|
224
|
+
var order = Order.Create(request.CustomerId);
|
|
225
|
+
|
|
226
|
+
await _orderRepository.AddAsync(order, cancellationToken);
|
|
227
|
+
await _unitOfWork.SaveChangesAsync(cancellationToken);
|
|
228
|
+
|
|
229
|
+
return order.Id;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// Application/Features/Orders/Commands/CreateOrder/CreateOrderCommandValidator.cs
|
|
234
|
+
public class CreateOrderCommandValidator : AbstractValidator<CreateOrderCommand>
|
|
235
|
+
{
|
|
236
|
+
public CreateOrderCommandValidator()
|
|
237
|
+
{
|
|
238
|
+
RuleFor(x => x.CustomerId)
|
|
239
|
+
.NotEmpty()
|
|
240
|
+
.WithMessage("Customer ID is required");
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Query Pattern
|
|
246
|
+
|
|
247
|
+
```csharp
|
|
248
|
+
// Application/Features/Orders/Queries/GetOrderById/GetOrderByIdQuery.cs
|
|
249
|
+
public record GetOrderByIdQuery(Guid OrderId) : IRequest<OrderDto?>;
|
|
250
|
+
|
|
251
|
+
// Application/Features/Orders/Queries/GetOrderById/GetOrderByIdQueryHandler.cs
|
|
252
|
+
public class GetOrderByIdQueryHandler : IRequestHandler<GetOrderByIdQuery, OrderDto?>
|
|
253
|
+
{
|
|
254
|
+
private readonly IApplicationDbContext _context;
|
|
255
|
+
private readonly IMapper _mapper;
|
|
256
|
+
|
|
257
|
+
public GetOrderByIdQueryHandler(IApplicationDbContext context, IMapper mapper)
|
|
258
|
+
{
|
|
259
|
+
_context = context;
|
|
260
|
+
_mapper = mapper;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
public async Task<OrderDto?> Handle(GetOrderByIdQuery request, CancellationToken cancellationToken)
|
|
264
|
+
{
|
|
265
|
+
return await _context.Orders
|
|
266
|
+
.AsNoTracking()
|
|
267
|
+
.Where(o => o.Id == request.OrderId)
|
|
268
|
+
.ProjectTo<OrderDto>(_mapper.ConfigurationProvider)
|
|
269
|
+
.FirstOrDefaultAsync(cancellationToken);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Pipeline Behaviors
|
|
275
|
+
|
|
276
|
+
```csharp
|
|
277
|
+
// Application/Common/Behaviors/ValidationBehavior.cs
|
|
278
|
+
public class ValidationBehavior<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse>
|
|
279
|
+
where TRequest : notnull
|
|
280
|
+
{
|
|
281
|
+
private readonly IEnumerable<IValidator<TRequest>> _validators;
|
|
282
|
+
|
|
283
|
+
public ValidationBehavior(IEnumerable<IValidator<TRequest>> validators)
|
|
284
|
+
{
|
|
285
|
+
_validators = validators;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
public async Task<TResponse> Handle(
|
|
289
|
+
TRequest request,
|
|
290
|
+
RequestHandlerDelegate<TResponse> next,
|
|
291
|
+
CancellationToken cancellationToken)
|
|
292
|
+
{
|
|
293
|
+
if (!_validators.Any())
|
|
294
|
+
return await next();
|
|
295
|
+
|
|
296
|
+
var context = new ValidationContext<TRequest>(request);
|
|
297
|
+
|
|
298
|
+
var validationResults = await Task.WhenAll(
|
|
299
|
+
_validators.Select(v => v.ValidateAsync(context, cancellationToken)));
|
|
300
|
+
|
|
301
|
+
var failures = validationResults
|
|
302
|
+
.SelectMany(r => r.Errors)
|
|
303
|
+
.Where(f => f != null)
|
|
304
|
+
.ToList();
|
|
305
|
+
|
|
306
|
+
if (failures.Any())
|
|
307
|
+
throw new ValidationException(failures);
|
|
308
|
+
|
|
309
|
+
return await next();
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
## Infrastructure Layer
|
|
315
|
+
|
|
316
|
+
### Entity Framework Configuration
|
|
317
|
+
|
|
318
|
+
```csharp
|
|
319
|
+
// Infrastructure/Data/Configurations/OrderConfiguration.cs
|
|
320
|
+
public class OrderConfiguration : IEntityTypeConfiguration<Order>
|
|
321
|
+
{
|
|
322
|
+
public void Configure(EntityTypeBuilder<Order> builder)
|
|
323
|
+
{
|
|
324
|
+
builder.ToTable("Orders");
|
|
325
|
+
|
|
326
|
+
builder.HasKey(o => o.Id);
|
|
327
|
+
|
|
328
|
+
builder.Property(o => o.Status)
|
|
329
|
+
.HasConversion<string>()
|
|
330
|
+
.HasMaxLength(50);
|
|
331
|
+
|
|
332
|
+
builder.OwnsOne(o => o.TotalAmount, money =>
|
|
333
|
+
{
|
|
334
|
+
money.Property(m => m.Amount)
|
|
335
|
+
.HasColumnName("TotalAmount")
|
|
336
|
+
.HasPrecision(18, 2);
|
|
337
|
+
money.Property(m => m.Currency)
|
|
338
|
+
.HasColumnName("Currency")
|
|
339
|
+
.HasMaxLength(3);
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
builder.HasMany(o => o.Items)
|
|
343
|
+
.WithOne()
|
|
344
|
+
.HasForeignKey("OrderId")
|
|
345
|
+
.OnDelete(DeleteBehavior.Cascade);
|
|
346
|
+
|
|
347
|
+
builder.Navigation(o => o.Items)
|
|
348
|
+
.UsePropertyAccessMode(PropertyAccessMode.Field);
|
|
349
|
+
|
|
350
|
+
builder.HasIndex(o => o.CustomerId);
|
|
351
|
+
builder.HasIndex(o => o.CreatedAt);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Repository Implementation
|
|
357
|
+
|
|
358
|
+
```csharp
|
|
359
|
+
// Infrastructure/Data/Repositories/OrderRepository.cs
|
|
360
|
+
public class OrderRepository : IOrderRepository
|
|
361
|
+
{
|
|
362
|
+
private readonly ApplicationDbContext _context;
|
|
363
|
+
|
|
364
|
+
public OrderRepository(ApplicationDbContext context)
|
|
365
|
+
{
|
|
366
|
+
_context = context;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
public async Task<Order?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default)
|
|
370
|
+
{
|
|
371
|
+
return await _context.Orders
|
|
372
|
+
.Include(o => o.Items)
|
|
373
|
+
.FirstOrDefaultAsync(o => o.Id == id, cancellationToken);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
public async Task<IReadOnlyList<Order>> GetByCustomerIdAsync(
|
|
377
|
+
Guid customerId,
|
|
378
|
+
CancellationToken cancellationToken = default)
|
|
379
|
+
{
|
|
380
|
+
return await _context.Orders
|
|
381
|
+
.Where(o => o.CustomerId == customerId)
|
|
382
|
+
.OrderByDescending(o => o.CreatedAt)
|
|
383
|
+
.ToListAsync(cancellationToken);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
public async Task AddAsync(Order order, CancellationToken cancellationToken = default)
|
|
387
|
+
{
|
|
388
|
+
await _context.Orders.AddAsync(order, cancellationToken);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
public Task UpdateAsync(Order order, CancellationToken cancellationToken = default)
|
|
392
|
+
{
|
|
393
|
+
_context.Orders.Update(order);
|
|
394
|
+
return Task.CompletedTask;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
public Task DeleteAsync(Order order, CancellationToken cancellationToken = default)
|
|
398
|
+
{
|
|
399
|
+
_context.Orders.Remove(order);
|
|
400
|
+
return Task.CompletedTask;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
## WebAPI Layer
|
|
406
|
+
|
|
407
|
+
### Minimal API Endpoints (Preferred in .NET 9)
|
|
408
|
+
|
|
409
|
+
```csharp
|
|
410
|
+
// WebAPI/Endpoints/OrderEndpoints.cs
|
|
411
|
+
public static class OrderEndpoints
|
|
412
|
+
{
|
|
413
|
+
public static void MapOrderEndpoints(this IEndpointRouteBuilder app)
|
|
414
|
+
{
|
|
415
|
+
var group = app.MapGroup("/api/orders")
|
|
416
|
+
.WithTags("Orders")
|
|
417
|
+
.RequireAuthorization();
|
|
418
|
+
|
|
419
|
+
group.MapGet("/{id:guid}", GetOrderById)
|
|
420
|
+
.WithName("GetOrderById")
|
|
421
|
+
.Produces<OrderDto>(StatusCodes.Status200OK)
|
|
422
|
+
.Produces(StatusCodes.Status404NotFound);
|
|
423
|
+
|
|
424
|
+
group.MapPost("/", CreateOrder)
|
|
425
|
+
.WithName("CreateOrder")
|
|
426
|
+
.Produces<Guid>(StatusCodes.Status201Created)
|
|
427
|
+
.ProducesValidationProblem();
|
|
428
|
+
|
|
429
|
+
group.MapPost("/{id:guid}/submit", SubmitOrder)
|
|
430
|
+
.WithName("SubmitOrder")
|
|
431
|
+
.Produces(StatusCodes.Status204NoContent)
|
|
432
|
+
.Produces(StatusCodes.Status404NotFound);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
private static async Task<IResult> GetOrderById(
|
|
436
|
+
Guid id,
|
|
437
|
+
ISender sender,
|
|
438
|
+
CancellationToken cancellationToken)
|
|
439
|
+
{
|
|
440
|
+
var order = await sender.Send(new GetOrderByIdQuery(id), cancellationToken);
|
|
441
|
+
return order is null
|
|
442
|
+
? TypedResults.NotFound()
|
|
443
|
+
: TypedResults.Ok(order);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
private static async Task<IResult> CreateOrder(
|
|
447
|
+
CreateOrderCommand command,
|
|
448
|
+
ISender sender,
|
|
449
|
+
CancellationToken cancellationToken)
|
|
450
|
+
{
|
|
451
|
+
var orderId = await sender.Send(command, cancellationToken);
|
|
452
|
+
return TypedResults.CreatedAtRoute("GetOrderById", new { id = orderId }, orderId);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
private static async Task<IResult> SubmitOrder(
|
|
456
|
+
Guid id,
|
|
457
|
+
ISender sender,
|
|
458
|
+
CancellationToken cancellationToken)
|
|
459
|
+
{
|
|
460
|
+
await sender.Send(new SubmitOrderCommand(id), cancellationToken);
|
|
461
|
+
return TypedResults.NoContent();
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
### Controller-Based API (Alternative)
|
|
467
|
+
|
|
468
|
+
```csharp
|
|
469
|
+
// WebAPI/Controllers/OrdersController.cs
|
|
470
|
+
[ApiController]
|
|
471
|
+
[Route("api/[controller]")]
|
|
472
|
+
[Authorize]
|
|
473
|
+
public class OrdersController : ControllerBase
|
|
474
|
+
{
|
|
475
|
+
private readonly ISender _sender;
|
|
476
|
+
|
|
477
|
+
public OrdersController(ISender sender)
|
|
478
|
+
{
|
|
479
|
+
_sender = sender;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
[HttpGet("{id:guid}")]
|
|
483
|
+
[ProducesResponseType(typeof(OrderDto), StatusCodes.Status200OK)]
|
|
484
|
+
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
|
485
|
+
public async Task<IActionResult> GetById(Guid id, CancellationToken cancellationToken)
|
|
486
|
+
{
|
|
487
|
+
var order = await _sender.Send(new GetOrderByIdQuery(id), cancellationToken);
|
|
488
|
+
return order is null ? NotFound() : Ok(order);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
[HttpPost]
|
|
492
|
+
[ProducesResponseType(typeof(Guid), StatusCodes.Status201Created)]
|
|
493
|
+
[ProducesResponseType(typeof(ValidationProblemDetails), StatusCodes.Status400BadRequest)]
|
|
494
|
+
public async Task<IActionResult> Create(CreateOrderCommand command, CancellationToken cancellationToken)
|
|
495
|
+
{
|
|
496
|
+
var orderId = await _sender.Send(command, cancellationToken);
|
|
497
|
+
return CreatedAtAction(nameof(GetById), new { id = orderId }, orderId);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
## .NET Aspire Integration (Cloud-Native)
|
|
503
|
+
|
|
504
|
+
```csharp
|
|
505
|
+
// AppHost/Program.cs
|
|
506
|
+
var builder = DistributedApplication.CreateBuilder(args);
|
|
507
|
+
|
|
508
|
+
var postgres = builder.AddPostgres("postgres")
|
|
509
|
+
.WithPgAdmin()
|
|
510
|
+
.AddDatabase("ordersdb");
|
|
511
|
+
|
|
512
|
+
var redis = builder.AddRedis("cache");
|
|
513
|
+
|
|
514
|
+
var api = builder.AddProject<Projects.WebAPI>("api")
|
|
515
|
+
.WithReference(postgres)
|
|
516
|
+
.WithReference(redis)
|
|
517
|
+
.WithExternalHttpEndpoints();
|
|
518
|
+
|
|
519
|
+
builder.AddProject<Projects.MigrationService>("migrations")
|
|
520
|
+
.WithReference(postgres);
|
|
521
|
+
|
|
522
|
+
builder.Build().Run();
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
## Architecture Checklist
|
|
526
|
+
|
|
527
|
+
- [ ] Domain layer has NO external dependencies
|
|
528
|
+
- [ ] Application layer only depends on Domain
|
|
529
|
+
- [ ] Infrastructure implements interfaces from Application/Domain
|
|
530
|
+
- [ ] WebAPI depends on all other layers but only through DI
|
|
531
|
+
- [ ] All entities have private setters
|
|
532
|
+
- [ ] Value Objects are immutable
|
|
533
|
+
- [ ] Repository interfaces are in Domain
|
|
534
|
+
- [ ] CQRS separates read/write operations
|
|
535
|
+
- [ ] Validation is in Application layer (FluentValidation)
|
|
536
|
+
- [ ] DTOs are used for data transfer, not entities
|