Works with the AI Agents you already use

    Stampede: Load Test Your API Before Launch

    by Ivan Bhargava

    1

    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

    Security scanned
    Stampede: Load Test Your API Before Launch

    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
    Verdictfail: book/hold seats.p95 < 500ms missed
    Breakpointheld at 120/s, failed at 150/s
    Kneethroughput stopped scaling at ~110/s
    Slowest stepbook / hold seats: p95 1.9s at 150/s; browse stays under 80ms
    Errors4.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:

    1. Lock only the requested seats (WHERE id IN (...)), and keep the transaction short.
    2. Raise the DB pool from 10 (db.ts); it is exhausted at 120/s.
    3. Re-run the same breakpoint with --repeat 3 before and after, and let stampede compare judge the change.

    The full HTML report is in report.html.

    Illustrative session: numbers, files and causes depend on your app.

    stampede-report

    report.html

    PDF · document

    Generated

    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 stampede binary (Homebrew, Scoop, a checksum-verified release download, or go 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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 CLI
    An API
    orweb app you own (local or staging)

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files

    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.

    Listed12 days ago

    What's inside

    Frequently Asked Questions

    HTTP (including HTTP/2), GraphQL, server-sent events (handy for LLM streaming APIs), WebSocket, gRPC, and real browser journeys, plus plugin steps for things like MQTT or SQL. The ready-made packs cover 20 product types; anything else can be written as a scenario.

    One SKILL.md that turns your agent into a careful load-testing operator: safety rules, install steps, how to adapt packs to your API, which test shape answers which question, how to read every part of the report, a symptom-to-cause-to-fix table, before/after comparison and CI setup. Stampede itself is free and open source (Apache-2.0).

    The skill only tests targets you own, defaults to localhost or staging, and needs your explicit yes for a production URL along with the peak rate and duration. It ramps from a dry run to smoke before anything heavy, adds an auto-abort on shared environments, and stops when errors climb. Stampede itself keeps requests on the target host and caps unverified public hosts.

    A hand-written script tells you numbers; this tells you what they mean. Stampede checks each journey with one user before adding load, separates the knee and breaking point, flags when the load generator rather than your app is the bottleneck, and judges before/after changes against run-to-run noise. The skill then reads your code to back up the likely cause.

    Stampede updates through your package manager (brew upgrade stampede, or scoop). The packs ship inside the binary, so they update with it. Skill updates appear here as new versions of the listing.

    Local and private addresses have no built-in cap; the limit is the machine running Stampede, and the report tells you when that machine is the bottleneck. A public host you haven't verified is capped at 50 iterations per second, 50 users and 10 minutes until you prove ownership with a DNS record or a file on the site.

    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.

    Free