agentleFS
godhiraj-codegodhiraj-code/greenbuild-plugin/skills/performance-test-starter/SKILL.md

performance-test-starter

Skill1 starsChanged 28 days agoMITView on GitHub

Design and script a first performance test (load, stress, spike, soak) with k6, JMeter, or Locust, with SLO-based thresholds and result interpretation.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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:

    Run k6 run -e BASE_URL=https://staging.example.com load.js.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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 test starter

  1. Define the goal before writing a script: which user journey or endpoint, the expected traffic (RPS or concurrent users), and the SLOs (e.g. p95 < 500 ms, error rate < 1%). Never load-test production or third-party systems without written approval.
  2. Pick the test type: smoke (1–2 VUs), load (expected peak), stress (ramp past peak), spike, or soak (hours).
  3. k6 (JS, CLI-friendly, good in CI):
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
  stages: [{ duration: '2m', target: 50 }, { duration: '5m', target: 50 }, { duration: '1m', target: 0 }],
  thresholds: { http_req_failed: ['rate<0.01'], http_req_duration: ['p(95)<500'] },
};
export default function () {
  const res = http.get(`${__ENV.BASE_URL}/api/products`);
  check(res, { 'status 200': (r) => r.status === 200 });
  sleep(1);
}

Run k6 run -e BASE_URL=https://staging.example.com load.js. A breached threshold gives a non-zero exit code, which fails CI. 4. JMeter (GUI for building, CLI for running): jmeter -n -t plan.jmx -l results.jtl -e -o report/. Use a Thread Group with ramp-up, CSV Data Set Config for data, and Response Assertions. Never run load from the GUI. 5. Locust (Python):

from locust import HttpUser, task, between
class Shopper(HttpUser):
    wait_time = between(1, 3)
    @task
    def browse(self): self.client.get("/api/products")

Run locust -f locustfile.py --headless -u 50 -r 5 -t 5m --host https://staging.example.com --csv out. 6. Realism: use think time, varied test data, correlation of tokens, and a warm-up period. Exclude static assets unless they are the target. 7. Interpret: compare p50/p95/p99, throughput and errors against the SLOs. Find the knee point where latency climbs, and correlate with server metrics (CPU, DB, GC). Report the bottleneck hypothesis, not just the numbers.

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.