k6-load-testing

Run staged k6 load tests against HTTP APIs and gate CI on SLO thresholds.

3|2|Updated Aug 1, 2025
One-click install
npx skills add https://github.com/ClearMeasureLabs/bootcamp-palermo-workorders --skill k6-load-testing-clearmeasurelabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k6-load-testing
Source: https://github.com/ClearMeasureLabs/bootcamp-palermo-workorders/tree/main/.claude/skills/k6-load-testing
Command: npx skills add https://github.com/ClearMeasureLabs/bootcamp-palermo-workorders --skill k6-load-testing-clearmeasurelabs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the lack of performance characterization in APIs by providing a rigorous, threshold-gated load testing pipeline that distinguishes between system failures and designed rate-limiting back-pressure.

Core Features & Use Cases

  • Staged Load Profiles: Execute smoke, average, stress, and spike tests using open-model arrival-rate executors to ensure accurate capacity and latency measurements.
  • SLO-Driven Gating: Automatically fail CI pipelines when latency or error thresholds are breached, ensuring performance regressions are caught before deployment.
  • Use Case: Use this skill to establish a latency baseline for a new API endpoint and verify that the system maintains its p95 latency targets under a simulated 200 RPS burst.

Quick Start

Run the k6 load testing pipeline against the local application to generate a performance report with smoke and average load profiles.

Frequently Asked Questions about k6-load-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate API performance against SLOs using k6?

Validate API performance against SLOs using k6 by executing staged load profiles to measure latency, throughput, and error rates. Threshold-gated CI integration automatically fails pipelines when defined performance targets are breached.

What is the difference between smoke, stress, and spike load testing scenarios?

Smoke, stress, and spike load testing scenarios represent different staged testing profiles that measure system capacity under normal, elevated, and sudden burst workloads. These open-model arrival-rate executors ensure accurate latency measurements.

How do I automate load testing in CI to catch performance regressions?

Automate load testing in CI by configuring threshold-gated k6 pipelines that automatically fail deployments when latency or error rate thresholds are breached. This ensures performance regressions are caught before deployment.

Does k6 load testing handle rate-limited back-pressure differently from system failures?

k6 load testing explicitly handles rate-limited back-pressure differently from actual system failures by providing a rigorous, threshold-gated pipeline. This distinction prevents designed rate-limiting from causing false performance test failures.

Can I simulate open-model workloads with k6 arrival-rate executors?

Simulate open-model workloads with k6 arrival-rate executors to ensure accurate capacity and latency measurements. This approach supports staged load profiles including smoke, average, stress, and spike testing scenarios.

Do I need database isolation for local API performance testing?

Database isolation is required for local API performance testing using a throwaway environment setup. This ensures accurate threshold-gated CI integration and prevents data pollution during load simulation.