Detailed procedure
Use the input contract in SKILL.md; resolve its required information before dependent actions.
Input: the resolved request: system/journey, target environment, authorized workload and acceptance thresholds. Not an isolated microbenchmark or permission to send traffic to an arbitrary URL. Read .claude/framework/testing.md, STATE.md, applicable project decisions and actual manifests/test configuration. Use the existing runner and installed versions; unfamiliar APIs/flags need installed-source or official-document verification. No automatic package/tool installation, credentials, global changes, paid services or destructive operations. Reuse existing authorization for ordinary local work. Load only relevant profiles and test references; never all testing skills for every change.
- Inspect application endpoints, dependencies, existing load tooling/version and observability. Before traffic, resolve missing target ownership/authorization, test-data effects, workload/rate or concurrency, maximum duration/resource budget, thresholds and stop/cleanup plan. Group missing questions in small batches; elapsed time is not approval. Prepare local plans/scripts while dependent execution waits.
- Use
.claude/framework/templates/load-test-plan.md. Specify request mix, data size, authentication strategy, cache/state assumptions, open arrival-rate versus closed concurrency model, ramp/warm-up/steady phases, request timeout, duration, max workers/connections and stop thresholds. Do not infer request rate from concurrent users alone. Stress/spike/soak workloads need an explicitly bounded scope of their own. - Implement scripts with existing verified tooling. Assert response correctness and business outcomes as well as status; define explicit automated failure thresholds supported by that runner. No silent retries masking errors, unbounded workers or disabled TLS verification. New tools/cloud capacity/credentials require authorization.
- Execute only the authorized target/profile, beginning with a bounded smoke run within the agreed budget. Stop on agreed error/latency/resource triggers. Record requested and achieved rate, completed/failed/dropped work, latency distribution with sample counts, observed resource use and load-generator limits. Do not claim server capacity if the generator saturated or scheduled work was dropped.
- Preserve raw metrics safely and record source/dependency versions, environment, exact command/exit, workload and deviations. Unknown observability/thresholds stay UNVERIFIED, not passed. Report cleanup and residual risks in docs/project/testing/. Use iteration-review for substantial script/code changes; cap review/fix rounds at two. No production/shared-service traffic, remote publication or paid infrastructure is authorized implicitly.