k6-manage

k6-manage is a skill for Claude Code, Cursor from mamahoos/dot-files. It costs 209 tokens per session (12,520 once invoked), scanned B, a copy of k6-manage, MIT.

A workflow for managing Grafana Cloud k6, a hosted service for running performance and load tests. It uses command-line tools or web requests to work with tests, runs, schedules, settings, metrics, and logs.

In plain words
What is it for?
Use it to create or manage k6 cloud tests and runs, update scripts, set schedules or environment variables, run scripts locally, and retrieve metrics or logs.
Why use it?
It avoids needing to manage every cloud-test request manually and provides a defined way to authenticate, find commands, handle results, and query run data.

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 create or manage k6 cloud tests and runs, update scripts, set schedules or environment variables, run scripts locally, and retrieve metrics or logs.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mamahoos/dot-files/k6-manage"><img src="https://agentmods.dev/badge/skills/mamahoos/dot-files/k6-manage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 209 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,520 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 3 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.00209 $0.12520
Opus 5 $0.00105 $0.06260
Sonnet 5 $0.00042 $0.02504
Haiku 4.5 $0.00021 $0.01252

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

Security

Grade B, and why

k6-manage scanned grade B with 3 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl flags: `-o file` to save body, `--data-binary @file` for PUT

Makes network callslowCapability

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

description: Interact with Grafana Cloud k6 (GCk6) — manage load tests, test runs, scripts, projects, schedules, env vars, fetch metrics or logs, and run scripts locally — using the `gcx` CLI (or direct curl when gcx is

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

r = subprocess.run(["gcx", "--context", CTX, "api", path, "-o", "json"],
Origin

This is a copy

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

How it starts

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

Grafana Cloud k6 — interaction reference

The default path is the gcx CLI. When gcx isn't installed, every endpoint here is still reachable via direct curl against k6's public hosts — see §1.2 for the auth-header and host-translation rules. Two principles shape the rest:

  • gcx owns Grafana-side auth (when present). It injects the right headers on every call, so you should not set auth headers yourself. The only header you ever set by hand is X-K6TestRun-Id, on Loki log queries (§4), browser screenshot/file fetches (§6), and Tempo trace queries (§7) — anything else gets overwritten or causes conflicts. In curl mode the auth headers are manual; see §1.2.
  • Reach for gcx k6 ... subcommands first. They wrap the common paths with friendlier ergonomics and handle pagination. Discover what's available with gcx help-tree k6 (and drill in further with gcx help-tree k6 <subcommand>); fall back to gcx api only when no subcommand exists for what you need.

1. Authentication

1.1 With gcx (default)

gcx login --context <ctx>                # one-time OAuth, browser flow
gcx --context <ctx> config check         # expect "✔ Connectivity: online"

Once a context is logged in, every gcx api ... and gcx k6 ... call inherits its auth state. If a call returns "Invalid or expired token — run gcx login to refresh", the OAuth session has lapsed — re-run gcx login --context <ctx>.

1.2 Without gcx — direct curl

Check command -v gcx first. If it's missing, every endpoint in this skill is still reachable directly against k6's public hosts — three things change versus the gcx examples elsewhere:

  • Auth headers are manual. Set both on every call:
    • Authorization: Bearer <k6_token>
    • X-Stack-ID: <int>
  • Hosts replace the plugin proxy.
    • REST (/cloud/v6/..., /cloud/v5/..., /cloud-resources/v1/..., /insights/...) → https://api.k6.io
    • Logs (Loki) and traces (Tempo) → https://cloudlogs.k6.io
  • No /api/plugins/k6-app/resources/{cloud,logs,insights} prefix. Drop it; everything after that prefix in the gcx examples is the real k6 path. The doubled cloud/cloud/ quirk from §2 collapses to a single /cloud/ — the first one was just the proxy route.

Read the full file on GitHub · 946 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. 6d ago First seen · 946 lines · 209 tokens per session scan B d744de2bf98b

Subscribe to this mod's changes

k6-manage is a skill published in the GitHub repository mamahoos/dot-files (4 stars, last pushed today), licensed MIT. It adds 209 tokens to every session and 12,520 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it B with 3 findings (sends data to an external url, makes network calls, runs shell commands). It is 100% identical to k6-manage, differing in 1 line, and is treated as a copy.

Related

Other skills, from other repositories