agentleFS
umararshad4umararshad4/honey-stack/skills/perf/SKILL.md

perf

Skill4 starsChanged 15 days agoMITView on GitHub

Performance engineering: profile to find the real bottleneck, fix the hot path, add caching, and load-test with before/after numbers. Use when something is slow, costs too much, or misses an SLO. Measure first.

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before reporting a measured speedup or choosing between implementations, read the benchmark checklist.

    line 14
  2. Distinctive:

    Premature when: no measurement, no user-facing problem, no SLO breach, not a hot path.

    line 23

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

perf

Make it faster, but only where it's actually slow. The bottleneck is almost never where intuition says — measure, fix the hot path, prove the win.

Before reporting a measured speedup or choosing between implementations, read the benchmark checklist. For stuttering application animations, read motion performance and record frames/long tasks on the target device; source inspection alone cannot establish smoothness.

Discipline

  1. Baseline first — numbers + environment + input, before any change.
  2. Profile, don't guess. Find the real bottleneck (references/profiling.md has the tool per stack).
  3. Amdahl's law: a path that's 5% of total time caps your gain at 5%. Optimize the top of the profile only.
  4. Verify with before/after on the same workload; keep the change only if the delta beats noise. Report p50/p95/p99, not the mean.
  5. Stop at the target. Hit the SLO, document the baseline and win, don't chase diminishing returns.

Premature when: no measurement, no user-facing problem, no SLO breach, not a hot path. Correctness and clarity first.

Find the bottleneck

  • USE (resources): for CPU/memory/disk/network/DB pool check Utilization, Saturation (queue/wait), Errors.
  • RED (services): per endpoint track Rate, Errors, Duration distribution.
  • RED shows the symptom; USE finds the saturated resource behind it. (Both reappear in observability.)

Profiling

Pick CPU vs memory vs allocation profiling to match the symptom (high CPU vs OOM vs GC pauses). Tools per stack — Node (--cpu-prof/--heap-prof, 0x, clinic), Python (py-spy attaches to a live process, cProfile, Scalene, memray), Go (pprof, go tool trace), JVM (async-profiler), Linux (perf + flamegraphs, eBPF, off-CPU analysis): references/profiling.md.

Common backend bottlenecks

N+1 and slow queries (usually #1 — see the database skill), missing caching, serialization cost, synchronous/blocking I/O on the event loop, O(n²) algorithms, unbounded concurrency, GC pressure / memory leaks, serverless cold starts. Fixes in references/bottlenecks.md.

Caching

Layers closest-first: CDN/edge → HTTP cache headers (Cache-Control, ETag, stale-while-revalidate) → in-process LRU (bounded) → Redis/memcached → DB (materialized views). Invalidate by TTL + jitter, write-through, or event/tag; protect against stampede with single-flight. Never cache secrets/PII in a shared cache, or anything where staleness causes a correctness bug (balances, inventory). references/caching.md.

Load & stress testing

Tools: k6 (default), Gatling, Locust, wrk2, vegeta. Types: smoke → load → stress → spike → soak (hours, catches leaks). Define the SLO before testing (e.g. "p99 < 300ms at 2k rps"). Averages lie — one slow request per thousand ruins p99 but barely moves the mean; use coordinated-omission-aware tools (wrk2, k6). Ramp to the knee (latency rises sharply / throughput plateaus) to find capacity. references/load-testing.md.

Confirm before (never on your own)

  • Load/stress testing anything live or shared — it can take down prod and dependencies. Use a dedicated/staging env, coordinate with on-call, never point a stress test at a third-party API.
  • Profiling or EXPLAIN ANALYZE that adds prod overhead or mutates data.

Done when: the bottleneck is identified from a profile, the fix is on the hot path, and before/after numbers (at p95/p99) show the win against the target.

Download now (ZIP)

  • Other versions20 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 20

    1. alamenai/terrae★ 245same name
    2. OutThisLife/brooklyn-skills★ 207same name
    3. zeuikli/claude-code-workspace★ 155same name
    4. microsoft/webui★ 100same name
    5. epicsagas/epic-harness★ 22same name
    6. jmylchreest/aide★ 19same name
    7. QAInsights/perf-skills★ 16same name
    8. fullymiddleaged/Clawness★ 4same name
    9. JustinK33/foreman★ 3same name
    10. wangqiqi/cursor-ai★ 3same name

    10 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use scaffold, test and 3 more.

    Other files people use alongside this one.

    Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
    • MicrosoftSkill

      scaffold

      Also in 3 projects that use this

    • Microsoft AzureSkill

      test

      Also in 6 projects that use this

    • GitHubSkill

      refactor

      Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

      Also in 6 projects that use this

    • Microsoft AzureSkill

      design

      Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.

      Also in 5 projects that use this

    • SentrySkill

      onboard

      Onboard a service to sentry-options. Use when integrating a new service, creating schemas, or setting up the multi-repo sentry-options workflow.

      Also in 3 projects that use this

  • In this repository39 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.