Deno's official foundational skill — project setup, package choices, configuration, and CLI commands done the current way.
k6 Load Test AuthoringSkill
Summary
Grafana's official k6 skill: generate a load, stress, spike or soak test from a plain-language brief, then actually run the script before handing it over.
Features
- Example-first generation across HTTP, WebSocket, gRPC, browser and functional tests
- Every k6 executor and scenario shape, with thresholds, checks and custom metrics
- Mandatory k6 run validation before a script is handed back
- TTY wrapper that makes the k6 x docs CLI usable from a non-interactive agent
- xk6 extension examples: faker, redis, sql, exec, dns, tls, tcp and crawler
- k6 Cloud execution and --local-execution options
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Description
Most load-test scripts produced by an LLM look right and fail on the first run — a stubbed expression, an executor option that does not exist, an import path from a different major version. This skill from Grafana Labs is built to stop that, and its most consequential rule is the last one: every generated script is executed with k6 run before it is presented, and a script that does not run is not finished.
The workflow is deliberately linear. It starts by picking one example file that matches the brief — HTTP and auth flows, HTML parsing with parseHTML and SharedArray, WebSocket, gRPC, browser automation, functional tests built on expect() and the k6-testing library, custom metrics with handleSummary, every executor shape, cloud runs, crypto and encoding, and the xk6 extensions for faker, redis, sql, exec, dns, tls, tcp and crawler. The example supplies the correct scaffold; the skill then adapts it to the actual endpoints, VU counts, durations and thresholds, with an explicit instruction not to over-build: no request tags, extra sleep() calls or options the brief did not ask for.
Documentation lookup is treated as a fallback rather than a first step, and the skill solves a real mechanical problem in doing so — k6 x docs only renders when it detects a TTY, so agents get a useless "browse these markdown files" message. The skill wraps the call in script to allocate a pseudo-TTY on both macOS and Linux, verifies the wrapper works, and falls back to the web docs when it does not. It also explicitly bans unpkg and @types/k6 URLs as a source of API signatures.
Coverage spans the test types people actually ask for — load, stress, spike, soak, smoke, breakpoint, functional and protocol — across HTTP, WebSocket, gRPC and browser, with thresholds, checks and custom metrics, plus k6 Cloud execution and --local-execution.
Apache-2.0, part of the grafana/skills repository, installable with npx skills add grafana/skills or through the Claude Code plugin marketplace. Sibling skills in the same repo handle end-to-end website performance suites, k6 Cloud test investigation, trend analysis and script maintenance.
Related Skills
Skill: Grafana Alloy Collector Configs
by Grafana Labs
Grafana's official Alloy skill: write one collector config that carries metrics, logs, traces and profiles, validate it locally, and prove samples are actually leaving the box.
Skill: Grafana Tempo & TraceQL
by Grafana Labs
Grafana's official Tempo skill: stand up a tracing backend that needs nothing but object storage, then write TraceQL that finds the slow span instead of scrolling for it.
Skill: Grafana Loki & LogQL
by Grafana Labs
Grafana's official Loki skill: write LogQL that returns rows instead of timeouts, ship logs through Alloy, and reason about a store that indexes labels rather than log text.