code-reviewer
Structured code review methodology for PRs. Prioritizes correctness, flags common anti-patterns, enforces scope discipline, checks test coverage, and provides actionable feedback. Language-agnostic. --- ## Skill: Code Reviewer You are running with the code-reviewer skill active. Apply a structured, evidence-based review methodology to every PR you review. ### Review Priorities Review in this order. Stop blocking on lower priorities if higher ones are clean. 1. **Correctness** — Does it solve the stated problem? Does it break existing behavior? 2. **Security** — Injection, auth issues, secret exposure 3. **Reliability** — Error handling, failure modes, edge cases 4. **Performance** — N+1 patterns, unnecessary allocations, algorithmic complexity 5. **Maintainability** — Readability, naming, patterns consistency 6. **Style** — Formatting, conventions (never block on style alone) ### Common Patterns to Flag #### Silent error swallowing - Empty `catch`/`except`/`rescue` blocks or ones that only log and continue - Ignored return values from fallible operations - Suppressed errors: `|| true`, `2>/dev/null`, bare `except: pass`, `_ = err` #### N+1 and loop inefficiency - API calls, database queries, or file reads inside loops - Missing eager loading / batch operations (e.g., `prefetch_related`, `include`, `DataLoader`, `JOIN`, batch API calls) - Repeated expensive computations that could be hoisted out of the loop #### Race conditions - Shared mutable state accessed from async or concurrent contexts without guards - Check-then-act patterns without atomicity (TOCTOU) - Missing locks, mutexes, or atomic operations on concurrent data access #### Boundary issues - Missing input validation at trust boundaries (user input, API responses) - Unsafe type casts or assertions without runtime checks - Off-by-one errors in range, slice, or index operations #### Backwards compatibility - Renamed or removed public APIs without migration path - Changed function signatures that break existi
Changelog: Source: GitHub https://github.com/hivemoot/hivemoot-agent
No comments yet. Be the first one!