k6-script-generator_skill

This skill helps you generate production-ready k6 scripts and configurations for performance testing, following best practices and validating outputs.
  • Python

1.4k

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill jeremylongshore/claude-code-plugins-plus-skills --skill k6-script-generator

  • SKILL.md2.1 KB

Overview

This skill automates generation of k6 scripts and related configurations for performance testing. It produces step-by-step guidance, production-ready code snippets, and validation checks to help you implement load, stress, and benchmark tests quickly. Use it as an assistant to accelerate k6 script creation and ensure adherence to common patterns and best practices.

How this skill works

The skill inspects your performance testing intent and required parameters (endpoints, ramp-up, VUs, thresholds, scenarios). It generates k6 JavaScript test scripts, environment configurations, and example execution commands, then runs basic validation against common standards. When asked, it also explains choices, recommends thresholds, and suggests monitoring integrations.

When to use it

  • You need a complete k6 script for an API or web endpoint quickly
  • You want guidance on scenarios, VUs, ramp-up, and thresholds
  • You need best-practice configurations for production-like load tests
  • You want validation of k6 script structure and common issues
  • You are preparing benchmarking, load, or stress test plans

Best practices

  • Define realistic scenarios that mirror production traffic patterns
  • Separate configuration (env vars, thresholds) from script logic
  • Start small and incrementally increase load while observing metrics
  • Set clear thresholds for latency, error rate, and throughput
  • Integrate k6 output with metrics and logging backends for analysis

Example use cases

  • Generate a k6 script to load test a REST API with ramp-up and teardown
  • Create a benchmarking script for an authenticated endpoint with token renewal
  • Produce a scenario-driven script that simulates multiple user journeys
  • Validate an existing k6 script for missing thresholds or bad patterns
  • Provide run commands and environment config for CI/CD integration

FAQ

Provide the target endpoints, auth method, expected user flows, approximate concurrency or VU counts, duration, and any success criteria or thresholds.

Can the skill produce scripts suitable for CI pipelines?

Yes. It can output parameterized scripts, environment variable usage, and example commands to run k6 in CI with artifacts and metrics export.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
k6-script-generator skill by jeremylongshore/claude-code-plugins-plus-skills | VeilStrat