k6-perf-test-website

k6-perf-test-website is a skill for Claude Code, Cursor from mamahoos/dot-files. It costs 7 tokens per session (3,458 once invoked), scanned A, a copy of k6-perf-test-website, MIT.

A complete workflow for performance-testing a public website with k6. It creates tests for user journeys, checks that they work, runs different kinds of load tests, and produces a report.

In plain words
What is it for?
Use it to test smoke, average, stress, spike, soak, or breakpoint loads, combine browser and network-level checks, measure Web Vitals, monitor the load generator, and document results.
Why use it?
It provides a structured way to test both whether website workflows work and how they behave under increasing traffic, while accounting for the machine generating the load.

Skill for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also installed under .cursor/. Also seen: mentions OpenCode.

Good fit Use it to test smoke, average, stress, spike, soak, or breakpoint loads, combine browser and network-level checks, measure Web Vitals, monitor the load generator, and document results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mamahoos/dot-files/k6-perf-test-website
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.

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

Made for: Claude Code, 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-perf-test-website

README.md
[![agentmods](https://agentmods.dev/badge/skills/mamahoos/dot-files/k6-perf-test-website/github.svg)](https://agentmods.dev/skills/mamahoos/dot-files/k6-perf-test-website)
Your own site
<a href="https://agentmods.dev/skills/mamahoos/dot-files/k6-perf-test-website"><img src="https://agentmods.dev/badge/skills/mamahoos/dot-files/k6-perf-test-website/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for k6-perf-test-website

Your own site · 80×15
<a href="https://agentmods.dev/skills/mamahoos/dot-files/k6-perf-test-website"><img src="https://agentmods.dev/badge/skills/mamahoos/dot-files/k6-perf-test-website.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,458 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% 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.1 $0.00007 $0.03458
Opus 5 $0.00003 $0.01729
Sonnet 5 $0.00001 $0.00692
Haiku 4.5 $0.00001 $0.00346

Measured 6d ago against content hash bccfa080f5ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

k6-perf-test-website 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 6d ago.

The scan reads SKILL.md. This mod also ships 13 executable files (assets/recordings/scripts/recorder.template.js, assets/tests/run-all.sh, assets/tests/workflow.template/average.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.

tools (`k6`, `npx`, `curl`) and hand-written scripts. The skill does
Origin

This is a copy

95% identical to k6-perf-test-website — 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-perf-test-website/SKILL.md · 325 lines

How it starts

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

k6-perf-test-website

An end-to-end, opinionated workflow for performance-testing any public website with k6. The skill produces:

  • A scaffolded project with one folder per user-described workflow.
  • Functional protocol + browser tests (must pass before load testing).
  • Hybrid load tests (protocol scenario + 1 browser VU) per test type (smoke / average / stress / spike / soak / breakpoint).
  • SLO-backed thresholds with per-endpoint tagging and Web Vitals.
  • A cross-platform load-generator monitor sidecar.
  • Optional Grafana-side investigation when the user owns the backend.
  • A structured Markdown report at the end.

This skill enforces a few opinions you should not silently override:

  • Always elicit workflows first. Don't guess.
  • Functional tests must be green before load tests run.
  • Always monitor the load generator — server-looks-slow is often laptop-looks-slow.
  • Local for validation, cloud for scale — but ask the user where to run each test type; don't hardcode.
  • No shared tests/lib/. Iteration-body duplication is preferred; each script reads cleanly on its own during incident review.

Prerequisites

  • k6 ≥ v2.0.0 (k6 version) — required for stable k6/browser, expect(), async/await iteration functions, and per-request tags.
  • Node.js ≥ 20 + npm.
  • Playwright with the Chromium download (npx playwright install chromium).
  • har-to-k6 (npm i -D har-to-k6).
  • Network access from the load-generator host to the target site.

Tools the skill prefers when installed:

  • mcp-k6 — script creation, Playwright→k6/browser migration, API lookup. Prefer over hand-writing k6 boilerplate.
  • mcp-grafana — in-session Prometheus/Loki/Tempo/Pyroscope queries during §9 backend investigation.
  • gcx — Grafana Cloud CLI for shell-friendly queries, datasource discovery, and Grafana Cloud k6 cloud-run dispatch.
  • k6 binary — local validation runs and breakpoint hunting.
  • k6 x docs (xk6-docs) — look up k6 API surface when writing or editing scripts without mcp-k6 available.

Read the full file on GitHub · 325 lines

Files

What ships with it

29 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 325 lines · 7 tokens per session scan A bccfa080f5ed

Subscribe to this mod's changes

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

Related

Other skills, from other repositories