← Zurück zu Babylon.js · Projektplanungspaket

Skill · Version 1.0.0

Kontextbezogenes Code-Review

Verfolgt eine Gameplay-Änderung durch Validierung, Umwandlungen und Speicherung. Prüft vorhandene Schutzmechanismen, bevor eine fehlende Prüfung oder ein bereits bestehendes Problem als neue Regression gilt.

contextual-code-review

Agenten mit diesem Skill

Entdecke, wie der Skill hilft

Wann ist der Skill hilfreich?

Nutze diesen Skill bei kleinen Diffs mit großen Auswirkungen auf Verträge oder Zustandswechsel.

Wobei hilft er dir?

  • Prüft vorhandene vorgelagerte Validierung vor behaupteten Schutzlücken.
  • Verfolgt Eingaben durch Fachlogik, Speicherung und Antwortbildung.
  • Konzentriert Befunde auf eingeführte oder verschärfte Defekte mit Folgen.

Das könntest du fragen

Prüfe eine Änderung, die mehrere Upgrade-Stufen gleichzeitig kaufen lässt. Verfolge Mengenprüfung, Preisberechnung und Guthabenänderung durch alle Aufrufer. Kläre, ob negative Mengen bereits vorher abgefangen werden, und melde nur neu entstandene Fehler mit Eingaben, die den betroffenen Code tatsächlich erreichen.

Ausführliche Dokumentation

Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.

Details…Weniger anzeigen

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

  1. What must this change achieve?
  2. What is the accepted scope and expected behavior?
  3. Where does the code implement it?
  4. What happens on the main path, error paths, and boundary cases?
  5. What does it alter in existing system behavior?
  6. Which claims are backed by real checks?
  7. Is there a concrete, actionable defect that requires a fix?

Workflow

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Enthaltene Dateien 1

  • SKILL.md