review-hog-perspective-performance-reliability

Reviews pull request code for performance bottlenecks, error handling, scalability, and operational readiness.

713|118|Updated Aug 11, 2020
One-click install
npx skills add https://github.com/PostHog/posthog-foss --skill review-hog-perspective-performance-reliability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-hog-perspective-performance-reliability
Source: https://github.com/PostHog/posthog-foss/tree/main/products/review_hog/skills/review-hog-perspective-performance-reliability
Command: npx skills add https://github.com/PostHog/posthog-foss --skill review-hog-perspective-performance-reliability

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code reviews often miss performance and reliability issues that only surface in production, such as N+1 queries, swallowed errors, missing timeouts, and absent observability. This Skill applies a dedicated Performance & Reliability lens to PR chunks so these risks are caught before merge.

Core Features & Use Cases

  • Resource efficiency analysis: Detects N+1 query problems, missing database indexes, unnecessary frontend re-renders, memory leaks, and oversized bundle imports.
  • Error handling and recovery checks: Verifies try/catch coverage, retry logic, React error boundaries, and error-message quality.
  • Scalability and operational readiness review: Flags missing caching, pagination gaps, synchronous operations that should be async, and incomplete logging, metrics, timeouts, and health checks.
  • Use Case: While reviewing a PR that adds a new API endpoint, the Skill spots a database query inside a loop, a missing timeout on an external HTTP call, and absent logging on the failure path, then reports each as a severity-tagged finding.

Quick Start

Review this pull request chunk for performance and reliability issues and report findings with severity levels.

Frequently Asked Questions about review-hog-perspective-performance-reliability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review a pull request for performance issues?

Review the changed code for N+1 query patterns, missing database indexes, unnecessary re-renders, and synchronous operations that should be async. This Skill automates that pass using ripgrep searches over the PR chunk and reports findings with severity levels.

What does a performance and reliability code review check?

It checks resource efficiency, error handling and recovery, scalability patterns like caching and pagination, and operational readiness such as logging, metrics, timeouts, and health checks. Logic, security, and style concerns are handled by separate review perspectives.

How are N+1 query problems detected in code review?

N+1 problems are detected by searching for database queries or fetches inside loops, for example with ripgrep patterns matching loop constructs near query calls. The Skill flags these as performance findings, typically at must-fix or should-fix severity.

Does this review cover test files or third-party code?

No. Findings are reported only for non-test application code. Vendor, third-party, and generated files are skipped except when needed for context, keeping the review focused on production-relevant changes.

What severity levels are used for performance findings?

Findings use three levels: must fix for issues causing outages or severe degradation, should fix for noticeable performance impact or reliability risk, and consider for minor optimizations or nice-to-have improvements.