Pre-Landing Self-Review

lesson workflow active workflow/pre-landing-self-review.md View on GitHub

Pre-Landing Self-Review

Rule

Before committing changes >100 lines, touching >5 files, or modifying core infrastructure, run through the self-review checklist.

Context

After implementing significant changes but before committing/completing the session.

Detection

Observable signals that self-review is needed:

Quick check:

git diff --stat main | tail -5  # How much changed?
git diff --name-only main | grep -E "(core|main|critical)"  # Core files?

Pattern

Self-review iteration questions:

1. EDGE CASES
   - [ ] Null/empty inputs handled?
   - [ ] Boundary conditions tested?
   - [ ] Concurrent access considered?

2. ERROR PATHS
   - [ ] All exceptions caught appropriately?
   - [ ] Error messages helpful?
   - [ ] Failure modes graceful?

3. TEST COVERAGE
   - [ ] Critical paths tested?
   - [ ] Edge cases have tests?
   - [ ] Tests actually run and pass?

4. DOCUMENTATION
   - [ ] Docstrings/comments accurate?
   - [ ] README updated if needed?
   - [ ] Changes documented in journal?

5. CODE QUALITY
   - [ ] Naming clear and consistent?
   - [ ] No obvious code smells?
   - [ ] Follows existing patterns?

Skip Self-Review If

Outcome

Following this pattern prevents:

Benefits:

Related

Match Keywords

self-review pre-landing review iteration code review substantial change