k6-test-maintenance

k6-test-maintenance is a skill for Claude Code, Cursor from mamahoos/dot-files. It costs 5 tokens per session (2,384 once invoked), scanned A, a copy of k6-test-maintenance, MIT.

A maintenance guide for k6 test scripts. k6 is a tool for running automated performance and load tests against software.

In plain words
What is it for?
Use it to tighten performance thresholds, migrate scripts to newer k6 releases, adapt tests to changed services, refactor scripts, or audit them against k6 practices.
Why use it?
It helps you change existing tests safely when thresholds, k6 versions, service behavior, or coding standards change, while highlighting changes that could alter test results.

Skill for Claude CodeCursor

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

Good fit Use it to tighten performance thresholds, migrate scripts to newer k6 releases, adapt tests to changed services, refactor scripts, or audit them against k6 practices.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/mamahoos/dot-files/k6-test-maintenance/github.svg)](https://agentmods.dev/skills/mamahoos/dot-files/k6-test-maintenance)
Your own site
<a href="https://agentmods.dev/skills/mamahoos/dot-files/k6-test-maintenance"><img src="https://agentmods.dev/badge/skills/mamahoos/dot-files/k6-test-maintenance/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-test-maintenance

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

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

Security

Grade A, and why

k6-test-maintenance scanned grade A with 0 findings 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.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to k6-test-maintenance — 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-test-maintenance/SKILL.md · 181 lines

How it starts

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

k6 Test Maintenance

Maintain, fix, and improve existing k6 test scripts. Five maintenance tasks, each with a step-by-step procedure in references/workflows.md:

  1. Threshold tightening -- adjust threshold values based on observed metrics
  2. Version migration -- update scripts for new k6 releases
  3. Service change adaptation -- fix tests when the underlying service changes
  4. Refactoring -- clean up and modernize test code
  5. Best practices audit -- check scripts against current k6 best practices

Core principle: behavior-aware change control

Classify every proposed change by whether it alters the test's runtime behavior:

  • Syntactic (behavior unchanged): the k6 runtime produces identical metrics, pass/fail results, and endpoints. Examples: rename a variable, letconst, remove unused imports, update comments, reformat. Apply directly.
  • Behavioral (behavior differs): anything affecting metrics, pass/fail, timing, request targets, or load shape. Examples: threshold value changes, adding sleep(), endpoint URL updates, check rewrites, scenario changes, new thresholds. Always present as a diff with rationale and require confirmation.

The threshold for "behavioral" is deliberately low. If in doubt, treat it as behavioral and ask -- a trivial-looking threshold change can cascade to CI gates, SLO calculations, and alerting.

Dependencies

  • k6-manage -- fetch and edit GCk6-hosted scripts safely (§5: GET, backup, edit, validate, PUT, verify by sha256). Read it before touching any cloud-hosted script.
  • gcx -- sole tool for Grafana Cloud API access.
  • mcp-k6 tools -- validate_script and get_documentation. Check availability first; fall back to k6 x docs if absent.
  • k6 x docs CLI -- documentation lookup when mcp-k6 isn't configured.
  • k6 CLI -- local validation (k6 inspect, k6 run).

Validation loop (every edit)

Every workflow produces a modified script. Never present or PUT an unvalidated script -- run this loop, fixing and re-running until it passes:

Read the full file on GitHub · 181 lines

Files

What ships with it

2 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 · 181 lines · 5 tokens per session scan A a12ca4d663ba

Subscribe to this mod's changes

k6-test-maintenance is a skill published in the GitHub repository mamahoos/dot-files (4 stars, last pushed today), licensed MIT. It adds 5 tokens to every session and 2,384 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to k6-test-maintenance, differing in 1 line, and is treated as a copy.

Related

Other skills, from other repositories