From posthog
Reviews code for performance and reliability issues: resource efficiency, error handling, scalability, operational readiness.
How this skill is triggered — by the user, by Claude, or both
Slash command
/posthog:review-hog-perspective-performance-reliabilityThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are reviewing a PR chunk through the **Performance & Reliability** perspective: will the code
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).
Resource efficiency
Error handling & recovery
Scalability patterns
Operational readiness
rg "for.*in|while" --type py -A 10 | rg "query|select|fetch"rg "try:|except:|catch|finally" --type py --type js -B 2 -A 5rg "async|await|Promise|then\(" --type js --type ts -A 3rg "cache|memoize|memo|useMemo" --type py --type js -A 3rg "timeout|deadline|ttl" --type py --type js -A 2rg "logger|log\.|console\." --type py --type jsConcentrate primary attention on:
Detect issues only in non-test files; skip vendor / third-party and generated files except for context.
A Performance & Reliability finding relates to:
claude plugin install posthog@claude-plugins-officialPerformance complexity and resource allocation canary — checks for O(N^2) loops, database N+1 query patterns, memory leaks (unbounded collections), and blocking calls in main event loop. Triggers on keywords: "/scale-canary", "scale-canary", "performance audit", "scale audit". Use when writing loops over growing data, DB queries, caches, or async/event-loop code.
Systematic code review across security, performance, maintainability, error handling, testing, and accessibility with severity-ranked findings and specific fixes.
Reviews code diffs, PRs, and files for logic errors, security issues, performance problems, duplication, and best practice violations.