k6

k6 is a skill for Claude Code, Codex, Cursor from mamahoos/dot-files. It costs 172 tokens per session (3,111 once invoked), scanned A, a copy of k6, MIT.

A guide for writing and checking k6 scripts, which are JavaScript programs used to test how services behave under different kinds of traffic.

In plain words
What is it for?
Use it for HTTP, WebSocket, gRPC, browser, and functional tests, including load, stress, spike, soak, smoke, and other traffic patterns.
Why use it?
It helps turn performance and service-testing goals into valid scripts with appropriate requests, checks, metrics, and execution settings.

Skill for Claude CodeCodexCursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mamahoos/dot-files/k6
Any agent
npx skills add mamahoos/dot-files --skill k6
Clone the repo
git clone --depth 1 https://github.com/mamahoos/dot-files

Made for: Claude Code, Codex, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for k6

README.md
[![agentmods](https://agentmods.dev/badge/skills/mamahoos/dot-files/k6.svg)](https://agentmods.dev/skills/mamahoos/dot-files/k6)
Your own site
<a href="https://agentmods.dev/skills/mamahoos/dot-files/k6"><img src="https://agentmods.dev/badge/skills/mamahoos/dot-files/k6.svg" alt="Measured on agentmods" height="20"></a>
Per session 172 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,111 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00172 $0.03111
Opus 5 $0.00086 $0.01555
Sonnet 5 $0.00034 $0.00622
Haiku 4.5 $0.00017 $0.00311

Measured today against content hash 282d39fd88dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

k6 scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 18 executable files (examples/browser.js, examples/cloud.js, examples/crypto-encoding.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> **Agent-agnostic:** The steps below describe capabilities, not specific tools. Where a step says "fetch a URL" or "write a file", use whatever your agent provides for that capability (e.g. a web-fetch tool, a file-writ
Origin

This is a copy

100% identical to k6 — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

home/.cursor/skills/k6/SKILL.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

k6 Script Generation

Efficiency note: This is a short linear recipe (read example → adapt → save → validate → review). A todo list would just mirror the headings without adding value, so skip the planning overhead and execute the steps directly.

Agent-agnostic: The steps below describe capabilities, not specific tools. Where a step says "fetch a URL" or "write a file", use whatever your agent provides for that capability (e.g. a web-fetch tool, a file-write tool, or shell curl/tee).


Step 1: Pick the right example file

Read only the file that matches the user's request. Examples provide structural scaffolding — the correct scaffold, option shapes, and import patterns.

User needs Read this file
HTTP REST, auth flow, batch requests examples/http.js
HTML parsing with parseHTML, SharedArray examples/html.js
WebSocket examples/websocket.js
gRPC examples/grpc.js
Browser automation examples/browser.js
Browser + functional test / expect() / k6-testing examples/functional.js (browser scenario)
Functional/integration tests, expect(), k6-testing examples/functional.js
Custom metrics, execution module, handleSummary, per-vu-iterations examples/metrics.js
Load patterns, all executors (ramping, arrival rate, per-VU, etc.) examples/executors.js
Cloud run, --local-execution, cloud options examples/cloud.js
Crypto (HMAC, MD5, SHA256) or encoding (base64) examples/crypto-encoding.js
xk6-faker examples/ext-faker.js
xk6-redis examples/ext-redis.js
xk6-sql / sqlite3 / postgres examples/ext-sql.js
xk6-exec examples/ext-exec.js
xk6-dns examples/ext-dns.js
xk6-tls examples/ext-tls.js
xk6-tcp examples/ext-tcp.js
xk6-crawler examples/ext-crawler.js

Example files live in the examples/ directory alongside this SKILL.md.

When the request matches multiple rows (e.g. "browser" + "functional test"), prefer the row whose assertion style fits the intent. If the user says "functional test", "assert", "verify", or "expect", use functional.js even if the test involves a browser — it demonstrates expect() with auto-retrying browser matchers. Use browser.js for browser load/performance tests that don't emphasize correctness assertions.

Read the full file on GitHub · 193 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 193 lines · 172 tokens per session scan A 282d39fd88dc

Subscribe to this mod's changes

k6 is a skill published in the GitHub repository mamahoos/dot-files (4 stars, last pushed yesterday), licensed MIT. It adds 172 tokens to every session and 3,111 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to k6, differing in 1 line, and is treated as a copy.

Related

Other skills, from other repositories

playwright-visual-regression

Visual regression testing using Playwright with toHaveScreenshot(), masking, thresholds, cross-browser testing, and VUDA integration for AI-powered visual analysis.

Mte90/dotfiles · 35 tokens

game-qa

Game QA testing with Playwright — visual regression, gameplay verification, performance, and accessibility for browser games. Use when writing or running game tests, debugging test failures, or building QA infrastructure. This is the reference skill — use qa-game for the user-facing command.

Mte90/dotfiles · 57 tokens

gui-integration-test

GUI desktop app only. Writes, runs, and debugs Warp integration tests using the custom Builder/TestStep framework in crates/integration. Use when adding a new integration test, fixing a failing integration test, wiring a test into the manual runner or nextest suite, or verifying end-to-end UI and terminal behavior in…

warpdotdev/warp · 72 tokens

gui-integration-test-video

GUI desktop app only. Run and author Warp Rust integration tests (the crates/integration harness) that capture screenshots and video via TestStep::withstartrecording() / withtakescreenshot(), including mouse and keyboard event overlays. TRIGGER only for the integration-test recording pipeline: recording or…

warpdotdev/warp · 132 tokens

tui-test

Control, inspect, test, and record real terminal apps with the tui-test CLI or its Rust, Python, and JavaScript APIs. Use for shells, TUI apps, text and style locators, keyboard or mouse input, terminal state, clipboard waits, screenshots, recordings, snapshots, and live terminal sessions.

microsoft/tui-test · 67 tokens

nvim-install

Install Neovim and stand up the nvim-fredrik config in the Claude Code web sandbox (the cloud environment), where no Neovim exists. Use this before testing any Neovim config change in a web session, e.g. checking out a PR branch that touches nvim-fredrik and observing its runtime behavior. Installs Neovim via Nix from…

fredrikaverpil/dotfiles · 132 tokens