Perf

From OutThisLife/brooklyn-skills · View interactive version

Perf is an AI agent skill from the GitHub repository OutThisLife/brooklyn-skills. The general profile-driven perf loop for any language or runtime: baseline, profile, fix the real hot path, re-measure. Use for /perf, "this is slow", or optimization work.

How to use this skill

Skill file

Perf

The general performance loop. Profiling (CPU profile, flamegraph, memory

snapshot, trace) is the usual tool, but the loop is the same regardless of which

one fits.

Loop

  1. Reproduce the slow path and capture a baseline number — time, memory, FPS,

request latency, whatever matters here.

  1. Profile to find the real hot path: CPU profile / flamegraph / memory snapshot

/ trace as fits. Reuse the repo's existing profiler; don't build a parallel

harness.

  1. Read the profile, not your intuition — fix the actual hot path.
  2. Re-measure. Record before/after in the PR title/description.
  3. Ship in topical commits (pr-update), clean, keep CI green.

Live Electron / hgui

Web loading contracts

Product-grid browsing

Serverless catalog caches

Browser idle and retention

SSR responsive-image request selection

Don't

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.