Skip to content
Back to skills

Load Testing

ASecurity

Designs a k6 load test with realistic traffic, explicit thresholds and a clear pass or fail result, and reads the numbers back to you.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentstesting

Works with

  • cli

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill load-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Load Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Load Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-load-testing/badge)](https://www.skillsdirectory.com/skills/workspace-templates-load-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: load-testing
description: Designs a k6 load test with realistic traffic, explicit thresholds and a clear pass or fail result, and reads the numbers back to you.
---

# Load testing with k6

A load test needs a question, a traffic model and thresholds written down first.

## Steps

1. Ask or infer: which endpoints, expected peak requests per second, and the targets (for example p95 under 400 ms, errors under 1 percent). Never test production or a shared environment without explicit approval; use a staging copy with realistic data volume.
2. Build the traffic mix from access logs or analytics: weights per endpoint, think time between steps, and a login or token flow that is done once per virtual user, not per request.
3. Write the script in `tests/load/<name>.js`:
   - `scenarios` using `ramping-arrival-rate` so the load is a request rate, not a user count
   - stages: warm up, ramp, hold at peak for at least five minutes, ramp down
   - `thresholds` for `http_req_duration{p(95)}`, `http_req_failed` and per-endpoint tags
   - `check()` on status and a field of the body, since a fast 500 is not a pass
4. Run a short smoke pass (1 virtual user, 30 seconds) to validate the script before the real run.
5. Run the full test. Watch for the knee: where latency climbs faster than load.
6. Repeat once for stability, then a stress run above peak to find the breaking point.

## Rules

- Never hard-code secrets in the script; read from `__ENV`.
- Do not include warm-up in thresholds.
- Never point it at third-party services.

## Report

Pass or fail per threshold, p50, p95 and p99, error rate, the first bottleneck seen, and the safe rate you recommend.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.