
Xk6 Docs
- 3 installs
- 6 repo stars
- Updated August 2, 2026
- grafana/xk6-docs
xk6-docs skill documents Look up k6 documentation to write k6 load tests, browser tests, and performance scripts.
About
xk6-docs skill documents Look up k6 documentation to write k6 load tests, browser tests, and performance scripts. Use when writing k6 test scripts, looking up k6 APIs (http, browser, websockets, grpc, metrics), or understanding k6 concepts (thresholds, checks, scenarios, executors).. name: xk6-docs description: Look up k6 documentation to write k6 load tests, browser tests, and performance scripts. Use when writing k6 test scripts, looking up k6 APIs (http, browser, websockets, grpc, metrics), or understanding k6 concepts (thresholds, checks, scenarios, executors).
- Look up k6 documentation to write k6 load tests, browser tests, and performance scripts.
- Platform-specific setup patterns for xk6-docs.
- Evidence-backed steps from upstream SKILL.md.
- When-to-use criteria for xk6-docs versus alternatives.
Xk6 Docs by the numbers
- 3 all-time installs (skills.sh)
- Ranked #1,119 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
- Data as of Aug 3, 2026 (Skillselion catalog sync)
xk6-docs capabilities & compatibility
- Capabilities
- xk6 docs quick start · xk6 docs when to use guidance · xk6 docs integration patterns
- Works with
- grafana
What xk6-docs says it does
Read k6 docs via `<binary> x docs`.
If `<binary>` is not found: tell the user to re-run `k6 x docs skill <dir>` to update the skill, then stop.
npx skills add https://github.com/grafana/xk6-docs --skill xk6-docsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 3 |
|---|---|
| repo stars | ★ 6 |
| Last updated | August 2, 2026 |
| Repository | grafana/xk6-docs ↗ |
How do I use xk6-docs correctly?
Look up k6 documentation to write k6 load tests, browser tests, and performance scripts. Use when writing k6 test scripts, looking up k6 APIs (http, browser, websockets, grpc, metrics), or understandi
Who is it for?
Teams implementing xk6-docs workflows from the catalog.
Skip if: Skip when requirements clearly match a different specialized stack.
When should I use this skill?
User asks about xk6-docs, look up k6 documentation to write k6 load tests, browser tests, and performance scripts. u.
What you get
Working xk6-docs setup with validated configuration and next steps.
Files
k6 docs
Read k6 docs via <binary> x docs.
If <binary> is not found: tell the user to re-run k6 x docs skill <dir> to update the skill, then stop.
Commands
<binary> x docs # overview
<binary> x docs <path> # read a topic; shows content + subtopics at the bottom
<binary> x docs <path> --depth 2 # read a topic + 2 levels of subtopics in one call
<binary> x docs search <term> # fuzzy search; returns matching pathsPaths use spaces or slashes interchangeably.
Strategy
2 calls is the target.
Try a direct path first — wrong paths don't error, they return subtopics to guide your next call. Only use search or overview when you have no idea where to look.
Once you have a path (from a subtopics list or search), go to it directly — don't visit the parent to confirm first.
When a topic page shows a method table with descriptions, that is the complete API — no need to read individual method sub-pages.
Rules
- Full parent path required:
using-k6 thresholdsworks,thresholdsalone fails. k6-prefix is auto-added onjavascript-apipaths where needed.
#!/usr/bin/env bash
# Validates all lookup paths in skill references against the actual docs.
# Run after a k6 version bump to find broken/missing paths.
#
# Usage: ./skills/xk6-docs/scripts/validate-paths.sh [path-to-k6-binary]
set -euo pipefail
K6="${1:-./k6}"
REFS_DIR="$(dirname "$0")/../references"
if [[ ! -x "$K6" ]]; then
echo "error: k6 binary not found at $K6" >&2
echo "usage: $0 [path-to-k6-binary]" >&2
exit 1
fi
# Extract lookup paths from the last column of markdown tables.
# Matches: "| ... | `javascript-api k6-http get` |" or "| ... | `using-k6 thresholds` |"
# Only picks up paths starting with known top-level categories.
paths=$(grep -hoE '`(javascript-api|using-k6|using-k6-browser|testing-guides|results-output|examples)[- a-z0-9/]+`' "$REFS_DIR"/*.md \
| tr -d '\`' \
| sort -u)
total=0
failed=0
broken=()
while IFS= read -r path; do
[[ -z "$path" ]] && continue
total=$((total + 1))
# shellcheck disable=SC2086
if ! "$K6" x docs $path >/dev/null 2>&1; then
failed=$((failed + 1))
broken+=("$path")
fi
done <<< "$paths"
echo "Tested $total paths"
if [[ $failed -gt 0 ]]; then
echo ""
echo "BROKEN ($failed):"
for p in "${broken[@]}"; do
echo " $p"
done
fi
# Check for new modules not covered by any reference.
echo ""
echo "Checking for uncovered modules..."
# Get all children under javascript-api from the depth-2 TOC.
doc_modules=$("$K6" x docs --depth 2 2>/dev/null \
| sed -n '/^- javascript-api$/,/^- [^ ]/{ /^ - /p; }' \
| sed 's/^ - //' | sort)
SKILL_DIR="$(dirname "$0")/.."
skill_modules=$(grep -rhoE 'javascript-api [a-z0-9.-]+' "$SKILL_DIR"/SKILL.md "$REFS_DIR"/*.md \
| sed 's/javascript-api //' | sort -u)
uncovered=()
while IFS= read -r mod; do
[[ -z "$mod" ]] && continue
if ! echo "$skill_modules" | grep -qxF "$mod"; then
uncovered+=("$mod")
fi
done <<< "$doc_modules"
if [[ ${#uncovered[@]} -gt 0 ]]; then
echo "UNCOVERED modules (${#uncovered[@]}):"
for m in "${uncovered[@]}"; do
echo " javascript-api $m"
done
exit_code=1
else
echo "All modules covered."
fi
if [[ $failed -gt 0 || ${#uncovered[@]} -gt 0 ]]; then
exit 1
else
echo ""
echo "Skill is up to date."
fi
Related skills
FAQ
What does xk6-docs do?
xk6-docs skill documents Look up k6 documentation to write k6 load tests, browser tests, and performance scripts.
When should I use xk6-docs?
User asks about xk6-docs, look up k6 documentation to write k6 load tests, browser tests, and performance scripts. u.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.