1
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill ntaksh42/agents --skill performance-analyzer- SKILL.md3.7 KB
Overview
This skill analyzes code performance to detect bottlenecks and provide concrete optimization suggestions for algorithms, queries, and resource usage. It focuses on execution time, memory usage, algorithmic complexity, and common anti-patterns to produce actionable reports. Use it to prioritize fixes and estimate performance gains before and after changes.
How this skill works
The analyzer inspects code paths, query patterns, and resource allocations to identify hotspots and classify impact (Critical, High, Medium). It detects algorithmic complexity issues (Big O), N+1 query patterns, memory leaks, caching opportunities, and inefficient async or rendering flows. Results are delivered as a prioritized report with code-level examples and specific remediation steps.
When to use it
- Investigating slow endpoints or pages with high latency
- Reducing CPU or memory usage in backend or frontend services
- Before deploying major features to estimate performance impact
- When profiling reveals hotspots but root cause is unclear
- Optimizing database access patterns and reducing query counts
Best practices
- Measure before and after: rely on profilers and real metrics, not guesses
- Target highest-impact hotspots first to maximize ROI
- Prefer algorithmic improvements (lower Big O) over micro-optimizations
- Balance performance with readability; document trade-offs
- Introduce automated monitoring (APM) to catch regressions early
Example use cases
- Detect and fix N+1 queries in an API by converting multiple queries into batched or joined queries
- Replace O(n²) routines with O(n) or O(n log n) implementations to handle large datasets
- Find and close memory leaks caused by unreleased event listeners or long-lived closures
- Recommend caching strategies (in-memory, Redis, CDN) for expensive computations or repeated queries
- Optimize frontend bundle size via tree shaking and code splitting; suggest virtualization for long lists
FAQ
It focuses on common patterns rather than a single language; algorithm complexity, query patterns, and resource usage advice apply across languages. Language-specific建议 include JS/Node, Python, and SQL query patterns.
How are severity levels determined?
Severity is based on estimated impact: frequency of execution, dataset size, resource consumption, and potential user-facing latency. The report quantifies estimated improvements where possible.