java/src/main/resources/targets/claude/skills/conditional/test/x-test-perf/SKILL.md
Runs performance tests to validate latency SLAs, throughput targets, and resource stability under load. Supports baseline, normal, peak, and sustained scenarios.
npx skillsauth add edercnj/ia-dev-environment x-test-perfInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run or implement performance tests to validate the application meets latency SLAs, throughput targets, and resource stability requirements under various load conditions. Measure p50/p95/p99 latency, transactions per second (TPS), error rates, and memory stability.
Include this skill for projects with performance testing requirements.
/x-test-perf baseline -- single user, sequential requests/x-test-perf normal -- expected daily load/x-test-perf peak -- maximum expected concurrent load/x-test-perf sustained -- constant load over extended period (30 min+)/x-test-perf all -- run all scenarios/x-test-perf normal --save-baseline -- save results as baseline/x-test-perf normal --compare-baseline -- compare against stored baseline| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| scenario | String | No | all | Scenario: baseline, normal, peak, sustained, all |
| --save-baseline | Flag | No | false | Save results to results/performance/baseline.json |
| --compare-baseline | Flag | No | false | Compare results against stored baseline |
Baseline (single user warmup):
Normal Load (daily traffic):
Peak Load (traffic spike):
Sustained Load (stability / memory leak detection):
Compare current test results against stored baseline:
| Metric | Regression Condition | Severity | |--------|---------------------|----------| | p99 latency | Current > baseline * 1.2 (20% degradation) | FAIL | | p95 latency | Current > baseline * 1.15 (15% degradation) | WARN | | throughput (RPS) | Current < baseline * 0.85 (15% drop) | FAIL | | error rate | Current > baseline + 0.5% (absolute) | FAIL |
Summary table with all metrics vs SLA targets:
| Metric | Baseline | Normal | Peak | Sustained | |--------|----------|--------|------|-----------| | p50 latency | < 10ms | < 20ms | < 50ms | < 25ms | | p95 latency | < 50ms | < 150ms | < 300ms | < 150ms | | p99 latency | < 100ms | < 300ms | < 500ms | < 200ms | | Error rate | 0% | < 0.1% | < 0.5% | < 0.1% | | Memory growth | N/A | N/A | N/A | < 10% |
Performance tests require realistic data generators:
When --save-baseline is specified:
results/performance/baseline.jsonbaseline.prev.json){
"version": "1.0",
"timestamp": "ISO-8601",
"scenario": "normal",
"metrics": {
"endpoint_or_operation": {
"p50_ms": 10,
"p95_ms": 45,
"p99_ms": 95,
"throughput_rps": 1200,
"error_rate_pct": 0.1
}
}
}
| Metric | Absolute Threshold | Relative Threshold (vs baseline) | |--------|-------------------|--------------------------------| | p99 latency | Scenario SLA (see table above) | +20% vs baseline | | p95 latency | Scenario SLA (see table above) | +15% vs baseline | | throughput | Scenario minimum TPS | -15% vs baseline | | error rate | Scenario max error rate | +0.5% absolute vs baseline |
| Scenario | Action | |----------|--------| | Performance framework not installed | Report missing tool with install instructions | | Application health check fails | Abort with health check failure details | | Baseline file not found for comparison | Warn and continue without regression detection | | SLA threshold exceeded | Report FAIL with metric details and recommendations |
| Skill | Relationship | Context |
|-------|-------------|---------|
| x-perf-profile | calls | Use /x-perf-profile cpu for latency regressions, memory for throughput regressions |
testing
Scaffolds a Helidon SE/MP service with routing, health, config, Dockerfile, and tests.
tools
Generates a Picocli @Command with subcommands, options, converters, and unit tests.
testing
Scaffolds a Micronaut service with @Controller, DI, health, Dockerfile, and tests.
testing
Scaffolds a Helidon SE/MP service with routing, health, config, Dockerfile, and tests.