Complete reference materials for comprehensive k6 performance test planning.
- load-profiles.md — Standard VU and duration profiles (minimal, standard, aggressive)
- sla-defaults.md — Default SLA thresholds and parsing rules
- protocol-guide.md — HTTP, gRPC, and browser protocol patterns and examples
- data-integration.md — CSV/JSON/environment variable data source patterns
- certainty-and-compact-output.md — Verified-facts-only and compact response guidance
- exploratory-planning.md — Auto-detected exploratory mode, inferred flows, and provisional handoff rules
- SLA parsing, threshold derivation, and metric mapping
- Scenario-to-executor mapping heuristics (load, stress, spike, soak, smoke)
- Profile defaults, stage construction, and duration estimation
- Protocol-specific planning (HTTP, gRPC, browser VU requirements)
- Data source selection and integration strategies
- HTTP method confirmation and auth discovery for executable plans
- Exploratory planning from estimated load goals or application codebase context
- Deterministic next-step selection from unresolved dependencies
- Cloud runtime-family gating for v1.x/v2.x compatibility
- Cloud distribution validation (
options.cloud.distributionpercent sum must equal 100) - strict certainty reporting and compact handoff outputs
Use this exact runtime family taxonomy across plan, builder, and validate:
V0_53_TO_V1_5V1_6_PLUS_V1_XV2_0_PLUS
Verified cloud routing/auth env keys:
K6_CLOUD_TOKENK6_CLOUD_STACK_IDK6_CLOUD_PROJECT_ID
- Scenario type: objective shape (
load,stress,spike,soak,smoke) used to select executor strategy. - Profile: intensity preset (
minimal,standard,aggressive) used to derive defaultvusanddurationwhen missing. - Round: one consolidated question block in the same adaptive question system; baseline questions are Round 1 and optional tie-break is Round 2.
- Exploratory mode: suggested plan generation from partial requirements or codebase evidence, with explicit pending clarifications.
- Explicit means user-provided; derived means deterministic defaults declared in assumptions.
- Plans must include explicit thresholds — provided by user, derived from defaults, or emitted as
suggested_slacandidates in exploratory mode - Plans must include explicit load profile — minimum:
vusandduration, or staged equivalents - Missing critical parameters trigger the question protocol before plan generation
- All assumptions must be listed in output when defaults are applied
- Each plan includes executor recommendation with explicit rationale
- Runnable URL hard-coding is forbidden in executable output; require
__ENV.BASE_URLstyle variables - Auth discovery is mandatory before final handoff to k6-builder when auth requirements are uncertain
- Exploratory plans must remain non-runnable until
ready_for_builderblockers are cleared
When clarification is required (and provisional plan policy does not apply), return only:
missing: <comma-separated list of missing fields>
why: <one sentence explaining why these fields are required>
next_question: <single question that unblocks the next step>
Rules:
- Use exactly these three fields.
- Do not include partial plan fragments in clarification output.
- Ask only one next question, even if multiple fields are missing.
- If core test shape is clear but
targetorslais missing, generate a provisional plan with[assumption-based]labels. - Always include
pending_questionslisting each assumption and why it is needed. - If application-context exploration yields candidate routes or flows, include them under
inferred_targetsorinferred_flowsand keepready_for_builder: false.
Before finalizing an HTTP plan:
- Confirm target endpoint and primary method (
GET,POST,PUT,PATCH,DELETE). - If method is missing, ask for method before producing executable output.
- Validate payload shape for write operations (
POST/PUT/PATCH) and expected response status. - Add method-specific check guidance (status, latency, and optional response schema checks).
Before finalizing a plan and handoff recommendations:
- Determine auth mode: none, bearer token, API key, basic auth, session cookie, or mTLS.
- Declare required environment variables explicitly.
- Never place credentials inline in examples.
Every final plan must contain exactly one Next recommended step chosen by this order:
- Missing target or method
- Missing SLA
- Missing auth details
- Missing data source definition
- Handoff to k6-builder for runnable artifact generation
When building a test plan, the skill gathers these decisions:
- Target endpoint/URL — what are we testing?
- Scenario type — load, stress, spike, soak, or smoke?
- SLA requirements — latency (p95/p99), error rate, success rate?
- Protocol context — HTTP, gRPC, browser, or mixed?
- Load profile — explicit VUs/duration, or derive from scenario?
- Exploratory evidence — is there enough app or request context to suggest targets, flows, and SLA candidates?
User asks: "plan a k6 load test for my API"
- Executor asks: What's the target URL?
- Executor asks: What scenario type? (default: load)
- Executor asks: What are your SLA requirements? (default: standard profile)
- Executor derives: HTTP protocol, ramping-vus executor, standard load profile
- Executor generates: Complete plan with thresholds, stages, and assumptions listed
Exploratory variant:
-
User asks: "Quiero validar si soportaré 2 mil usuarios concurrentes durante 1h para los flujos principales de mi backend"
-
Executor derives:
scenario=loadfrom the sustained validation goal and inspects the available app context if the workspace contains the backend -
Executor suggests: candidate routes or business flows, one or more
suggested_slavalues from profile defaults, and explicitpending_clarifications -
Executor marks:
plan_mode: exploratoryandready_for_builder: false -
Executor asks: What's the target URL?
-
Executor asks: What scenario type? (default: load)
-
Executor asks: What are your SLA requirements? (default: standard profile)
-
Executor derives: HTTP protocol, ramping-vus executor, standard load profile
-
Executor generates: Complete plan with thresholds, stages, and assumptions listed