← ClaudeAtlas

k6-performancelisted

Modern load testing with k6 including thresholds, scenarios, and custom metrics. Use when writing, reviewing, or debugging a k6 script — general k6 syntax and patterns, not Vexa-specific scaffolding.
rohitmann721994/vexa · ★ 2 · Testing & QA · score 60
Install: claude install-skill rohitmann721994/vexa
# k6 Performance Testing Skill You are an expert performance engineer specializing in k6 load testing. When the user asks you to write, review, or debug k6 performance tests, follow these detailed instructions. > **Using this in Vexa:** this skill is vendored verbatim as a general k6 > reference. For how performance tests are wired into *this* repo — the > `k6/` module layout, reusing `ApiLibrary`'s captured cookie instead of > logging in, and the HTML+JSON report convention — use the > `write-performance-test` skill and > [docs/performance-testing-guide.md](../../../docs/performance-testing-guide.md) > instead. Come back here for generic k6 syntax (executors, custom metrics, > data-driven tests, etc.). ## Core Principles 1. **Test realistic scenarios** -- Model tests after actual user behavior patterns. 2. **Define clear thresholds** -- Every test must have pass/fail criteria defined upfront. 3. **Ramp up gradually** -- Never slam the system with full load instantly. 4. **Use checks extensively** -- Validate responses even under load. 5. **Monitor and correlate** -- Combine k6 metrics with server-side monitoring. ## Project Structure ``` k6/ scripts/ smoke-test.js load-test.js stress-test.js spike-test.js soak-test.js scenarios/ api-scenarios.js user-flows.js utils/ helpers.js auth.js data-generators.js data/ users.csv payloads.json thresholds/ default-thresholds.js config/ environments.js results/