Load Test Runner
Create and execute load tests using k6, JMeter, and Artillery to validate application performance under stress, spike, soak, and scalability scenarios.
Overview
This skill empowers Claude to automate the creation and execution of load tests, ensuring applications can handle expected traffic and identify potential performance bottlenecks. It streamlines the process of defining test scenarios, generating scripts, and executing tests for comprehensive performance validation.
How It Works
- Analyze Application: Claude analyzes the user's request to understand the application's endpoints and critical paths.
- Identify Test Scenarios: Claude identifies relevant test scenarios, such as baseline load, stress test, spike test, soak test, or scalability test, based on the user's requirements.
- Generate Load Test Scripts: Claude generates load test scripts (k6, JMeter, Artillery, etc.) based on the selected scenarios and application details.
- Define Performance Thresholds: Claude defines performance thresholds and provides execution instructions for the generated scripts.
When to Use This Skill
This skill activates when you need to:
- Create load tests for a web application or API.
- Validate the performance of an application under different load conditions.
- Identify performance bottlenecks and breaking points.
Examples
Example 1: Creating a Stress Test
User request: "Create a stress test for the /api/users endpoint to simulate 1000 concurrent users."
The skill will:
- Analyze the request and identify the need for a stress test on the /api/users endpoint.
- Generate a k6 script that simulates 1000 concurrent users hitting the /api/users endpoint.
Example 2: Validating Performance After a Code Change
User request: "Validate the performance of the application after the recent code changes with a baseline load test."
The skill will:
- Identify the need for a baseline load test to validate performance.
- Generate a JMeter script that simulates normal traffic patterns for the application.
Best Practices
- Realistic Scenarios: Define load test scenarios that accurately reflect real-world usage patterns.
- Threshold Definition: Establish clear performance thresholds to identify potential issues.
- Iterative Testing: Run load tests iteratively to identify and address performance bottlenecks early in the development cycle.
Integration
This skill can be integrated with CI/CD pipelines to automate performance testing as part of the deployment process. It can also be used in conjunction with monitoring tools to correlate performance metrics with application behavior.
Prerequisites
- Load testing tools installed (k6, JMeter, or Artillery)
- Access to target application endpoints
- Test scenario definitions and expected load patterns
- Results storage location at ${CLAUDE_SKILL_DIR}/load-tests/
Instructions
- Analyze application architecture and identify critical endpoints
- Define test scenarios (baseline, stress, spike, soak, scalability)
- Generate appropriate load test scripts using selected tool
- Configure performance thresholds and acceptance criteria
- Execute load tests and capture metrics
- Analyze results and identify performance bottlenecks
Output
- Load test scripts (k6, JMeter, or Artillery format)
- Test execution logs and metrics
- Performance reports with response times and throughput
- Threshold violation alerts
- Recommendations for performance improvements
Error Handling
If load test execution fails:
- Verify tool installation and configuration
- Check network connectivity to target endpoints
- Validate authentication and authorization
- Review test script syntax and parameters
- Ensure sufficient system resources for test execution
Resources
- k6 documentation and examples
- JMeter user manual and best practices
- Artillery load testing guides
- Performance testing methodology references
1---
2name: running-load-tests
3description: Create and execute load tests for performance validation using k6, JMeter, and Artillery. Use when validating application performance under load conditions or identifying bottlenecks. Trigger with phrases like "run load test", "create stress test", or "validate performance under load".
4version: 1.0.0
5allowed-tools: "Read, Write, Edit, Grep, Glob, Bash(k6:*), Bash(jmeter:*), Bash(artillery:*), Bash(performance:*)"
6license: MIT
7author: Jeremy Longshore <jeremy@intentsolutions.io>
8compatible-with: claude-code, codex, openclaw
9metadata:
10 source: https://skillmd.com/skills/micsapp/running-load-tests
11---
12
13# Load Test Runner
14
15Create and execute load tests using k6, JMeter, and Artillery to validate application performance under stress, spike, soak, and scalability scenarios.
16
17## Overview
18
19This skill empowers Claude to automate the creation and execution of load tests, ensuring applications can handle expected traffic and identify potential performance bottlenecks. It streamlines the process of defining test scenarios, generating scripts, and executing tests for comprehensive performance validation.
20
21## How It Works
22
231. **Analyze Application**: Claude analyzes the user's request to understand the application's endpoints and critical paths.
242. **Identify Test Scenarios**: Claude identifies relevant test scenarios, such as baseline load, stress test, spike test, soak test, or scalability test, based on the user's requirements.
253. **Generate Load Test Scripts**: Claude generates load test scripts (k6, JMeter, Artillery, etc.) based on the selected scenarios and application details.
264. **Define Performance Thresholds**: Claude defines performance thresholds and provides execution instructions for the generated scripts.
27
28## When to Use This Skill
29
30This skill activates when you need to:
31- Create load tests for a web application or API.
32- Validate the performance of an application under different load conditions.
33- Identify performance bottlenecks and breaking points.
34
35## Examples
36
37### Example 1: Creating a Stress Test
38
39User request: "Create a stress test for the /api/users endpoint to simulate 1000 concurrent users."
40
41The skill will:
421. Analyze the request and identify the need for a stress test on the /api/users endpoint.
432. Generate a k6 script that simulates 1000 concurrent users hitting the /api/users endpoint.
44
45### Example 2: Validating Performance After a Code Change
46
47User request: "Validate the performance of the application after the recent code changes with a baseline load test."
48
49The skill will:
501. Identify the need for a baseline load test to validate performance.
512. Generate a JMeter script that simulates normal traffic patterns for the application.
52
53## Best Practices
54
55- **Realistic Scenarios**: Define load test scenarios that accurately reflect real-world usage patterns.
56- **Threshold Definition**: Establish clear performance thresholds to identify potential issues.
57- **Iterative Testing**: Run load tests iteratively to identify and address performance bottlenecks early in the development cycle.
58
59## Integration
60
61This skill can be integrated with CI/CD pipelines to automate performance testing as part of the deployment process. It can also be used in conjunction with monitoring tools to correlate performance metrics with application behavior.
62
63## Prerequisites
64
65- Load testing tools installed (k6, JMeter, or Artillery)
66- Access to target application endpoints
67- Test scenario definitions and expected load patterns
68- Results storage location at ${CLAUDE_SKILL_DIR}/load-tests/
69
70## Instructions
71
721. Analyze application architecture and identify critical endpoints
732. Define test scenarios (baseline, stress, spike, soak, scalability)
743. Generate appropriate load test scripts using selected tool
754. Configure performance thresholds and acceptance criteria
765. Execute load tests and capture metrics
776. Analyze results and identify performance bottlenecks
78
79## Output
80
81- Load test scripts (k6, JMeter, or Artillery format)
82- Test execution logs and metrics
83- Performance reports with response times and throughput
84- Threshold violation alerts
85- Recommendations for performance improvements
86
87## Error Handling
88
89If load test execution fails:
90- Verify tool installation and configuration
91- Check network connectivity to target endpoints
92- Validate authentication and authorization
93- Review test script syntax and parameters
94- Ensure sufficient system resources for test execution
95
96## Resources
97
98- k6 documentation and examples
99- JMeter user manual and best practices
100- Artillery load testing guides
101- Performance testing methodology references