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

@@ -0,0 +1,68 @@
---
name: review-pull-request
description: Use when reviewing a pull request or proposed diff for actionable defects, compatibility problems, security risks, and merge readiness. Do not implement review feedback.
---
# Review Pull Request
Review requested pull requests or proposed diffs for correctness, compatibility, and merge risk. This skill is the single entry point for code reviews: add the specialist reviews the diff touches and merge their findings into one report under the contract below.
## Workflow
1. Identify the target branch and exact diff. Locally, `git fetch` the target and review `git diff <target>...HEAD` (three dots, against the merge base) so that unrelated changes on the target branch are not judged as part of the change. For a pull request link, read its diff, description, and existing comments through the connected Azure DevOps or Gitea tools. Read each changed file in full, not only the changed hunks, plus the relevant callers, tests, and configuration before judging a change. Compare the pull request description with what the diff actually does, and note the CI status when it is available. For a very large or mixed-purpose diff, say so and suggest splitting it.
2. Trace changed behavior through its entry points and consumers. Check error paths, boundary conditions, data handling, and security-sensitive flows when affected.
3. Compare the implementation with the stated requirement and established repository patterns. Distinguish a concrete defect from a preference or speculative concern.
4. Check compatibility of public APIs, file formats, migrations, configuration, and generated output where relevant.
5. Check these in every diff, whatever its size:
- Tests: changed behavior is covered by tests that would fail without the change, including failure paths. Missing coverage for changed behavior is a finding.
- Secrets: no keys, tokens, passwords, connection strings, or personal data in code, configuration, fixtures, logs, or test data.
- Dependencies: new, removed, or upgraded packages and lockfile changes trigger `rules-security-supply-chain`.
- Documentation: documentation and comments directly affected by the change are updated, as the Definition of Done requires.
6. Run the specialist reviews whose triggers match the diff.
7. Inspect available verification evidence. Run checks only when the review request and environment call for them; report unrun checks accurately.
## Specialists
- `ponytail-review`: quality lens, always.
- `security-review`: trust boundaries, auth, secrets, untrusted input, sensitive data.
- `api-review`: HTTP or RPC endpoints, request handling, serialization, API contracts.
- `efcore-review`: EF Core queries, models, migrations, persistence.
- `performance-review`: hot paths, I/O, allocations, concurrency, resource use.
- `wpf-review`: WPF, XAML, or MVVM changes.
- `ui-ux-review`: user-facing screens or flows; run inside Impeccable and Apple Design when installed.
- `business-review`: only when requirements, acceptance criteria, or user workflows are stated.
Where no specialist review exists, apply the matching rules and skills directly as checklists, and record them as the source review:
- Angular or TypeScript: `rules-angular` and `rules-typescript` topic rules.
- Blazor or .NET MAUI: `rules-csharp-blazor` or `rules-csharp-maui`, plus the C# topic rules the diff touches.
- SQL outside EF Core (raw SQL, Dapper, ADO.NET, stored procedures, migrations): `sql-write` and `rules-security-data`.
- Tests: `unit-test-write`, `integration-test-write`, or `e2e-test-write`; flag tests that cannot fail, flaky waits, missing failure paths, and over-mocking.
- Images, video, or audio: `media`, including its common-mistakes reference.
A subagent returning a review places its findings inside the orchestration handoff `EVIDENCE` section.
## Report contract
Severity:
- blocking: security weakness, data loss, broken contract, or deterministic failure.
- important: real defect or regression risk.
- minor: low-impact defect.
Map UI review severities: Critical to blocking, High to important, Medium and Low to minor.
Each finding has: severity, location (`file:line` or screen and flow), condition, impact, fix, scope (introduced, pre-existing, or uncertain), and source review.
Rules:
- Dedup: one finding per root cause. Keep the highest severity and list every source review.
- Scope: report pre-existing issues only when they affect the change.
- Order findings by severity, before any summary. Do not report issues already fixed in the diff.
- Separate optional suggestions from defects. If no finding remains, say so and note meaningful verification gaps.
Do not modify the reviewed change unless asked to implement the feedback.
## Posting the review
Deliver the report in the chat by default. Posting findings as pull request comments, voting, approving, requesting changes, or completing the pull request are remote writes: do them only when the user asks for that specific action, following the Git rules and the remote-system rules (`rules-microsoft`). Never approve or complete a pull request on your own judgment.