agentleFS
mmccallammccalla/coding-agent-skill-library/skills/performance-engineering/SKILL.md

performance-engineering

Skill4 starsChanged 5 months agoApache-2.0View on GitHub

Improves system latency and throughput using SLIs, profiling, load tests and capacity planning. Use when diagnosing slow paths, sizing capacity, or validating performance under load—not for policy-only SLOs or per-session agent budgets.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not use this skill only to set reliability policy, error budgets or release freezes — use slo-error-budget-management for policy.

    line 18
  2. Very specific:

    Do not use it for a single agent session’s token, model or context budget — use resource-aware-optimization.

    line 19
  3. Very specific:

    Do not use it only to add dashboards without a performance hypothesis — use observability-and-telemetry for instrumentation, then profile …

    line 20
  4. Very specific:

    Do not use it as a substitute for overall service ownership and resilience design — use sre-practice for operability, with performance …

    line 21
  5. Distinctive:

    Run load tests (and stress or soak tests where relevant) that reflect production concurrency, payload sizes and dependency behaviour.

    line 33
  6. Distinctive:

    Add or update performance regression checks and telemetry so regressions are visible in delivery and operations.

    line 35
  7. Distinctive:

    Do not optimise without a baseline and a performance SLI.

    line 74
  8. Distinctive:

    Do not treat SLO policy documents as proof that the system is fast enough under load.

    line 75
  9. Distinctive:

    Do not confuse agent session resource budgets with system capacity planning.

    line 76
  10. Distinctive:

    Do not rely on a single local profile run as proof of production behaviour.

    line 77
  11. Distinctive:

    Do not increase parallelism without understanding lock contention, downstream quotas and failure amplification.

    line 78
  12. Distinctive:

    Do not claim success without load-test or production evidence against the stated SLIs.

    line 79

“Common” is measured: kept by at least 6 in 10 of the 8 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

Performance Engineering

When to use

Use this skill when a system, API, pipeline, data platform or agent-serving path must meet latency or throughput goals backed by measurement. Apply it to profiling hot paths, load and stress testing, capacity planning, concurrency limits, cache and I/O tuning, and regression detection for performance SLIs. Use it when evidence must show where time is spent and whether the system sustains target load.

When not to use

  • Do not use this skill only to set reliability policy, error budgets or release freezes — use slo-error-budget-management for policy; use this skill to engineer the performance that feeds those SLIs.
  • Do not use it for a single agent session’s token, model or context budget — use resource-aware-optimization.
  • Do not use it only to add dashboards without a performance hypothesis — use observability-and-telemetry for instrumentation, then profile and load-test here.
  • Do not use it as a substitute for overall service ownership and resilience design — use sre-practice for operability, with performance engineering as a focused practice inside it.

Objective

Establish measurable latency and throughput SLIs, find bottlenecks through profiling and load tests, and size capacity so the system meets targets under realistic load with known headroom and failure behaviour.

Procedure

  1. Define user-visible performance SLIs (for example p50/p95/p99 latency, requests per second, events processed per minute, time-to-first-token for inference) and success criteria for the change.
  2. Establish a baseline under representative load and data shape; record environment, version and configuration.
  3. Profile the critical path (CPU, memory, I/O, locks, network, database, model inference) to locate dominant contributors to latency or limited throughput.
  4. Form a hypothesis and apply the smallest change likely to improve the bottleneck; avoid speculative micro-optimisations.
  5. Run load tests (and stress or soak tests where relevant) that reflect production concurrency, payload sizes and dependency behaviour.
  6. Plan capacity: peak load, headroom, autoscaling limits, queue depths and dependency quotas; document what happens when limits are hit.
  7. Add or update performance regression checks and telemetry so regressions are visible in delivery and operations.
  8. Report results against SLIs, residual risk and recommended next measurement.

Required outputs or templates

# Performance engineering report

## Targets
| SLI | Target | Measurement method |
|---|---|---|
| p95 latency | <value> | <endpoint / journey> |
| throughput | <value> | <sustained load> |

## Baseline
- Environment and version:
- Load profile:
- Observed latency / throughput:

## Profiling findings
- Hot path / bottleneck:
- Evidence (profile, trace, query plan):

## Experiments
| Change | Result vs baseline | Keep? |
|---|---|---|
| ... | ... | ... |

## Capacity
- Peak design load:
- Headroom:
- Saturation behaviour:

## Residual risk
- ...

Rules

  • Do not optimise without a baseline and a performance SLI.
  • Do not treat SLO policy documents as proof that the system is fast enough under load.
  • Do not confuse agent session resource budgets with system capacity planning.
  • Do not rely on a single local profile run as proof of production behaviour.
  • Do not increase parallelism without understanding lock contention, downstream quotas and failure amplification.
  • Do not claim success without load-test or production evidence against the stated SLIs.

Related skills

  • slo-error-budget-management
  • observability-and-telemetry
  • resource-aware-optimization
  • sre-practice

References

Verification

  • Latency and/or throughput SLIs and targets are explicit.
  • Baseline measurement exists.
  • Profiling evidence identifies the bottleneck.
  • Load or capacity tests support the conclusion.
  • Capacity headroom and saturation behaviour are stated.
  • Residual performance risk is recorded.

Download now (ZIP)

Does it work?

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

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.