k6-cloud-investigate-test

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

A workflow for investigating a specific Grafana Cloud k6 test or run. It examines the script, run history, pass or fail results, detailed metrics, and log lines.

In plain words
What is it for?
Use it to inspect a k6 test or run, compare recent runs, determine pass or fail status, retrieve time-series metrics and logs, and safely edit a script when requested.
Why use it?
It brings the evidence for a failed or suspicious performance test into one investigation and separates different kinds of failure signals.

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 inspect a k6 test or run, compare recent runs, determine pass or fail status, retrieve time-series metrics and logs, and safely edit a script when requested.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mamahoos/dot-files/k6-cloud-investigate-test"><img src="https://agentmods.dev/badge/skills/mamahoos/dot-files/k6-cloud-investigate-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 215 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,912 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 98% 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.00215 $0.03912
Opus 5 $0.00108 $0.01956
Sonnet 5 $0.00043 $0.00782
Haiku 4.5 $0.00021 $0.00391

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

Security

Grade A, and why

k6-cloud-investigate-test 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 5d 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

98% identical to k6-cloud-investigate-test — 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-cloud-investigate-test/SKILL.md · 257 lines

How it starts

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

k6 Cloud test investigator

Structured 9-step workflow for investigating a Grafana Cloud k6 test or run.

This skill is workflow-only. All API calls go through gcx api against the plugin proxy, using v6 for REST and v5 for metrics. For the underlying mechanics (gcx auth, path conventions, endpoint discovery, log queries, script editing, threshold semantics, gotchas), see the k6-manage skill — every step below references it.

The content unique to this skill is:

  • the ordered investigation flow (Steps 1-9 below)
  • the date-alignment check ("last 7 days" ≠ "last 7 runs")
  • the 3-layer pass/fail determination (result vs status vs per-check checks query)
  • a worked example with realistic numbers (references/worked-example.md)

Core principles

  1. Read before write. Always GET the script before any PUT. gcx k6 load-tests update-script is a write that replaces the live script with whatever file you pass — running it "just to see the URL it hits" has cost users their production scripts. If you need to learn URLs, run any non-mutating command with -vvv --log-http-payload instead.
  2. Paginate when enumerating runs. The /test_runs endpoint caps at 1000 rows and gcx k6 runs list --limit 0 does not auto-follow @nextLink. Use the gcx api loop documented in k6-manage §3.
  3. Verify date framing. When the user says "last 7 days", "this week", "recent runs" — confirm the most-recent run's created actually falls in that window. Surface the gap if not.
  4. check() doesn't fail runs; only thresholds do. And thresholds with zero observations are reported as ✓ pass. See "Threshold semantics" below for the full deep dive; the per-check checks metric query in Step 5 catches both cases.

Prerequisites

gcx installed and authenticated against the user's stack. See k6-manage §1. Verify with:

gcx --context <stack> config check    # expect "✔ Connectivity: online"

Investigation workflow

Step 1: Identify the test and target run(s)

Read the full file on GitHub · 257 lines

Files

What ships with it

1 file 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. 5d ago First seen · 257 lines · 215 tokens per session scan A 39508b88b797

Subscribe to this mod's changes

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

Related

Other skills, from other repositories