tibursocampos/agent-dev-toolkit / core/skills/performance-profile
performance-profile
VerifiedFind performance bottlenecks, set up micro-benchmarks, and optimize hot paths. Use when optimizing performance or invoking /performance-profile.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.6 KB |
| reference.md | markdown | 489 B |
| references/benchmark-optimize.md | markdown | 1.4 KB |
| references/must-not.md | markdown | 302 B |
| references/target-audit.md | markdown | 1.5 KB |
references/benchmark-optimize.md
View on GitHub## Benchmark, optimize, and handoff
### Configure benchmark
* Propose the setup for a benchmark suite:
* C#: Create a BenchmarkDotNet class under the test project.
* Python: Write a test script utilizing `timeit` or `cProfile`.
* TS/JS: Write a benchmark script utilizing Node's `perf_hooks` or `benchmark.js`.
* Wait for confirmation, then write the benchmark script/class.
### Collect baseline (before)
* Instruct the user/agent to run the benchmark script and capture the execution outputs:
* Capture Mean Time, Standard Deviation, and Allocated Bytes.
* Document the baseline metrics.
### Implement and verify optimization
* Write the optimized implementation in a separate branch or method variant (e.g. `CalculateOptimized`).
* Keep optimizations within `structure-and-quality.md` (and stack overlay) — do not trade structure/quality for speed.
* Run the benchmark again to compare:
* Verify that optimization achieves measurable improvements (e.g. 20% speedup or lower GC allocation) without regression.
* Present a comparison table:
| Variant | Mean Time | Allocated Bytes |
|---------|-----------|-----------------|
| Baseline | ... | ... |
| Optimized | ... | ... |
### Apply final changes
* Replace the old code with the validated optimized version.
* Run compiler checks and regular test suites to ensure behavior remains identical.
### Handoff
Offer committing the optimizations via `/commit`.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |