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-tests3description: 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".4license: MIT5---6# Load Test Runner
7
8Create and execute load tests using k6, JMeter, and Artillery to validate application performance under stress, spike, soak, and scalability scenarios.
9
10## Overview
11
12This 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.
13
14## How It Works
15
161. **Analyze Application**: Claude analyzes the user's request to understand the application's endpoints and critical paths.
172. **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.
183. **Generate Load Test Scripts**: Claude generates load test scripts (k6, JMeter, Artillery, etc.) based on the selected scenarios and application details.
194. **Define Performance Thresholds**: Claude defines performance thresholds and provides execution instructions for the generated scripts.
20
21## When to Use This Skill
22
23This skill activates when you need to:
24
25- Create load tests for a web application or API.
26- Validate the performance of an application under different load conditions.
27- Identify performance bottlenecks and breaking points.
28
29## Examples
30
31### Example 1: Creating a Stress Test
32
33User request: "Create a stress test for the /api/users endpoint to simulate 1000 concurrent users."
34
35The skill will:
36
371. Analyze the request and identify the need for a stress test on the /api/users endpoint.
382. Generate a k6 script that simulates 1000 concurrent users hitting the /api/users endpoint.
39
40### Example 2: Validating Performance After a Code Change
41
42User request: "Validate the performance of the application after the recent code changes with a baseline load test."
43
44The skill will:
45
461. Identify the need for a baseline load test to validate performance.
472. Generate a JMeter script that simulates normal traffic patterns for the application.
48
49## Best Practices
50
51- **Realistic Scenarios**: Define load test scenarios that accurately reflect real-world usage patterns.
52- **Threshold Definition**: Establish clear performance thresholds to identify potential issues.
53- **Iterative Testing**: Run load tests iteratively to identify and address performance bottlenecks early in the development cycle.
54
55## Integration
56
57This 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.
58
59## Prerequisites
60
61- Load testing tools installed (k6, JMeter, or Artillery)
62- Access to target application endpoints
63- Test scenario definitions and expected load patterns
64- Results storage location at ${CLAUDE_SKILL_DIR}/load-tests/
65
66## Instructions
67
681. Analyze application architecture and identify critical endpoints
692. Define test scenarios (baseline, stress, spike, soak, scalability)
703. Generate appropriate load test scripts using selected tool
714. Configure performance thresholds and acceptance criteria
725. Execute load tests and capture metrics
736. Analyze results and identify performance bottlenecks
74
75## Output
76
77- Load test scripts (k6, JMeter, or Artillery format)
78- Test execution logs and metrics
79- Performance reports with response times and throughput
80- Threshold violation alerts
81- Recommendations for performance improvements
82
83## Error Handling
84
85If load test execution fails:
86
87- Verify tool installation and configuration
88- Check network connectivity to target endpoints
89- Validate authentication and authorization
90- Review test script syntax and parameters
91- Ensure sufficient system resources for test execution
92
93## Resources
94
95- k6 documentation and examples
96- JMeter user manual and best practices
97- Artillery load testing guides
98- Performance testing methodology references