Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Forge Performance Profiling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-forge-performance-profiling)
---
name: forge-performance-profiling
description: Measure, profile and optimize with before/after evidence
---
<!-- Generated from catalog/skills/performance-profiling/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->
# Performance Profiling
1. **Reproduce:** turn the slow path into a repeatable benchmark or load script with fixed inputs. Record the baseline (median and p95, several runs).
2. **Profile, don't guess:** use the right tool for the resource. That means a CPU profiler (`node --cpu-prof`, `py-spy`, `pprof`), a heap snapshot for memory, query logs and `EXPLAIN ANALYZE` for the database, and the network waterfall for the frontend.
3. **Fix the biggest measured hotspot only.** Typical wins: N+1 queries, missing indexes, repeated work in loops, synchronous I/O on hot paths, oversized payloads and bundles.
4. **Re-measure** with the same method and inputs. Report the baseline, the result and the variance. Revert any change that doesn't move the number.
5. Add a regression guard where it is cheap: a benchmark in CI, a query-count assertion, or a bundle-size budget.
## Verify
The before/after numbers come from the same script, and the tests still pass. Claim a speed-up only when it is larger than the run-to-run variance.