running-load-tests
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".
What this skill does
# 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
1. **Analyze Application**: Claude analyzes the user's request to understand the application's endpoints and critical paths.
2. **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.
3. **Generate Load Test Scripts**: Claude generates load test scripts (k6, JMeter, Artillery, etc.) based on the selected scenarios and application details.
4. **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:
1. Analyze the request and identify the need for a stress test on the /api/users endpoint.
2. 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:
1. Identify the need for a baseline load test to validate performance.
2. 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
1. Analyze application architecture and identify critical endpoints
2. Define test scenarios (baseline, stress, spike, soak, scalability)
3. Generate appropriate load test scripts using selected tool
4. Configure performance thresholds and acceptance criteria
5. Execute load tests and capture metrics
6. 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
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.