---
title: "Model user behavior and run distributed load tests before backend changes face real traffic with Locust"
description: "Script realistic user flows in Python and fan them out across workers so agents can pressure-test services before rollout."
verification: "listed"
source: "https://github.com/locustio/locust"
author: "Locust"
publisher_type: "organization"
category:
  - "Monitoring & Alerts"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "locustio/locust"
  github_stars: 27720
---

# Model user behavior and run distributed load tests before backend changes face real traffic with Locust

Script realistic user flows in Python and fan them out across workers so agents can pressure-test services before rollout.

## Prerequisites

Python, Locust, and access to the target service or test environment

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Install with `pip install locust`, define user behavior in a `locustfile.py`, then run `locust` locally or with workers against the target environment and review the generated stats.
```

## Documentation

- https://docs.locust.io/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/model-user-behavior-and-run-distributed-load-tests-before-backend-changes-face-real-traffic-with-locust/)
