agentleFS
v0idOSv0idOS/performance-deity/skills/stress-test/SKILL.md

stress-test

Skill2 starsChanged 7 months agoMITView on GitHub

Stress test and harden code against extreme inputs, malformed data, and simulated infrastructure failures. Acts as a red team. Documents every crash, then hardens the boundary.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ai-act-readiness, andreessen and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write a script that sends the following inputs to the target function:

    line 9
  2. Distinctive:

    Run the fuzzer. For each failure, document:

    line 18
  3. Distinctive:

    Add input validation at the function boundary.

    line 25
  4. Distinctive:

    Add pagination or streaming for inputs that exceed a byte threshold.

    line 26
  5. Distinctive:

    Add a circuit breaker or retry-with-exponential-backoff for every network and database dependency.

    line 27

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Execute all four phases in order.

Phase 1 — Fuzzer

Write a script that sends the following inputs to the target function:

  • 1GB string payloads
  • null, undefined, NaN, -1, Infinity
  • Deeply nested recursive JSON (depth >1,000)
  • Malformed Unicode strings (\uFFFD, null bytes, RTL override characters)
  • Simulated network drops or database timeouts via mocked I/O

Phase 2 — Attack

Run the fuzzer. For each failure, document:

  • The exact input that caused the failure
  • The failure mode: unhandled exception, memory exhaustion, infinite loop, or incorrect output without error

Phase 3 — Hardening

For every documented failure:

  1. Add input validation at the function boundary. Reject invalid input immediately with a typed error.
  2. Add pagination or streaming for inputs that exceed a byte threshold.
  3. Add a circuit breaker or retry-with-exponential-backoff for every network and database dependency.

Phase 4 — Report

Re-run the full fuzzer. For every input that previously caused a crash, show the new response.

InputBeforeAfter
1GB stringCrash / OOM400 Bad Request
Null inputUnhandled exceptionTyped error returned
Nested JSON 1k deepStack overflowRejected at boundary

Zero crashes is the target.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.