{ProjectName}.Integration (Files to communicate between microservices/bounded contexts)
Architecture & Patterns
1. Pagination
Pattern Source: See GeminiReference.Backoffice.Modules.Posts.Domain.Criteria.PostPagination.
Rules:
Inherit from Pagination.
overrideMaxPageAllowed and MaxSizeAllowed.
Expose public static long MaxPageLimit for external use.
2. Validation & Localization
Pattern Source: See GeminiReference.Backoffice.API.Resources.v1.Posts.Actions.PaginatePosts.PaginatePostsValidator.
Rules:
Use SharedLocalization for generic errors.
Use .When(x => x.Field.HasValue) for Optional<T> fields.
3. Value Objects & Constants
Pattern Source: See GeminiReference.Backoffice.Modules.Posts.Domain.ValueObjects.PostTitle.
Rules:
Constants (e.g., MAX_LENGTH) MUST be defined inside the Value Object.
Reference them as PostTitle.MAX_LENGTH.
4. Observability & Logging
Pattern Source: See Neuraltech.SharedKernel.Infraestructure.Extensions.ObservabilityExtension.
Rules:
Use UseDefaultExtensions() -> UseObservability().
Do NOT manually configure logging in Program.cs.
5. Authentication (Pending)
Zero Trust: Microservices will validate auth tokens via AddSharedAuthentication.
6. AI Generation Rules
Entities: Always create a strongly-typed ID Value Object (e.g., PostId).
Snapshots: Strict separation between InternalSnapshot (Domain) and PublicSnapshot (Integration).
Code Style: concise, modern C# (file-scoped namespaces, records, primary constructors).
1---2name: backend-engineer3description: Write ASP .NET code.4---56# Projects7- {ProjectName}.{Context}.API (Presentation layer)8- {ProjectName}.{Context}.Modules (Domain, Application, Infrastructure)9- {ProjectName}.{Context}.Migrations (Database migrations)10- {ProjectName}.Integration (Files to communicate between microservices/bounded contexts)111213# Architecture & Patterns1415## 1. Pagination16- **Pattern Source**: See `GeminiReference.Backoffice.Modules.Posts.Domain.Criteria.PostPagination`.17- **Rules**:18 - Inherit from `Pagination`.19 - `override` `MaxPageAllowed` and `MaxSizeAllowed`.20 - Expose `public static long MaxPageLimit` for external use.2122## 2. Validation & Localization23- **Pattern Source**: See `GeminiReference.Backoffice.API.Resources.v1.Posts.Actions.PaginatePosts.PaginatePostsValidator`.24- **Rules**:25 - Use `SharedLocalization` for generic errors.26 - Use `.When(x => x.Field.HasValue)` for `Optional<T>` fields.2728## 3. Value Objects & Constants29- **Pattern Source**: See `GeminiReference.Backoffice.Modules.Posts.Domain.ValueObjects.PostTitle`.30- **Rules**:31 - Constants (e.g., `MAX_LENGTH`) MUST be defined inside the Value Object.32 - Reference them as `PostTitle.MAX_LENGTH`.3334## 4. Observability & Logging35- **Pattern Source**: See `Neuraltech.SharedKernel.Infraestructure.Extensions.ObservabilityExtension`.36- **Rules**:37 - Use `UseDefaultExtensions()` -> `UseObservability()`.38 - Do NOT manually configure logging in `Program.cs`.3940## 5. Authentication (Pending)41- **Zero Trust**: Microservices will validate auth tokens via `AddSharedAuthentication`.4243## 6. AI Generation Rules44- **Entities**: Always create a strongly-typed ID Value Object (e.g., `PostId`).45- **Snapshots**: Strict separation between `InternalSnapshot` (Domain) and `PublicSnapshot` (Integration).46- **Code Style**: concise, modern C# (file-scoped namespaces, records, primary constructors).47
Run npx skillmds@latest add gabrielmacus/backend-engineer in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Write ASP .NET code. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
gabrielmacus (@gabrielmacus) published this skill. Their other Agent Skills are listed on their SkillMD profile.