All skills
Skillintermediate
/run-load-test - Execute Load Test
Run load and stress tests against API endpoints or web pages.
Claude Code Knowledge Pack7/10/2026
Overview
/run-load-test - Execute Load Test
Run load and stress tests against API endpoints or web pages.
Steps
- Ask the user for the target URL or endpoint to test
- Determine load testing parameters: concurrent users (default 50), duration (default 60s), ramp-up period (default 10s)
- Check if a load testing tool is installed (k6, Artillery, or autocannon); recommend k6 if none found
- Create or locate the load test script for the target endpoint
- Configure request headers, authentication tokens, and payload if needed
- Execute the load test with the specified parameters
- Monitor real-time metrics: requests/sec, latency percentiles (p50, p95, p99), error rate
- Capture the full results including response time distribution
- Identify performance bottlenecks: slow endpoints, high error rates, timeout patterns
- Present results in a formatted table with pass/fail thresholds
- Save the results to a timestamped report file
Rules
- Never run load tests against production without explicit user confirmation
- Default to a conservative load profile (50 VUs, 60s duration) unless specified
- Always include a ramp-up period to avoid sudden spikes
- Monitor system resources if testing locally (CPU, memory)
- Stop the test immediately if error rate exceeds 50%
- Include response time percentiles, not just averages
- Warn if the target appears to be a third-party service