Agent skill · software engineering · davila7
k6-load-testing
Comprehensive k6 load testing skill for API, browser, and scalability testing. Write realistic load scenarios, analyze results, and integrate with CI/CD.
Why this skill is useful
Provides specific k6 load testing scripts and configuration patterns that the AI wouldn't reliably generate on its own.
What it needs
Requires k6 installed locally. About 7k tokens when loaded. Last updated 2026-08-06. 30,138 stars on the source repository.
What this skill does
k6 Load Testing Overview k6 is a modern, developer-centric load testing tool that helps you write and execute performance tests for HTTP APIs, WebSocket endpoints, and browser scenarios. This skill provides comprehensive guidance on writing realistic load tests, configuring test scenarios (smoke, load, stress, spike, soak), analyzing results, and integrating with CI/CD pipelines. Use this skill when you need to validate system performance, identify bottlenecks, ensure SLA compliance, or catch performance regressions before deployment. --- When to Use This Skill Use when you need to load test HTTP APIs, WebSocket endpoints, or browser scenarios Use when setting up performance regression tests in CI/CD Use when analyzing system behavior under various load conditions Use when comparing performance between code changes Use when validating SLA requirements and performance budgets --- k6 Basics Installation Quick Start Run with: k6 run simple-test.js --- Test Configuration Common Options Test Types Type Use Case Configuration ------ ---------- --------------- Smoke Test Verify basic functionality Low VUs (1-5), short duration Load Test Normal expected load Target VUs based on traffic Stress Test Find breaking point Ramp beyond capacity Spike Test Sudden traffic spikes Rapid increase/decrease Soak Test Long-term stability Extended duration --- HTTP Testing Basic Requests Request Chaining Parameterized Testing --- Browser Testing (k6 Browser) Install browser support: k6 install chromium --- WebSocket Testing --- Data Handling CSV Data Source JSON Data Source --- Thresholds & SLA Basic Thresholds Advanced Thresholds --- Custom Metrics Counters --- CI/CD Integration GitHub Actions GitLab CI --- Results Analysis Built-in Reports Interpreting Results Metric Description Good Warning Bad -------- ------------- ------ --------- ----- httpreqduration (p95) 95% response time < 300ms 300-500ms > 500ms httpreqfailed Error rate < 0.1% 0.1-1% > 1% httpreqs Requests/sec Meeting target Ne …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills davila7/k6-load-testing