feat(skills): reworked skills and rules
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s

This commit is contained in:
Julian Lechner committed 2026-11-18 14:17:49 +01:00
1 parent 29632ff0ce
commit f5d8f6f11b
124 files changed
+1250 -8138

No files matched your search

+9 -5
View File
@@ -7,13 +7,17 @@ description: Use when reviewing Entity Framework Core LINQ queries, models, migr
Use when reviewing Entity Framework Core queries, model changes, migrations, or persistence behavior.
Load and follow `rules-csharp-security` and `rules-csharp-architecture-and-apis` for the matching C# rules.
## Review
- Check whether LINQ translates as intended for the configured provider and whether filters are applied before materialization.
- Look for N+1 access, unbounded result sets, unnecessary tracking, duplicate queries, and over-fetching. Verify eager or explicit loading matches the data needed.
- Look for N+1 access, unbounded result sets, unnecessary tracking, duplicate queries, and over-fetching. Flag cartesian explosion from multiple collection includes where `AsSplitQuery` fits.
- Flag `FromSqlRaw` or `ExecuteSqlRaw` built by string concatenation or interpolation; use the parameterized `FromSql` or `ExecuteSql` forms.
- Flag `IgnoreQueryFilters` that bypasses tenant or soft-delete filters without an explicit, authorized reason.
- Check `DbContext` lifetime: no singleton or static context, no sharing across threads or parallel tasks.
- Review relationship configuration, delete behavior, keys, nullability, indexes, and concurrency tokens against the domain invariants.
- Check migration ordering, generated SQL, data backfills, rollback limits, and compatibility while old and new application versions may coexist.
- Inspect transaction scope, isolation, retry behavior, cancellation, and handling of concurrency conflicts where applicable.
- Ensure sensitive or tenant-scoped rows cannot be read or changed outside the authorized scope.
- Check migration ordering, generated SQL, data backfills, rollback limits, and compatibility while old and new application versions coexist.
- Inspect transaction scope, isolation, retry behavior, cancellation, and concurrency conflict handling where applicable.
Report findings with the query or migration path, runtime or data impact, and relevant provider-aware verification. Avoid recommending indexes or caching without evidence of a query need.
Report findings in the `review-pull-request` finding schema and severity scale. Avoid recommending indexes or caching without evidence of a query need.
@@ -42,6 +42,17 @@
"Suggests measurement or evidence before optimization if performance is a concern"
],
"files": []
},
{
"id": 4,
"prompt": "EF Core review please.\n\n```diff\n # src/utils/format.ts\n-export const money = (v: number) => v.toFixed(2);\n+export const money = (v: number, c = 'EUR') => new Intl.NumberFormat('de-AT', { style: 'currency', currency: c }).format(v);\n```",
"expected_output": "The diff is a TypeScript formatting helper with no EF Core query, model, migration, or persistence code. Should state that efcore-review is out of scope and report no EF Core findings.",
"assertions": [
"States that the diff contains no EF Core or persistence code",
"Reports no EF Core findings",
"Does not invent query, migration, or DbContext issues"
],
"files": []
}
]
}