java/src/main/resources/targets/claude/skills/core/review/x-review-perf/SKILL.md
Performance specialist review: validates N+1 queries, connection pools, async patterns, pagination, caching, timeouts, circuit breakers, and resource cleanup.
npx skillsauth add edercnj/ia-dev-environment x-review-perfInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review code changes for performance best practices: N+1 query detection, connection pool sizing, async patterns, pagination on collections, caching strategy, timeout configuration, circuit breaker usage, thread safety, resource cleanup, lazy loading, batch operations, and index usage.
/x-review-perf 42 -- review PR #42 for performance/x-review-perf src/main/java/com/example/repository/ -- review specific paths/x-review-perf -- review all current changes| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| target | String | No | (current changes) | PR number or file paths to review |
| Pack | Files | Purpose |
|------|-------|---------|
| resilience | knowledge/resilience/index.md | Circuit breaker, rate limiting, timeout, retry, bulkhead patterns |
Each item scores 0 (missing), 1 (partial), or 2 (fully compliant).
| # | Item | Score | |---|------|-------| | PERF-01 | No N+1 queries (eager fetching or batch loading where needed) | /2 | | PERF-02 | Connection pool sized appropriately for expected load | /2 |
| # | Item | Score | |---|------|-------| | PERF-03 | Async processing where applicable (non-blocking I/O) | /2 | | PERF-09 | Thread safety verified (no shared mutable state without synchronization) | /2 |
| # | Item | Score | |---|------|-------| | PERF-04 | Pagination on collection endpoints (no unbounded result sets) | /2 | | PERF-05 | Caching strategy defined for frequently accessed data | /2 | | PERF-06 | No unbounded lists in memory (streams or pagination for large datasets) | /2 |
| # | Item | Score | |---|------|-------| | PERF-07 | Timeout configured on all external calls (HTTP, DB, message broker) | /2 | | PERF-08 | Circuit breaker on external service calls | /2 |
| # | Item | Score | |---|------|-------| | PERF-10 | Resource cleanup in finally/try-with-resources (connections, streams, files) | /2 | | PERF-11 | Lazy loading for expensive initializations | /2 | | PERF-12 | Batch operations for bulk data processing (not row-by-row) | /2 | | PERF-13 | Database indexes used for queried columns | /2 |
Read the resilience knowledge pack:
knowledge/resilience/index.mdDetermine scope: PR diff or specified paths. Focus on repository, service, and adapter layers.
Scan for N+1 patterns, missing indexes, unbounded queries.
Verify timeout, circuit breaker, and retry configurations on external calls.
Verify proper resource cleanup, connection pool configuration, and batch operations.
Check for thread safety issues, shared mutable state, and proper synchronization.
Produce the scored report.
ENGINEER: Performance
STORY: [story-id or change description]
SCORE: XX/26
STATUS: PASS | FAIL | PARTIAL
### PASSED
- [PERF-XX] [Item description]
### FAILED
- [PERF-XX] [Item description]
- Finding: [file:line] [issue description]
- Fix: [remediation guidance]
### PARTIAL
- [PERF-XX] [Item description]
- Finding: [partial compliance details]
| Scenario | Action | |----------|--------| | No repository/service code found | Report INFO: no performance-relevant code discovered | | No external calls detected | Skip PERF-07, PERF-08 and note N/A | | No database queries detected | Skip PERF-01, PERF-02, PERF-13 and note N/A |
testing
Scaffolds a Helidon SE/MP service with routing, health, config, Dockerfile, and tests.
tools
Generates a Picocli @Command with subcommands, options, converters, and unit tests.
testing
Scaffolds a Micronaut service with @Controller, DI, health, Dockerfile, and tests.
testing
Scaffolds a Helidon SE/MP service with routing, health, config, Dockerfile, and tests.