Skip to content
Development
Skill

/review-hog-perspective-performance-reliability

Checks resource use, error recovery, and scaling. Reports performance and reliability issues only.

From plugin
ai-plugin
95180 skills1 agent3 commands3 hooks
+1

Claude Code

$ npx -y skills add PostHog/ai-plugin --skill review-hog-perspective-performance-reliability --agent claude-code

SKILL.md

review-hog-perspective-performance-reliability.SKILL.md
name: review-hog-perspective-performance-reliability
description: >
  Checks resource use, error recovery, and scaling. Reports performance and reliability issues only.
metadata:
  owner_team: review_hog
  perspective: performance_reliability

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
Read more
@posthog
Ships withai-plugin

Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.

95180 skills1 agent1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
95
Star history of PostHog/ai-plugin on GitHub, a chart by star-history.com

Other skills on ai-plugin.

analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

@posthog@posthogInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about review-hog-perspective-performance-reliability.

Which coding agents can use review-hog-perspective-performance-reliability?
review-hog-perspective-performance-reliability installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.