← Játékfejlesztők adatlapja
Nézd meg, miben segít
Kontextusra épülő kódreview
Hívókon, védelmeken és adatátalakításokon követi végig a változtatást a valódi új hibák elkülönítésére.
contextual-code-review
Ezt a skillt használó csapattagok
Mikor hasznos?
Akkor használd, ha kis diff közös szerződést, állapotváltást vagy kockázatos adatot érint.
Miben segít neked?
- Hiányzó védelem jelzése előtt megvizsgálja a meglévő előzetes ellenőrzést.
- Követi az adatot a bemenettől a tárolásig és válaszig.
- Az új vagy súlyosbított, konkrét következményű hibákra összpontosít.
Például ezt kérheted
Nézd át a válaszformátum módosítását az összes hívón keresztül, és jelezd a változtatás okozta kompatibilitási hibákat. Kövess egy nullázható mezőt a régi kliens megjelenítőjéig. Csak akkor jelezz hibát, ha az új válasz meglévő védelem nélkül eljuthat oda.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
Contextual Code Review
Reading only the green and red lines of a diff misses the most dangerous bugs. A change is safe only in the context of its callers, dependencies, data contracts, and runtime environment (Michael Feathers & Michael Fagan).
Thinking Sequence for Every Review
- What must this change achieve?
- What is the accepted scope and expected behavior?
- Where does the code implement it?
- What happens on the main path, error paths, and boundary cases?
- What does it alter in existing system behavior?
- Which claims are backed by real checks?
- Is there a concrete, actionable defect that requires a fix?
Workflow
- Expand context beyond the modified lines:
- Inspect all callers of any modified function, hook, component, or endpoint to verify their assumptions about arguments, return values, nullability, and thrown errors still hold.
- Inspect all callees and existing guards (upstream middleware, schema validators, database constraints, transactions) before claiming a check is missing.
- Trace control flow and data transformations end to end:
- Follow data from entry point (HTTP request, CLI arg, UI event, queue payload) through validation, domain logic, persistence, and response serialization.
- Check for off-by-one errors, inverted boolean conditions, unhandled
null/undefined, mutated shared references, unawaited promises, and resource leaks.
- Separate new regressions from pre-existing technical debt:
- Introduced or worsened by this change: In scope for blocking or targeted review findings.
- Pre-existing issue in untouched code: Only flag if the current change directly triggers or amplifies it, and explicitly label it as pre-existing rather than blaming the diff.
- Calibrate review depth to risk:
- Spend deep analytical effort on state transitions, permissions, financial/usage math, migrations, and public contracts; never pad a review with subjective naming or formatting nitpicks.
Csomagban lévő fájlok 1
SKILL.md
