k6

Create k6 load test scripts with HTTP, WebSocket, and browser scenarios.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/1k-off/umbraco-observability-playground --skill k6-1k-off
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k6
Source: https://github.com/1k-off/umbraco-observability-playground/tree/main/.agents/skills/k6
Command: npx skills add https://github.com/1k-off/umbraco-observability-playground --skill k6-1k-off

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

k6 performance and load testing helps you measure system behavior under real traffic so you can catch slow responses, rising error rates, and bottlenecks before production.

Core Features & Use Cases

  • Test scripts (JavaScript/TypeScript): Build repeatable load tests that simulate real user workflows using HTTP, WebSocket, and even browser-based scenarios.
  • Quality gates (checks & thresholds): Define pass/fail criteria like latency percentiles and error-rate limits to prevent regressions.
  • Scenarios & executors: Choose the right load shape (smoke, load, stress, spike, soak, breakpoint) to validate reliability and capacity.
  • CI/CD and k6 Cloud: Run tests locally or stream results to Grafana Cloud k6 for team visibility and automation.

Key example use case

Prove that observability signals correlate with system behavior by designing a k6 scenario that increases load and then validating latency, failure rate, and custom metrics across the test window.

Quick Start

Tell me to create a k6 script that ramps from 0 to 100 virtual users, checks that status is 200, and fails the run if p(95) latency exceeds 800ms.

Frequently Asked Questions about k6

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

FAQPage Schema
How do I write a load test script in JavaScript to simulate user traffic?

You can write a load test script in JavaScript or TypeScript to simulate real user workflows using HTTP, WebSocket, or browser-based scenarios, defining traffic patterns and virtual users to validate application performance.

What's the best way to set up performance testing thresholds and pass/fail criteria?

The best way to establish performance testing thresholds is to define pass/fail criteria like latency percentiles and error-rate limits within the test options, which prevents regressions by automatically failing the run if metrics exceed those bounds.

How do I configure different load testing scenarios like stress, spike, and soak tests?

To configure different load testing scenarios, you use executors and scenarios in your script options to define the load shape—such as ramping up virtual users for stress, spiking traffic instantly, or running soak tests over a sustained period.

Can I stream load testing metrics and results to Grafana Cloud?

Yes, you can run tests locally and stream the load testing metrics and results to Grafana Cloud k6, providing team visibility and enabling automation of your performance testing results through CI/CD pipelines.

What types of performance testing are supported for validating API reliability and capacity?

Supported performance testing types include smoke, load, stress, spike, soak, and breakpoint testing, allowing you to validate application reliability and capacity under various defined traffic patterns and custom metrics.

Does k6 load testing support WebSocket and browser-based scenarios?

Yes, k6 load testing supports WebSocket and browser-based scenarios alongside standard HTTP requests, allowing you to simulate complex real user workflows and validate system behavior under realistic traffic conditions.