- Home
- Skills
- Testing & Debugging
- Stampede: Load Test Your API Before Launch
Works with the AI Agents you already use
Stampede: Load Test Your API Before Launch
Your agent load-tests your own API: detects the product type, installs realistic user journeys, fixes them for your routes, ramps safely from smoke to breakpoint, and tells you where it breaks and how to fix it.
Free
Stampede: Load Test Your API Before Launch
Example session with this skill installed
Our ticketing API runs on localhost:8080. Find out how many bookings per second it can take before p95 goes over 500ms.
- Read your context and instructions
- Compiled the stampede
- Generated the document
You confirmed localhost:8080 is your own dev server, so I started small.
1. Detected and dry-ran (stampede init --target http://localhost:8080 -y): it matched the
ticketing pack. browse-and-book.yaml failed once (check status (HTTP 404) at GET /api/events), because your router serves /v1/events. I fixed the paths and re-checked with stampede pack test stampede/ticketing: every journey passes.
2. Smoke, then breakpoint with an auto-abort, from 10/s to a 300/s ceiling:
stampede run stampede/ticketing/journeys/browse-and-book.yaml -e TARGET_URL=http://localhost:8080 -q --json bp.json -o report.html
| Result | |
|---|---|
| Verdict | fail: book/hold seats.p95 < 500ms missed |
| Breakpoint | held at 120/s, failed at 150/s |
| Knee | throughput stopped scaling at ~110/s |
| Slowest step | book / hold seats: p95 1.9s at 150/s; browse stays under 80ms |
| Errors | 4.1% HTTP 503 on hold seats only |
Likely cause (suspected until confirmed): the latency climbs on the write step long before errors appear, and only there. That pattern points to lock contention on seat rows. In seats/hold.ts the hold runs SELECT ... FOR UPDATE across the whole event's seat table inside one long transaction.
Suggested fixes:
- Lock only the requested seats (
WHERE id IN (...)), and keep the transaction short. - Raise the DB pool from 10 (
db.ts); it is exhausted at 120/s. - Re-run the same breakpoint with
--repeat 3before and after, and letstampede comparejudge the change.
The full HTML report is in report.html.
Illustrative session: numbers, files and causes depend on your app.

report.html
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Stampede is an open-source load tester (Apache-2.0): one binary, no server or account. This skill turns your coding agent (Claude Code, Codex, Cursor and others) into a careful performance engineer that drives it end to end.
What your agent does
- Detects your product (OpenAPI, auth discovery, headers) and installs the closest of 20 ready-made journey packs: e-commerce, SaaS, ticketing, LLM apps over SSE, chat, fintech, identity and more.
- Fixes the journeys for your API by reading your routes and response shapes, until every journey passes a one-user dry run.
- Picks the right test (smoke, baseline, stress, spike, soak, breakpoint, steps, recovery, wave) and ramps in a safe order, with an auto-abort on shared environments.
- Reads the report for you: verdict, failed targets, the breaking point and the knee, the slowest step, and the errors with examples. Then it maps them to likely causes (N+1 queries, small connection pools, lock contention, retry storms...) and checks your code before suggesting fixes.
- Proves a fix with repeated before/after runs that Stampede compares against the noise.
- Adds a smoke test to CI with the GitHub Action.
Safe by design
- Only tests targets you own. Defaults to localhost or staging, and production needs your explicit yes for that exact URL.
- Respects Stampede's guards: unverified public hosts are capped, and requests can't leave the target host.
- Test accounts only. Secrets come from your environment, never from chat or files.
- Tells you when the load generator, not your system, is the bottleneck.
Requirements
- The
stampedebinary (Homebrew, Scoop, a checksum-verified release download, orgo install; no piped install scripts). - An API or web app you own, running locally or on staging.
- Source and docs: https://github.com/Ivan825/Stampede
Public hosts are capped at 50 VUs/10 mins until verified. Generator saturation can skew results on small machines. Dry runs send real requests to targets.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
- Software
- Stampede CLIAn APIorweb app you own (local or staging)
Permissions
Terminal: runs the stampede CLI. Network: sends load only to the target you name (localhost or staging by default) and to hosts you explicitly allow. Read/write files: reads your routes to fix journeys, and writes the scenario files and reports into your project.
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.