Skip to content
Back to skills

Common Performance Engineering

ASecurity

Start with a baseline: measure endpoint latency (including p50/p95/p99), database query count and duration, CPU, memory, and payload size for representative users and order counts. The observed bottleneck is an N+1 query pattern. Replace per-order product lookups with a bounded batch operation: 1. Fetch the user’s orders with pagination and a stable ordering. 2. Extract the distinct product IDs from those orders. 3. Fetch all required products in one query, for example `WHERE id IN (...)`, or...

  • 549 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
developmentdatabase

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-performance-engineering --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Common Performance Engineering?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Common Performance Engineering
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-common-performance-engineering-06ff86ec/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-performance-engineering-06ff86ec)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Start with a baseline: measure endpoint latency (including p50/p95/p99), database query count and duration, CPU, memory, and payload size for representative users and order counts.

The observed bottleneck is an N+1 query pattern. Replace per-order product lookups with a bounded batch operation:

1. Fetch the user’s orders with pagination and a stable ordering.
2. Extract the distinct product IDs from those orders.
3. Fetch all required products in one query, for example `WHERE id IN (...)`, or use a bulk/data-loader layer that batches requests per request context.
4. Build an in-memory `Map<productId, Product>` and resolve each order’s product references with O(1) lookups.

Select only required columns, enforce a maximum page size, and ensure indexes support the order/user and product-ID predicates. If the same product data is reused across requests, add a cache with an explicit TTL and invalidation strategy; do not use an unbounded cache. Keep database access asynchronous and avoid serial network or filesystem work in the request path.

Re-profile after the change. Confirm query count is constant with respect to the number of orders (typically one orders query plus one products query), p95 latency and database time improve, memory remains bounded, and pagination/load tests do not regress. Add a benchmark or integration test that compares query count and latency as order count grows. Do not claim success from a single fast request without the before/after measurements.

Files in this skill

  • eval-1.baseline.md1.7 KB
  • eval-1.with-skill.md1.5 KB
  • eval-2.baseline.md1.9 KB
  • eval-2.with-skill.md1.7 KB
  • eval-3.baseline.md1.7 KB
  • eval-3.with-skill.md1.5 KB
  • trigger-1.md154 B
  • trigger-2.md168 B
  • trigger-3.md130 B
  • trigger-4.md173 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…