locust-best-practices
Installation
SKILL.md
Locust Scenario Builder
Enforces a consistent, production-ready pattern for Locust load test scripts in Python, covering HTTP/REST APIs with realistic user behavior, custom load shapes, and proper response validation.
Output Format
When producing or fixing a locustfile, always deliver three things:
- A complete, runnable locustfile — never a partial snippet.
- The exact run command with all flags needed (
--headless,-u,-r,-t,--host). - A one-line explanation of the wait_time strategy chosen and why it fits the load goal.
Step 1 — Gather Context
Ask only what is unknown: