code-review-performance
Provides performance and latency review standards for backend engineering.
Install
mkdir -p .claude/skills/code-review-performance && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12926" && unzip -o skill.zip -d .claude/skills/code-review-performance && rm skill.zipInstalls to .claude/skills/code-review-performance
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Performance review standards for backend services. Use when reviewing database, API, concurrency, memory, and production latency risks.Key capabilities
- →Review API performance for latency and payload size
- →Analyze database queries for proper indexing and pagination
- →Optimize application loops and data structures
- →Review concurrency mechanisms like thread pools and locks
- →Check memory usage for large object retention and cache limits
- →Evaluate external integrations for timeouts and circuit breakers
How it works
The skill applies a set of predefined guidelines and red flags across various backend components like API, database, application, and concurrency to identify performance issues.
Inputs & outputs
When to use code-review-performance
- →Reviewing backend pull requests
- →Checking database index usage
- →Validating api latency
About this skill
Code Review Performance Guidelines
This Codex skill adapts backend-engineer/code-review/performance-review.md into Codex skill guidance while preserving the source rules for production fintech development.
When to Use This Skill
- Use when generating backend service code.
- Use when reviewing backend pull requests.
- Use when enforcing fintech-safe production rules.
Source Guidelines
Performance Review Guidelines
Objective
Ensure backend systems are efficient, scalable, stable, and cost-effective under real production load.
Review Priority Order
- Correctness under load
- Latency
- Throughput
- Resource usage
- Scalability
- Cost efficiency
- Maintainability
1. API Performance Review
Must Check
- P95 / P99 latency acceptable
- Timeout values defined
- No unnecessary synchronous chaining
- Request/response payload size reasonable
- Compression enabled if needed
- Pagination for list APIs
Red Flags
- Sequential remote calls
- Large payload responses
- Chatty APIs
- Blocking long-running requests
2. Database Performance Review
Must Check
- Slow queries analyzed
- Proper indexes exist
- Pagination used
- Avoid SELECT *
- Join count reasonable
- Query plan reviewed for critical flows
- Batch write/read where possible
Red Flags
- Full table scan
- N+1 query problem
- Missing index on search columns
- Row-by-row update loops
3. Application Performance Review
Must Check
- Expensive loops optimized
- Avoid repeated object creation in hot path
- Serialization cost reviewed
- Reflection-heavy code minimized
- Proper data structures selected
- String concatenation optimized in loops
Example
Use HashMap lookup instead of nested loops when possible.
4. Concurrency Review
Must Check
- Thread pool bounded
- Queue size controlled
- Locks minimized
- Deadlock risk reviewed
- Shared mutable state protected
- Parallelism justified
Red Flags
- new Thread() in request flow
- Unbounded executor
- Global synchronized bottleneck
- Parallel stream on blocking I/O
5. Memory Review
Must Check
- No large object retention
- Streams/resources closed
- Cache size limited
- Collections pre-sized when useful
- Large response objects avoided
- Heap pressure reviewed
Red Flags
- Static map growing forever
- Huge in-memory lists
- Loading full table into memory
6. Cache Review
Must Check
- Correct cache key strategy
- TTL defined
- Invalidation plan exists
- Hot data identified
- Cache stampede considered
- Fallback if cache unavailable
Red Flags
- Cache never expires
- Inconsistent stale data risk
- Cache sensitive data without controls
7. External Integration Review
Must Check
- Timeout configured
- Retry with backoff
- Circuit breaker where needed
- Bulkhead isolation
- Connection pooling enabled
- Response size reasonable
Red Flags
- Infinite wait on HTTP call
- Retry storm
- Shared pool exhaustion
8. Kafka / Async Performance Review
Must Check
- Consumer concurrency tuned
- Batch consume strategy reviewed
- Producer linger/batch config appropriate
- Partition count sufficient
- Lag monitoring enabled
- Backpressure considered
Red Flags
- Single consumer for heavy topic
- Large message payloads
- Blocking DB call per message without batching
9. Fintech / Banking Review
Must Check
- Performance does not break consistency
- Retry does not duplicate money movement
- Ledger writes remain atomic
- Reconciliation jobs scalable
- Peak-hour traffic tested
Golden Rule
Never trade financial correctness for speed.
10. Observability Review
Must Check
- Metrics for latency, error, throughput
- Slow query logs enabled
- GC metrics visible
- CPU / memory dashboards exist
- Tracing for critical flows
11. Load Testing Review
Must Check
- Baseline throughput measured
- Stress test executed
- Spike test executed
- Soak test executed
- Failure recovery tested
- Capacity limit documented
Common Targets
- P95 latency
- P99 latency
- Error rate
- CPU usage
- Memory usage
- DB connection usage
12. Code Review Questions
- Can this endpoint handle 10x traffic?
- What is the slowest dependency?
- What happens under retry storm?
- Can memory usage grow unbounded?
- Where is the bottleneck?
- Is scaling horizontal or vertical?
13. Blockers
- Critical slow query unresolved
- No timeout on external calls
- Memory leak risk obvious
- Load test failed badly
- Throughput below business need
- CPU saturation under normal load
14. Optimization Order
- Measure first
- Fix biggest bottleneck
- Re-test
- Compare metrics
- Keep readable code
Golden Rule
Do not optimize guesses. Optimize measured bottlenecks.
Mandatory For AI Code Generation
- Apply every MUST, MUST NOT, CRITICAL RULE, Golden Rule, and AI generation rule from the source guideline above.
- Keep Clean Architecture dependency direction intact: outer layers may depend inward, inner layers must not depend on frameworks or adapters.
- Preserve layer boundaries, naming conventions, validation, security, observability, and testing expectations from the source guideline.
- Treat fintech safety rules as mandatory: never expose secrets, tokens, credentials, personal data, or sensitive financial data in logs, errors, analytics, or tests.
- Generate production-ready Java/Spring Boot code with explicit error handling, clear names, focused responsibilities, and tests appropriate to the risk of the change.
- Do not bypass security, validation, transaction consistency, idempotency, tracing, or review requirements described above.
- Use BigDecimal for money, java.time for dates/times, and avoid legacy Java APIs unless explicitly required.
When not to use it
- →When the primary goal is to generate backend service code
- →When enforcing fintech-safe production rules
- →When reviewing backend pull requests
Limitations
- →The skill does not cover async/await and Task-based patterns
- →The skill does not cover producer/consumer with Channel<T>
- →The skill does not cover naming and style conventions
How it compares
This workflow systematically checks specific performance criteria and red flags for backend services, unlike a manual review that might miss detailed checks.
Compared to similar skills
code-review-performance side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| code-review-performance (this skill) | 0 | 3mo | No flags | Advanced |
| github-code-review | 13 | 2mo | Review | Advanced |
| java-pro | 34 | 4mo | No flags | Advanced |
| bullmq-specialist | 25 | 6mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by SilverPham08091998
View all by SilverPham08091998 →You might also like
github-code-review
ruvnet
Comprehensive GitHub code review with AI-powered swarm coordination
java-pro
sickn33
Master Java 21+ with modern features like virtual threads, pattern matching, and Spring Boot 3.x. Expert in the latest Java ecosystem including GraalVM, Project Loom, and cloud-native patterns. Use PROACTIVELY for Java development, microservices architecture, or performance optimization.
bullmq-specialist
davila7
BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications. Use when: bullmq, bull queue, redis queue, background job, job queue.
reviewing-nextjs-16-patterns
djankies
Review code for Next.js 16 compliance - security patterns, caching, breaking changes. Use when reviewing Next.js code, preparing for migration, or auditing for violations.
code-coverage-with-gcov
gadievron
Add gcov code coverage instrumentation to C/C++ projects
angular-best-practices
sickn33
Angular performance optimization and best practices guide. Use when writing, reviewing, or refactoring Angular code for optimal performance, bundle size, and rendering efficiency.