agentleFS
QadrillionQadrillion/qadrillion-agent/.cursor/skills/qa-performance/SKILL.md

qa-performance

Skill3 starsChanged 2 months agoMITView on GitHub

Author and execute bounded performance checks with an explicit workload, baseline, thresholds and diagnosis. Apply when latency, throughput, capacity or resource regressions are in scope.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Use through qa as a risk overlay.

    line 8
  2. Distinctive:

    Use an existing team harness when present.

    line 9
  3. Distinctive:

    Write the performance question before generating traffic.

    line 14
  4. Distinctive:

    Verify a single request's business result and cleanup before scaling.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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 execution

Use through qa as a risk overlay; read .cursor/rules/test-automation.mdc. Use an existing team harness when present. A timing assertion, a browser audit and a load test answer different questions; choose the one the decision needs.

Define the experiment

Write the performance question before generating traffic. Record operation mix, dataset, arrival/concurrency model, connection behavior, cache state, warmup, measurement duration, sample count and observation boundary. Identify client, network and target/build/configuration; compare equivalent environments.

Choose thresholds from requirements or an explicitly declared diagnostic budget, never from whichever measurement just passed. Define successful-content checks, latency percentiles, error/timeout limits and required completed work. Separate threshold failure from an emergency stop. A baseline supports relative change; it does not establish that the baseline itself is acceptable.

Set maximum request count, concurrency/rate, duration, per-request timeout and permitted resource footprint. Define stop signals and who/what observes them: unexpected identity, sustained error rise, saturation, fixture growth or loss of telemetry needed for safe execution. Use only the task's authorized isolated target; a production-like label is not target verification.

Author and run

Verify a single request's business result and cleanup before scaling. Make the harness fail when a threshold fails; logging a check failure while exiting zero is insufficient. Record scheduled, attempted, completed, errored and interrupted work; generator inability to achieve the intended workload is a coverage gap.

For a closed workload, fixed workers wait for responses before sending more; latency growth therefore reduces offered traffic. Use an open arrival model when the question requires arrivals independent of response time, and observe dropped work. A sequential probe is useful for local response regressions but cannot establish capacity or behavior under sustained arrivals.

Execute the declared warmup and measured phase, keeping their samples distinct. Collect individual samples or suitable histograms, error details, throughput and tail latency. Include timeout/error counts even when percentiles describe only successful responses. Explain the population and quantile method. Small samples and short runs limit tail and stability claims; a p99 from a handful of requests does not provide a stable estimate. Retain the first failing experiment.

Diagnose against the baseline

Compare the same workload on baseline and candidate, separating cold/warm cache and successful/error latency. Check achieved workload and generator resource limits before blaming the target. Correlate timestamps with utilization, saturation, errors and traces for the critical path where available.

Form one bottleneck hypothesis, change one relevant factor and measure its predicted effect. Report unavailable telemetry as unknown. A fix needs a new linked measurement with unchanged acceptance thresholds, not an assertion that the code looks faster. Broader experiments need a revised workload and limits.

Maintain

Version the workload, dataset seed and thresholds together; retain comparable baseline artifacts with build/config identity. Change thresholds for an approved requirement or experimental design change, not to hide a regression. Keep short regression probes separate from sustained load/soak exercises and document what CI hardware variance prevents them from deciding.

For this repository's bounded local HTTP helper, read the measurement recipe. For an existing k6 project, read workload and threshold adaptation; no tool migration is required. Browser rendering and mobile startup/frame/resource checks use their native measurement boundaries rather than treating HTTP time as total UX time.

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.