Railway's official agent skill: create projects, provision databases and buckets, deploy, manage variables and domains, and read build failures back — from the CLI, API or MCP server.
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
Diagnoses wrong gradients in differentiable NVIDIA Warp programs by measuring first — comparing autodiff against finite differences on a shrunk reproduction before proposing any fix.
Google's official skill for the gws CLI — drive Gmail, Drive, Calendar, Sheets, Docs, Chat and Admin APIs from an agent, with Model Armor screening.
Netlify's official skill for zero-config managed Postgres — querying from Functions, Drizzle setup, migrations and per-preview database branches.