Terminal
Terminal/Skill
Looks up k6 documentation for APIs and concepts, so you can write k6 load and browser test scripts.
By Grafana Labs
Works with
npx skills add grafana/xk6-docs --skill xk6-docsRead 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.
<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 paths
Paths use spaces or slashes interchangeably.
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.
using-k6 thresholds works, thresholds alone fails.k6- prefix is auto-added on javascript-api paths where needed.