Generated banner for Review Hog Perspective Performance Reliability
Generated logo for Review Hog Perspective Performance Reliability

Review Hog Perspective Performance Reliability

PostHogOfficialPublished by PostHog

  • Skill
  • Review and audit
  • Software development
  • MIT
  • No issues found

From the author

Checks resource use, error recovery, and scaling. Reports performance and reliability issues only.
— the description by PostHog

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured framework for reviewing code changes specifically through the lens of performance and reliability. It guides the user to examine resource efficiency, error recovery mechanisms, scalability patterns, and operational readiness. By focusing on these specific areas, the skill helps identify potential production issues such as N+1 queries, missing indexes, inadequate logging, and resource exhaustion risks.

What it does

  • Analyzes code for resource efficiency including database query optimization and memory usage.
  • Evaluates error handling and recovery strategies to ensure resilience.
  • Identifies scalability limitations and missing caching opportunities.
  • Checks for operational readiness such as logging completeness and timeout configurations.
  • Provides specific search patterns to locate potential performance and reliability bottlenecks.
  • Categorizes findings by severity to prioritize fixes.

When to use it

  • During the code review process for pull requests.
  • When assessing the impact of new code on system performance and stability.
  • When auditing existing codebases for potential reliability or scalability issues.
  • When verifying that new features include necessary observability and error handling.

Advantages

  • Provides a dedicated, focused perspective that complements other review types.
  • Standardizes the criteria for evaluating performance and reliability.
  • Helps prevent common performance pitfalls like N+1 queries or missing indexes.
  • Encourages consistent operational practices across the codebase.

Usage examples

“Review this pull request for performance and reliability issues.”
The agent examines the code for resource inefficiencies, error handling gaps, and scalability risks, providing a list of findings categorized by severity.
“Check this database query file for potential bottlenecks.”
The agent identifies potential N+1 query problems or missing indexes based on the provided investigation criteria.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/posthog/review-hog-perspective-performance-reliability/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip review-hog-perspective-performance-reliability.zip -d .agents/skills

Documentation by PostHog

Review perspective: Performance & Reliability

You are reviewing a PR chunk through the Performance & Reliability perspective: will the code perform well and stay reliable in production? Concentrate on resource efficiency, error handling and recovery, scalability patterns, and operational readiness.

This is one of several independent perspectives reviewing the same chunk in parallel — logic and security are covered elsewhere. Stay in your lane, and report every performance or reliability issue you find without worrying about what another perspective might also report (overlap is resolved later by a separate deduplication step).

Primary investigation areas

  1. Resource efficiency

    • Identify N+1 query problems

    • Check for missing database indexes

    • Find unnecessary re-renders (frontend)

    • Look for memory leaks

    • Check bundle sizes and imports

  2. Error handling & recovery

    • Verify try / catch blocks are present where needed

    • Check for swallowed errors

    • Validate retry logic for failures

    • Ensure error boundaries (React)

    • Check error-message quality

  3. Scalability patterns

    • Look for missing caching opportunities

    • Check pagination implementation

    • Find synchronous operations that should be async

    • Identify resource-pool exhaustion risks

    • Verify rate limiting where needed

  4. Operational readiness

    • Check logging completeness

    • Verify metrics / monitoring hooks

    • Validate timeout configurations

    • Ensure health-check coverage

    • Check for cleanup handlers

Investigation commands

  • Find queries in loops: rg "for.*in|while" --type py -A 10 | rg "query|select|fetch"

  • Check error handling: rg "try:|except:|catch|finally" --type py --type js -B 2 -A 5

  • Find async operations: rg "async|await|Promise|then\(" --type js --type ts -A 3

  • Check caching: rg "cache|memoize|memo|useMemo" --type py --type js -A 3

  • Find timeouts: rg "timeout|deadline|ttl" --type py --type js -A 2

  • Check logging: rg "logger|log\.|console\." --type py --type js

Where to focus

Concentrate primary attention on:

  • Core application code with performance implications

  • Database query files and ORM usage

  • API endpoints and request handlers

  • Frontend components with rendering logic

  • Background job processors and async tasks

  • Caching implementations

  • File I/O and network operations

  • Configuration / build files (timeout, limit, and bundle-optimization settings)

Detect issues only in non-test files; skip vendor / third-party and generated files except for context.

What to leave to other perspectives

  • Logic and correctness errors → Logic & Correctness

  • Security vulnerabilities and API-contract changes → Contracts & Security

  • Code style or formatting → not a PostHog Review concern

Key questions

  • Will this code scale under load?

  • Are errors handled gracefully with proper recovery?

  • Is there sufficient observability (logs, metrics)?

  • Are resources used efficiently?

  • Are there potential bottlenecks or performance cliffs?

  • Is the system resilient to failures?

What a valid finding looks like

A Performance & Reliability finding relates to:

  • Performance bottlenecks (N+1, missing indexes, etc.)

  • Missing error handling or recovery

  • Scalability limitations

  • Resource inefficiencies

  • Insufficient observability

  • Missing operational safeguards

  • Reliability concerns

Severity guide
  • Must fix: will cause production outages or severe degradation

  • Should fix: noticeable performance impact or reliability risk

  • Consider: minor optimizations or nice-to-have improvements

Files

SKILL.md

Review perspective: Performance & Reliability

You are reviewing a PR chunk through the Performance & Reliability perspective: will the code perform well and stay reliable in production? Concentrate on resource efficiency, error handling and recovery, scalability patterns, and operational readiness.

This is one of several independent perspectives reviewing the same chunk in parallel — logic and security are covered elsewhere. Stay in your lane, and report every performance or reliability issue you find without worrying about what another perspective might also report (overlap is resolved later by a separate deduplication step).

Primary investigation areas

  1. Resource efficiency

    • Identify N+1 query problems

    • Check for missing database indexes

    • Find unnecessary re-renders (frontend)

    • Look for memory leaks

    • Check bundle sizes and imports

  2. Error handling & recovery

    • Verify try / catch blocks are present where needed

    • Check for swallowed errors

    • Validate retry logic for failures

    • Ensure error boundaries (React)

    • Check error-message quality

  3. Scalability patterns

    • Look for missing caching opportunities

    • Check pagination implementation

    • Find synchronous operations that should be async

    • Identify resource-pool exhaustion risks

    • Verify rate limiting where needed

  4. Operational readiness

    • Check logging completeness

    • Verify metrics / monitoring hooks

    • Validate timeout configurations

    • Ensure health-check coverage

    • Check for cleanup handlers

Investigation commands

  • Find queries in loops: rg "for.*in|while" --type py -A 10 | rg "query|select|fetch"

  • Check error handling: rg "try:|except:|catch|finally" --type py --type js -B 2 -A 5

  • Find async operations: rg "async|await|Promise|then\(" --type js --type ts -A 3

  • Check caching: rg "cache|memoize|memo|useMemo" --type py --type js -A 3

  • Find timeouts: rg "timeout|deadline|ttl" --type py --type js -A 2

  • Check logging: rg "logger|log\.|console\." --type py --type js

Where to focus

Concentrate primary attention on:

  • Core application code with performance implications

  • Database query files and ORM usage

  • API endpoints and request handlers

  • Frontend components with rendering logic

  • Background job processors and async tasks

  • Caching implementations

  • File I/O and network operations

  • Configuration / build files (timeout, limit, and bundle-optimization settings)

Detect issues only in non-test files; skip vendor / third-party and generated files except for context.

What to leave to other perspectives

  • Logic and correctness errors → Logic & Correctness

  • Security vulnerabilities and API-contract changes → Contracts & Security

  • Code style or formatting → not a PostHog Review concern

Key questions

  • Will this code scale under load?

  • Are errors handled gracefully with proper recovery?

  • Is there sufficient observability (logs, metrics)?

  • Are resources used efficiently?

  • Are there potential bottlenecks or performance cliffs?

  • Is the system resilient to failures?

What a valid finding looks like

A Performance & Reliability finding relates to:

  • Performance bottlenecks (N+1, missing indexes, etc.)

  • Missing error handling or recovery

  • Scalability limitations

  • Resource inefficiencies

  • Insufficient observability

  • Missing operational safeguards

  • Reliability concerns

Severity guide
  • Must fix: will cause production outages or severe degradation

  • Should fix: noticeable performance impact or reliability risk

  • Consider: minor optimizations or nice-to-have improvements

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
PostHog
Publisher
PostHog (Official)
Source
PostHog/skills · skills/omnibus/review-hog-perspective-performance-reliability · commit a5d30e7
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by PostHog.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download review-hog-perspective-performance-reliability.zip