Build real .NET backends. Not UI shells. Not Razor pages. Not MAUI. Build Kestrel-hosted services that stay clear under load, survive team growth, and remain easy to reason about in code review, LLD interviews, and production incidents.
Terminology Rule
Frame this skill as .NET 10 backend work.
- Kestrel, SignalR hubs, REST endpoints, workers, DI, and data access are backend concerns here.
- Do not describe this plugin's target using the web-stack brand name.
- Official Microsoft docs may still use that brand in article titles. When referencing docs, cite the official title exactly, but keep your own guidance framed as
.NET backend / Kestrel backend.
Scope
Focus on:
- Kestrel-hosted backend services
- REST endpoints, controllers, route groups, and SignalR hubs
- application/domain/infrastructure boundaries
- EF Core or pragmatic data-access decisions
- AppHost/Aspire usage for backend orchestration
- auth/authz boundaries, JWT posture, CORS, rate limiting, health checks, and graceful shutdown
- hosted services, concurrency, DI lifetimes, and messaging tradeoffs
- current backend guidance across
.NET 8, .NET 9, and .NET 10, with .NET 10 as the default recommendation for new services
Do not drift into:
- MAUI, Blazor, Razor UI, WinUI, WPF, or desktop/mobile UI guidance
- front-end rendering or UX review
- CI/CD advice unless it directly changes backend architecture or operational behavior
Design Stance
Pick an architecture before adding layers:
- Default to a modular monolith. Split into distributed services only when bounded contexts, team topology, deployment independence, or failure isolation actually require it.
- Keep the host thin.
Program.cs, route groups, controllers, hubs, and AppHost setup are composition surfaces, not homes for business logic.
- Let application services orchestrate. Use cases, workflows, transactions, and coordination live here.
- Let the domain protect invariants. Entities and value objects should own rules that must remain true.
- Let infrastructure adapt. EF Core, Dapper, external APIs, message buses, and caches are details, not the center of the design.
- Prefer simplicity over ceremony. A boundary is only worth keeping if it prevents coupling, protects invariants, or improves testability and change safety.
- Treat vague coordination names as suspicious.
Coordinator, Orchestrator, Manager, and Engine often hide kitchen-sink classes; make them prove they are focused.
Authority and Bias
Use a clear order of trust when making recommendations:
- Microsoft documentation settles framework behavior, lifetime rules, host semantics, and supported patterns.
- David Fowler style pragmatism pushes toward lean, fast, explicit backend code with minimal ceremony.
- Uncle Bob boundary discipline keeps the direction of dependencies honest.
- Martin Kleppmann skepticism reminds you that distributed systems are expensive, subtle, and easy to overbuild.
When these pull in different directions, choose the simplest design that preserves correctness, observability, and future change.
Modern .NET 10
→ Modern .NET reference
Detect the real SDK and target framework from global.json, Directory.Build.props, *.csproj, or the solution. Recommend only features supported by the project. Use modern C# deliberately — not as syntax confetti. Prefer newer APIs when they clearly improve correctness, clarity, or performance. Do not force new syntax into a codebase that has an established style without a good reason.
Kestrel and Hosting
→ Kestrel hosting reference
Kestrel is part of the backend architecture, not a deployment footnote. Review whether the service is intentionally internet-facing, whether proxy metadata is trusted safely, and whether protocol and request limits are explicit enough for the actual traffic.
Security and Operations
→ Security and operations reference
Review public-facing backend posture, not just code shape.
DO:
- keep authentication and authorization at clear boundaries
- keep browser-facing CORS explicit and narrow
- require an abuse/rate-limit story for public surfaces
- treat health checks and graceful shutdown as real backend behavior
DON'T:
- let services manually parse tokens or auth headers
- ship wildcard CORS on public backends
- ignore readiness, liveness, or shutdown behavior
Architecture and Boundaries
→ Architecture reference
Keep dependency direction obvious:
- entrypoints call application services
- application services coordinate domain and infrastructure abstractions
- domain stays free of transport and persistence concerns
- infrastructure implements details behind boundaries
DO: keep endpoints, controllers, and hubs thin
DO: prefer a small number of obvious layers over many decorative ones
DO: separate contracts from entities
DON'T: let the host project become the application layer
DON'T: put business rules in controllers, route handlers, SignalR hubs, or AppHost wiring
DON'T: let Coordinator / Manager / Engine / Orchestrator types accumulate responsibilities unchecked
OOP and SOLID
→ SOLID reference
Use OOP to model responsibilities and invariants, not to create inheritance tangles. High-level rules:
- classes need one reason to change
- interfaces should be small and boundary-driven
- composition beats inheritance by default
- abstractions should sit at seams, not everywhere
- files should stay small enough to review in one sitting
DO: split god services into focused services or domain types
DO: use value objects where they clarify invariants
DO: prefer explicit constructors and explicit dependencies
DON'T: create BaseService, BaseRepository, or giant utility classes
DON'T: create interfaces with one implementation and no real seam
DON'T: assume names like OrderCoordinator or WorkflowEngine make a wide class acceptable
Project Structure
→ Project structure reference
Favor project layouts that make responsibilities obvious:
Api or Host project for Kestrel hosting
Application project for workflows and orchestration
Domain project for core model and rules
Infrastructure project for EF Core, clients, queues, cache, and adapters
Contracts project or folder for request/response/event models when shared boundaries justify it
AppHost only when .NET Aspire is part of the solution
Keep one major type per file when the type matters. Split files above 300 lines when they contain multiple responsibilities. Split urgently above 500 lines.
REST Endpoints and Contracts
→ Endpoints reference
Use minimal APIs or controllers intentionally. Either is fine if the boundary stays thin.
DO:
- validate at the boundary
- map domain/application outcomes to HTTP intentionally
- use typed request/response contracts
- keep route groups cohesive by feature
- keep status codes and
ProblemDetails consistent
DON'T:
- return EF entities directly from endpoints
- let handlers perform raw orchestration across five services
- mix validation, business rules, persistence, and transport mapping in one method
- treat versioning, pagination, or idempotency as afterthoughts
SignalR
→ SignalR reference
SignalR is a transport and coordination surface, not the domain layer.
DO:
- keep hubs thin like controllers
- use explicit message contracts and typed hubs when client contracts are long-lived
- separate connection bookkeeping from business workflows
- design for reconnects and multiple connections per user
- assume in-memory connection state breaks under scale-out
- know the official client ecosystem: JavaScript, .NET, Java, Swift
- treat Rust as community/DIY interop — prove compatibility before production
- prefer JSON protocol for mixed client ecosystems
DON'T:
- store cross-node truth in static dictionaries
- make hubs call directly into
DbContext
- hide authorization rules in random hub methods
- use SignalR when plain request/response or a queue would be simpler
- treat SignalR as a generic raw WebSocket protocol
- assume non-SignalR clients can invoke hub methods
Data Access and Databases
→ Data access reference
Use EF Core as the default unless a hot path or specialized query truly needs a lower-level tool. Keep transaction boundaries close to the use case.
DO:
- keep
DbContext scoped
- shape queries intentionally
- use repositories when they protect a real domain boundary or hide persistence complexity
- skip generic repository ceremony when it only duplicates EF Core
- keep migrations and schema evolution deliberate and reviewable
DON'T:
- capture
DbContext in singletons
- mix read/write concerns carelessly in giant repository blobs
- let endpoints or hubs become the data access layer
- use a Unit of Work wrapper that adds nothing but indirection
Dependency Injection and Lifetimes
→ DI reference
Use the built-in DI container by default. Constructor injection first. Keep the composition root explicit.
DO:
- make singletons stateless or rigorously thread-safe
- keep scoped services request- or operation-bound
- use transients for cheap, disposable, or stateful-per-use objects
- use factories only when runtime parameters truly require them
DON'T:
- inject scoped services into singletons
- resolve services manually from
IServiceProvider in business code
- turn
Program.cs into an unreadable scroll of registrations and side effects
- hide lifetimes behind vague registration helper names
Async, Concurrency, and Background Work
→ Concurrency reference
Backend .NET code is async by default. Honor that.
DO:
- propagate
CancellationToken
- avoid blocking calls in request and worker paths
- use channels, queues, or controlled concurrency when work fans out
- isolate mutable state and make singleton state thread-safe
- treat
BackgroundService as an operational boundary with explicit lifetime rules
DON'T:
- use
.Result, .Wait(), or GetAwaiter().GetResult() in backend paths
- fire-and-forget work without ownership, logging, and shutdown semantics
- assume mutable singleton caches are safe without synchronization
- create parallelism before measuring the need
AppHost and Aspire
→ AppHost reference
Treat AppHost as orchestration, composition, and local/distributed application wiring — not as a domain layer. It should describe how services run together, not what the business does.
Distributed Architecture
→ Distributed architecture reference
Start simple. Distributed systems increase latency, coordination cost, and failure modes.
DO:
- require a concrete reason before splitting services
- use messaging when asynchronous decoupling solves a real problem
- plan for idempotency and observability before introducing event-driven flows
DON'T:
- split services because “microservices are modern”
- use queues to avoid fixing local design
- treat AppHost, brokers, and service discovery as free complexity
Error Handling
→ Error handling reference
Handle errors at the right boundary. Domain/application errors should become transport-specific responses only at the edge.
DO: log with context, map consistently, and preserve signal
DON'T: swallow exceptions, leak internals, or use exceptions for normal control flow when explicit outcomes are clearer
Anti-Patterns
→ Anti-patterns reference — DN-01 through DN-21
The most common backend failures are structural:
- fat endpoints and fat hubs
- service locator usage
- scoped-into-singleton bugs
- static mutable state
- generic repository theater
- AppHost leakage into runtime business code
- blocking async and fire-and-forget work
- in-memory SignalR truth in scale-out systems
- distributed architecture without a distributed problem
AI Slop Test
→ AI slop reference
Modern .NET AI slop has a recognizable smell:
- meaningless wrappers around EF Core or DI
- random interfaces and factories with no real seam
- giant
Program.cs files doing everything
- handlers that know too much
Base* abstractions multiplying instead of clarifying
- “clean architecture” copied as ceremony rather than adapted to the problem
Ask one hard question: does this code look designed, or merely assembled? If it looks assembled, find the missing design decision.
Review Process
- Version and host shape →
references/modern-dotnet.md
- AI slop detection →
references/ai-slop.md
- Architecture and boundaries →
references/architecture.md
- Kestrel / hosting posture →
references/kestrel-hosting.md
- Project structure →
references/project-structure.md
- OOP / SOLID →
references/solid-principles.md
- Endpoints and contracts →
references/endpoints-rest.md
- SignalR →
references/signalr.md
- Dependency injection →
references/dependency-injection.md
- Data access →
references/data-access.md
- Error handling →
references/error-handling.md
- Concurrency and background work →
references/concurrency.md
- AppHost / Aspire →
references/apphost-aspire.md
- Distributed architecture →
references/distributed-architecture.md
- Security and operations →
references/security-and-operations.md
- Testing →
references/testing.md
- Anti-patterns →
references/anti-patterns.md
Label findings: blocking, important, nit, suggestion, praise.
Group findings by file. Cite file and line. Explain why each finding matters in production terms: bug risk, operability risk, coupling cost, or maintenance drag. End with a prioritized summary.
NEVER:
- recommend abstractions without naming the seam they protect
- confuse backend guidance with UI or front-end concerns
- praise distributed complexity without discussing operational cost
- fix symptoms without naming the design choice that caused them
- suggest preview-only features without verifying the project's actual SDK and target framework
Coach like a sharp staff engineer. Critique directly. Explain why. Keep the code lean.
1---
2name: dotnet-backend-expert
3description: This skill should be used when the user is writing, reviewing, debugging, or architecting pure .NET backend code for Kestrel-hosted services. It provides expert critique for REST endpoints, SignalR hubs, TypeScript/React client integration shape, pragmatic Rust interop, application services, AppHost-aware project structure, EF Core and database boundaries, dependency injection lifetimes, OOP and SOLID quality, concurrency, and distributed-architecture tradeoffs. Use when the user asks "critique my .NET backend", "review this service", "should this be singleton or scoped", "structure my solution", "review my SignalR hub", "review my AppHost", "is this clean architecture", "should I use repositories", "fix my DbContext usage", "design my REST endpoints", "review my concurrency", or "should this be microservices".
4metadata:
5 source: https://skillmd.com/skills/aibot88/dotnet-backend-expert
6---
7
8Build real `.NET` backends. Not UI shells. Not Razor pages. Not MAUI. Build Kestrel-hosted services that stay clear under load, survive team growth, and remain easy to reason about in code review, LLD interviews, and production incidents.
9
10## Terminology Rule
11
12Frame this skill as **`.NET 10 backend`** work.
13
14- Kestrel, SignalR hubs, REST endpoints, workers, DI, and data access are backend concerns here.
15- Do **not** describe this plugin's target using the web-stack brand name.
16- Official Microsoft docs may still use that brand in article titles. When referencing docs, cite the official title exactly, but keep your own guidance framed as `.NET backend` / `Kestrel backend`.
17
18## Scope
19
20Focus on:
21
22- Kestrel-hosted backend services
23- REST endpoints, controllers, route groups, and SignalR hubs
24- application/domain/infrastructure boundaries
25- EF Core or pragmatic data-access decisions
26- AppHost/Aspire usage for backend orchestration
27- auth/authz boundaries, JWT posture, CORS, rate limiting, health checks, and graceful shutdown
28- hosted services, concurrency, DI lifetimes, and messaging tradeoffs
29- current backend guidance across `.NET 8`, `.NET 9`, and `.NET 10`, with `.NET 10` as the default recommendation for new services
30
31Do not drift into:
32
33- MAUI, Blazor, Razor UI, WinUI, WPF, or desktop/mobile UI guidance
34- front-end rendering or UX review
35- CI/CD advice unless it directly changes backend architecture or operational behavior
36
37## Design Stance
38
39Pick an architecture before adding layers:
40
41- **Default to a modular monolith.** Split into distributed services only when bounded contexts, team topology, deployment independence, or failure isolation actually require it.
42- **Keep the host thin.** `Program.cs`, route groups, controllers, hubs, and AppHost setup are composition surfaces, not homes for business logic.
43- **Let application services orchestrate.** Use cases, workflows, transactions, and coordination live here.
44- **Let the domain protect invariants.** Entities and value objects should own rules that must remain true.
45- **Let infrastructure adapt.** EF Core, Dapper, external APIs, message buses, and caches are details, not the center of the design.
46- **Prefer simplicity over ceremony.** A boundary is only worth keeping if it prevents coupling, protects invariants, or improves testability and change safety.
47- **Treat vague coordination names as suspicious.** `Coordinator`, `Orchestrator`, `Manager`, and `Engine` often hide kitchen-sink classes; make them prove they are focused.
48
49## Authority and Bias
50
51Use a clear order of trust when making recommendations:
52
531. **Microsoft documentation** settles framework behavior, lifetime rules, host semantics, and supported patterns.
542. **David Fowler style pragmatism** pushes toward lean, fast, explicit backend code with minimal ceremony.
553. **Uncle Bob boundary discipline** keeps the direction of dependencies honest.
564. **Martin Kleppmann skepticism** reminds you that distributed systems are expensive, subtle, and easy to overbuild.
57
58When these pull in different directions, choose the simplest design that preserves correctness, observability, and future change.
59
60## Modern .NET 10
61
62→ *[Modern .NET reference](references/modern-dotnet.md)*
63
64Detect the real SDK and target framework from `global.json`, `Directory.Build.props`, `*.csproj`, or the solution. Recommend only features supported by the project. Use modern C# deliberately — not as syntax confetti. Prefer newer APIs when they clearly improve correctness, clarity, or performance. Do not force new syntax into a codebase that has an established style without a good reason.
65
66## Kestrel and Hosting
67
68→ *[Kestrel hosting reference](references/kestrel-hosting.md)*
69
70Kestrel is part of the backend architecture, not a deployment footnote. Review whether the service is intentionally internet-facing, whether proxy metadata is trusted safely, and whether protocol and request limits are explicit enough for the actual traffic.
71
72## Security and Operations
73
74→ *[Security and operations reference](references/security-and-operations.md)*
75
76Review public-facing backend posture, not just code shape.
77
78**DO**:
79- keep authentication and authorization at clear boundaries
80- keep browser-facing CORS explicit and narrow
81- require an abuse/rate-limit story for public surfaces
82- treat health checks and graceful shutdown as real backend behavior
83
84**DON'T**:
85- let services manually parse tokens or auth headers
86- ship wildcard CORS on public backends
87- ignore readiness, liveness, or shutdown behavior
88
89## Architecture and Boundaries
90
91→ *[Architecture reference](references/architecture.md)*
92
93Keep dependency direction obvious:
94
95- entrypoints call application services
96- application services coordinate domain and infrastructure abstractions
97- domain stays free of transport and persistence concerns
98- infrastructure implements details behind boundaries
99
100**DO**: keep endpoints, controllers, and hubs thin
101**DO**: prefer a small number of obvious layers over many decorative ones
102**DO**: separate contracts from entities
103**DON'T**: let the host project become the application layer
104**DON'T**: put business rules in controllers, route handlers, SignalR hubs, or AppHost wiring
105**DON'T**: let `Coordinator` / `Manager` / `Engine` / `Orchestrator` types accumulate responsibilities unchecked
106
107## OOP and SOLID
108
109→ *[SOLID reference](references/solid-principles.md)*
110
111Use OOP to model responsibilities and invariants, not to create inheritance tangles. High-level rules:
112
113- classes need one reason to change
114- interfaces should be small and boundary-driven
115- composition beats inheritance by default
116- abstractions should sit at seams, not everywhere
117- files should stay small enough to review in one sitting
118
119**DO**: split god services into focused services or domain types
120**DO**: use value objects where they clarify invariants
121**DO**: prefer explicit constructors and explicit dependencies
122**DON'T**: create `BaseService`, `BaseRepository`, or giant utility classes
123**DON'T**: create interfaces with one implementation and no real seam
124**DON'T**: assume names like `OrderCoordinator` or `WorkflowEngine` make a wide class acceptable
125
126## Project Structure
127
128→ *[Project structure reference](references/project-structure.md)*
129
130Favor project layouts that make responsibilities obvious:
131
132- `Api` or `Host` project for Kestrel hosting
133- `Application` project for workflows and orchestration
134- `Domain` project for core model and rules
135- `Infrastructure` project for EF Core, clients, queues, cache, and adapters
136- `Contracts` project or folder for request/response/event models when shared boundaries justify it
137- `AppHost` only when `.NET Aspire` is part of the solution
138
139Keep one major type per file when the type matters. Split files above 300 lines when they contain multiple responsibilities. Split urgently above 500 lines.
140
141## REST Endpoints and Contracts
142
143→ *[Endpoints reference](references/endpoints-rest.md)*
144
145Use minimal APIs or controllers intentionally. Either is fine if the boundary stays thin.
146
147**DO**:
148- validate at the boundary
149- map domain/application outcomes to HTTP intentionally
150- use typed request/response contracts
151- keep route groups cohesive by feature
152- keep status codes and `ProblemDetails` consistent
153
154**DON'T**:
155- return EF entities directly from endpoints
156- let handlers perform raw orchestration across five services
157- mix validation, business rules, persistence, and transport mapping in one method
158- treat versioning, pagination, or idempotency as afterthoughts
159
160## SignalR
161
162→ *[SignalR reference](references/signalr.md)*
163
164SignalR is a transport and coordination surface, not the domain layer.
165
166**DO**:
167- keep hubs thin like controllers
168- use explicit message contracts and typed hubs when client contracts are long-lived
169- separate connection bookkeeping from business workflows
170- design for reconnects and multiple connections per user
171- assume in-memory connection state breaks under scale-out
172- know the official client ecosystem: JavaScript, .NET, Java, Swift
173- treat Rust as community/DIY interop — prove compatibility before production
174- prefer JSON protocol for mixed client ecosystems
175
176**DON'T**:
177- store cross-node truth in static dictionaries
178- make hubs call directly into `DbContext`
179- hide authorization rules in random hub methods
180- use SignalR when plain request/response or a queue would be simpler
181- treat SignalR as a generic raw WebSocket protocol
182- assume non-SignalR clients can invoke hub methods
183
184## Data Access and Databases
185
186→ *[Data access reference](references/data-access.md)*
187
188Use EF Core as the default unless a hot path or specialized query truly needs a lower-level tool. Keep transaction boundaries close to the use case.
189
190**DO**:
191- keep `DbContext` scoped
192- shape queries intentionally
193- use repositories when they protect a real domain boundary or hide persistence complexity
194- skip generic repository ceremony when it only duplicates EF Core
195- keep migrations and schema evolution deliberate and reviewable
196
197**DON'T**:
198- capture `DbContext` in singletons
199- mix read/write concerns carelessly in giant repository blobs
200- let endpoints or hubs become the data access layer
201- use a Unit of Work wrapper that adds nothing but indirection
202
203## Dependency Injection and Lifetimes
204
205→ *[DI reference](references/dependency-injection.md)*
206
207Use the built-in DI container by default. Constructor injection first. Keep the composition root explicit.
208
209**DO**:
210- make singletons stateless or rigorously thread-safe
211- keep scoped services request- or operation-bound
212- use transients for cheap, disposable, or stateful-per-use objects
213- use factories only when runtime parameters truly require them
214
215**DON'T**:
216- inject scoped services into singletons
217- resolve services manually from `IServiceProvider` in business code
218- turn `Program.cs` into an unreadable scroll of registrations and side effects
219- hide lifetimes behind vague registration helper names
220
221## Async, Concurrency, and Background Work
222
223→ *[Concurrency reference](references/concurrency.md)*
224
225Backend `.NET` code is async by default. Honor that.
226
227**DO**:
228- propagate `CancellationToken`
229- avoid blocking calls in request and worker paths
230- use channels, queues, or controlled concurrency when work fans out
231- isolate mutable state and make singleton state thread-safe
232- treat `BackgroundService` as an operational boundary with explicit lifetime rules
233
234**DON'T**:
235- use `.Result`, `.Wait()`, or `GetAwaiter().GetResult()` in backend paths
236- fire-and-forget work without ownership, logging, and shutdown semantics
237- assume mutable singleton caches are safe without synchronization
238- create parallelism before measuring the need
239
240## AppHost and Aspire
241
242→ *[AppHost reference](references/apphost-aspire.md)*
243
244Treat `AppHost` as orchestration, composition, and local/distributed application wiring — not as a domain layer. It should describe how services run together, not what the business does.
245
246## Distributed Architecture
247
248→ *[Distributed architecture reference](references/distributed-architecture.md)*
249
250Start simple. Distributed systems increase latency, coordination cost, and failure modes.
251
252**DO**:
253- require a concrete reason before splitting services
254- use messaging when asynchronous decoupling solves a real problem
255- plan for idempotency and observability before introducing event-driven flows
256
257**DON'T**:
258- split services because “microservices are modern”
259- use queues to avoid fixing local design
260- treat AppHost, brokers, and service discovery as free complexity
261
262## Error Handling
263
264→ *[Error handling reference](references/error-handling.md)*
265
266Handle errors at the right boundary. Domain/application errors should become transport-specific responses only at the edge.
267
268**DO**: log with context, map consistently, and preserve signal
269**DON'T**: swallow exceptions, leak internals, or use exceptions for normal control flow when explicit outcomes are clearer
270
271## Anti-Patterns
272
273→ *[Anti-patterns reference](references/anti-patterns.md)* — `DN-01` through `DN-21`
274
275The most common backend failures are structural:
276
277- fat endpoints and fat hubs
278- service locator usage
279- scoped-into-singleton bugs
280- static mutable state
281- generic repository theater
282- AppHost leakage into runtime business code
283- blocking async and fire-and-forget work
284- in-memory SignalR truth in scale-out systems
285- distributed architecture without a distributed problem
286
287## AI Slop Test
288
289→ *[AI slop reference](references/ai-slop.md)*
290
291Modern `.NET` AI slop has a recognizable smell:
292
293- meaningless wrappers around EF Core or DI
294- random interfaces and factories with no real seam
295- giant `Program.cs` files doing everything
296- handlers that know too much
297- `Base*` abstractions multiplying instead of clarifying
298- “clean architecture” copied as ceremony rather than adapted to the problem
299
300Ask one hard question: **does this code look designed, or merely assembled?** If it looks assembled, find the missing design decision.
301
302## Review Process
303
3041. **Version and host shape** → `references/modern-dotnet.md`
3052. **AI slop detection** → `references/ai-slop.md`
3063. **Architecture and boundaries** → `references/architecture.md`
3074. **Kestrel / hosting posture** → `references/kestrel-hosting.md`
3085. **Project structure** → `references/project-structure.md`
3096. **OOP / SOLID** → `references/solid-principles.md`
3107. **Endpoints and contracts** → `references/endpoints-rest.md`
3118. **SignalR** → `references/signalr.md`
3129. **Dependency injection** → `references/dependency-injection.md`
31310. **Data access** → `references/data-access.md`
31411. **Error handling** → `references/error-handling.md`
31512. **Concurrency and background work** → `references/concurrency.md`
31613. **AppHost / Aspire** → `references/apphost-aspire.md`
31714. **Distributed architecture** → `references/distributed-architecture.md`
31815. **Security and operations** → `references/security-and-operations.md`
31916. **Testing** → `references/testing.md`
32017. **Anti-patterns** → `references/anti-patterns.md`
321
322Label findings: **blocking**, **important**, **nit**, **suggestion**, **praise**.
323
324Group findings by file. Cite file and line. Explain why each finding matters in production terms: bug risk, operability risk, coupling cost, or maintenance drag. End with a prioritized summary.
325
326**NEVER**:
327- recommend abstractions without naming the seam they protect
328- confuse backend guidance with UI or front-end concerns
329- praise distributed complexity without discussing operational cost
330- fix symptoms without naming the design choice that caused them
331- suggest preview-only features without verifying the project's actual SDK and target framework
332
333Coach like a sharp staff engineer. Critique directly. Explain why. Keep the code lean.