# Convert browser HAR captures into reusable k6 load tests with har-to-k6

> Use har-to-k6 when an agent has recorded browser traffic and needs to turn it into a repeatable k6 script instead of hand-writing one from scratch. The skill is about transforming captured sessions into a starter load-test artifact with validation and export, not about listing k6 or Grafana as products.

- Skill: `agentskillexchange/convert-browser-har-captures-into-reusable-k6-load-tests-wit` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/convert-browser-har-captures-into-reusable-k6-load-tests-wit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/convert-browser-har-captures-into-reusable-k6-load-tests-wit/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/convert-browser-har-captures-into-reusable-k6-load-tests-wit

---


# Convert browser HAR captures into reusable k6 load tests with har-to-k6

Use har-to-k6 when an agent has recorded browser traffic and needs to turn it into a repeatable k6 script instead of hand-writing one from scratch. The skill is about transforming captured sessions into a starter load-test artifact with validation and export, not about listing k6 or Grafana as products.

## Prerequisites

Node.js or Docker, a HAR or LI-HAR capture, and k6 for running the generated script

## Installation

Use the upstream install or setup path that matches your environment:
- $ npm install --save har-to-k6
- $ npm install --global har-to-k6
- $ docker pull grafana/har-to-k6:latest
- $ npx har-to-k6 archive.har -o my-k6-script.js

Requirements and caveats from upstream:
- ![DockerHub](https://img.shields.io/docker/pulls/grafana/har-to-k6.svg)
- [Docker](#docker)
- Note that this will require you to run the converter with npx har-to-k6 your-har-file or,

Basic usage or getting-started notes:
- [Usage](#usage)
- [CLI Usage](#cli-usage)
- [Programmatic Usage](#programmatic-usage)

- Source: https://github.com/grafana/har-to-k6
- Extracted from upstream docs: https://raw.githubusercontent.com/grafana/har-to-k6/HEAD/README.md

## Documentation

- https://github.com/grafana/har-to-k6#readme

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/convert-browser-har-captures-into-reusable-k6-load-tests-with-har-to-k6/)

