qa-k6-writer

Generate k6 performance test scripts in JavaScript from NFRs.

2|2|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/AZANIR/qa-skills --skill qa-k6-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qa-k6-writer
Source: https://github.com/AZANIR/qa-skills/tree/main/.cursor/skills/qa-k6-writer
Command: npx skills add https://github.com/AZANIR/qa-skills --skill qa-k6-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of k6 performance test scripts, translating performance requirements into executable load, stress, and soak tests.

Core Features & Use Cases

  • Automated Script Generation: Writes k6 scripts in JavaScript based on performance plans and NFRs.
  • Configurable Scenarios & Thresholds: Supports various executors (constant-vus, ramping-arrival-rate) and defines pass/fail thresholds.
  • Use Case: Generate a k6 script to simulate 1000 concurrent users hitting an API endpoint for 30 minutes, with a requirement that 95% of requests complete within 200ms and less than 1% fail.

Quick Start

Generate k6 load tests for the login API endpoint based on the provided performance plan.

Frequently Asked Questions about qa-k6-writer

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

FAQPage Schema
How do I generate k6 performance test scripts in JavaScript?

You generate k6 performance test scripts by providing structured performance requirements and NFRs, which are then translated into executable JavaScript for load, stress, soak, and spike tests.

Can I use k6 to simulate 1000 concurrent users for 30 minutes with specific latency thresholds?

Yes, you can configure k6 scenarios with executors like constant-vus or ramping-arrival-rate to simulate concurrent users, and define pass/fail thresholds such as 95% of requests completing within 200ms.

Does k6 script generation support WebSocket and gRPC protocols?

Yes, k6 script generation supports HTTP, WebSocket, and gRPC protocols, allowing you to create configurable performance testing scenarios across multiple communication standards.

How do I set up pass/fail thresholds for stress testing in k6?

You set up pass/fail thresholds for stress testing by defining specific performance criteria in the k6 script, such as requiring less than 1% failed requests or establishing maximum acceptable response times.

What's the best way to automate load testing for CI-friendly output?

Automating load testing for CI-friendly output involves generating k6 scripts with configurable scenarios and thresholds that integrate seamlessly into continuous integration pipelines to validate non-functional requirements.