Common Performance Engineering
ASecurityDo not preemptively optimize every function. The performance standard requires a baseline and profiling before changes: measure relevant CPU, memory, latency, throughput, and I/O behavior, then identify the highest-impact bottleneck. Premature optimization spends complexity budget on code that may not matter and can introduce regressions. Use a lightweight prevention process instead: - Define SLIs/SLOs for critical paths, such as p95 latency, throughput, memory ceiling, startup time, or inter...
- 584 stars
- 0 votes
- 1 copy
- 4 views
- Added September 5, 2026
Security analysis
100/100Pro scans all 11 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-performance-engineering --agent claude-codeAre you the author of Common Performance Engineering?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-performance-engineering-9d86d526)Do not preemptively optimize every function. The performance standard requires a baseline and profiling before changes: measure relevant CPU, memory, latency, throughput, and I/O behavior, then identify the highest-impact bottleneck. Premature optimization spends complexity budget on code that may not matter and can introduce regressions.
Use a lightweight prevention process instead:
- Define SLIs/SLOs for critical paths, such as p95 latency, throughput, memory ceiling, startup time, or interaction latency.
- Add representative micro-benchmarks for genuinely performance-critical pure functions, plus load tests for service behavior under peak and stress conditions.
- Instrument production paths so regressions can be detected with CPU, memory, query count, I/O, and latency data.
- When a regression appears, reproduce it, profile it, fix the measured top bottleneck, and re-profile to prove improvement and check correctness and resource regressions.
- Keep algorithms near O(1) or O(n) on critical paths, use appropriate data structures, batch small I/O requests, cache only with bounded TTL/invalidation, and use asynchronous file/network operations. Apply memoization only to pure, expensive work where measurements justify it.
This approach still permits preventive engineering where evidence already exists—for example, enforcing query-count limits, pagination, bounded caches, cleanup of listeners/streams, or build-size budgets—but it does not justify changing all functions without a measured problem.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.