generating-api-load-tests

Generate k6 load test scripts for HTTP/REST, gRPC, and WebSocket APIs.

10|1|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/KimDoubleB/grafana-k6-skills --skill generating-api-load-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-api-load-tests
Source: https://github.com/KimDoubleB/grafana-k6-skills/tree/main/plugins/grafana-k6-skills/skills/generating-api-load-tests
Command: npx skills add https://github.com/KimDoubleB/grafana-k6-skills --skill generating-api-load-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of k6 load test scripts for various API protocols, simplifying the process of performance testing your backend services.

Core Features & Use Cases

  • Protocol Support: Generates scripts for HTTP/REST, gRPC, and WebSocket APIs.
  • Script Generation: Creates complete k6 scripts including authentication, data parameterization, checks, and thresholds.
  • Use Case: You need to load test a new REST API endpoint. Use this Skill to generate a k6 script that simulates 100 concurrent users hitting the endpoint, checks for a 200 status code, and ensures response times are under 500ms.

Quick Start

Use the generating-api-load-tests skill to create a k6 script for testing the GET endpoint at https://api.example.com/users.

Frequently Asked Questions about generating-api-load-tests

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

FAQPage Schema
How do I generate k6 load testing scripts for REST APIs?

This Skill generates k6 load testing scripts for REST APIs by creating complete test scenarios that simulate concurrent users, execute CRUD operations, and validate HTTP response codes. It automatically includes data parameterization and performance thresholds.

Can I create k6 performance tests for gRPC and WebSocket APIs?

Yes, you can create k6 performance tests for gRPC and WebSocket APIs. The Skill supports generating protocol-level test scripts for these endpoints, allowing you to simulate concurrent connections and measure response times for your backend services.

How do I add authentication and data parameterization to k6 test scripts?

To add authentication and data parameterization to k6 test scripts, the Skill incorporates these common patterns directly into the generated output. It handles session management and parameterizes test data to accurately simulate realistic user load scenarios.

What's the best way to set up checks and thresholds for API load testing?

The best way to set up checks and thresholds for API load testing is to define them within your k6 script. This Skill automatically generates these assertions, checking for expected status codes like 200 and ensuring response times stay under specified limits such as 500ms.

Does this k6 script generator work for session management and CRUD operations?

Yes, this k6 script generator works for session management and CRUD operations. It facilitates the creation of test scripts for protocol-level endpoints by including common patterns required to test stateful sessions and create, read, update, or delete operations.