Review Hog Perspective Performance Reliability
PostHogOfficialPublished by PostHog
- Skill
- Review and audit
- Software development
- MIT
- No issues found
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
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/posthog/review-hog-perspective-performance-reliability/downloadUnzip 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
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
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
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
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 5Find async operations:
rg "async|await|Promise|then\(" --type js --type ts -A 3Check caching:
rg "cache|memoize|memo|useMemo" --type py --type js -A 3Find timeouts:
rg "timeout|deadline|ttl" --type py --type js -A 2Check 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
- ATTRIBUTION.mdAdded by AutoGineer911 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md3.8 KiB
LICENSE
MIT License Copyright (c) 2025 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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