# OpenCLI Agent Pack: k6

Use this when an AI agent needs to work with `k6`.

## What this CLI is for
The official CLI from Grafana. Load testing, performance, and http tests from the terminal.

Best for: load testing, performance, and http tests from the terminal.

## Agent readiness
Usable with guardrails (50/100)
- Supports non-interactive/scripted use.
- Works well in CI or repeatable automation.

## Install
```sh
brew install k6
```

## Verify before real work
```sh
k6 --version
```
Expected signal: k6 responds locally and is ready for the first real command.

## Safe starting commands
```sh
k6 --version
```

```sh
k6 run script.js
```

## Guardrails for agents
- Prefer small commands and ask the agent to summarize plain text output.
- Start read-only, then ask before mutations.

## Suggested agent instruction
You may use k6 (`k6`) for load testing, performance, and http tests from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.

Source: OpenCLI
