k6

Generate and execute k6 load testing scripts with configurable executors and metrics.

5|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/SteveFeldman/agents-skills --skill k6-stevefeldman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k6
Source: https://github.com/SteveFeldman/agents-skills/tree/main/skills/k6
Command: npx skills add https://github.com/SteveFeldman/agents-skills --skill k6-stevefeldman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables the creation and execution of sophisticated load tests, performance benchmarks, and validation scripts to ensure your applications can handle expected user traffic and perform reliably.

Core Features & Use Cases

  • Load Testing: Simulate concurrent users to measure response times, throughput, and error rates under stress.
  • Performance Benchmarking: Establish baseline performance metrics and track improvements over time.
  • Site/API Validation: Verify that critical endpoints return correct content and function as expected.
  • Use Case: You need to test if your e-commerce site can handle 10,000 concurrent users during a Black Friday sale. This Skill can generate a k6 script to simulate this load and report on key performance indicators.

Quick Start

Write a k6 load test script for the given URL and user load.

Frequently Asked Questions about k6

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

FAQPage Schema
How do I write a k6 load testing script for API performance validation?

To write a k6 load testing script for API performance validation, you define executors like ramping-vus or constant-arrival-rate, apply thresholds, and execute the script to measure response times and error rates under simulated concurrent user traffic.

Can I simulate concurrent users for performance benchmarking in a CI/CD pipeline?

Yes, you can simulate concurrent users for performance benchmarking within a CI/CD pipeline by generating k6 scripts that use executors like shared-iterations or constant-vus to establish baseline metrics and validate reliability in pre-production environments.

What is the best way to parameterize data in k6 load testing scripts?

The best way to parameterize data in k6 load testing scripts is by utilizing SharedArray and environment variables, enabling dynamic data injection to simulate varied user behaviors across concurrent virtual users during performance testing.

Does k6 support custom metrics and thresholds for site validation?

Yes, k6 supports custom metrics and thresholds for site validation, allowing you to establish specific performance criteria and automatically verify that critical endpoints return correct content and function as expected under load.

How do I configure different executors like constant-arrival-rate for load testing?

You configure executors like constant-arrival-rate for load testing by defining the desired request rate and virtual user count in your k6 script, enabling precise performance analysis and stress testing for expected user traffic scenarios.

Why do I need performance testing for pre-production environments?

You need performance testing for pre-production environments to ensure your applications can handle expected user traffic, establish baseline performance metrics, and validate that critical endpoints perform reliably before production deployment.