K6 Load Test
Automates k6 load tests, generating reports and identifying performance bottlenecks in web applications.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add k6-load-test npx -- -y @trustedskills/k6-load-test
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"k6-load-test": {
"command": "npx",
"args": [
"-y",
"@trustedskills/k6-load-test"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to execute performance testing scripts using the k6 tool, allowing them to simulate user load on web applications and APIs. It facilitates automated stress testing to identify bottlenecks and ensure system stability under specific traffic conditions.
When to use it
- Validating that a new deployment can handle expected concurrent users without latency spikes.
- Simulating peak traffic scenarios to verify database connection limits and server scalability.
- Automating regression testing after code changes to catch performance regressions early in the CI/CD pipeline.
- Generating load test reports to document system capacity for stakeholders or compliance requirements.
Key capabilities
- Scripting and running load tests using the k6 JavaScript-based engine.
- Simulating virtual users sending requests to target endpoints.
- Collecting and analyzing metrics such as response times, error rates, and throughput.
- Integrating with CI/CD workflows for automated performance validation.
Example prompts
- "Run a load test on our
/api/usersendpoint simulating 500 concurrent users for 10 minutes." - "Generate a k6 script to stress-test the checkout flow and report any response times exceeding 2 seconds."
- "Execute an existing k6 performance test suite against the staging environment and summarize the results."
Tips & gotchas
Ensure the target application is accessible from the machine where the agent executes the tests, as network firewalls may block incoming load simulation traffic. Configure appropriate vus (virtual users) and duration parameters in your scripts to match realistic production scenarios rather than defaulting to minimal values.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.