1

    Performance Testing k6 Pro

    by Matthew King

    Professional performance test planning and k6 script automation aligned with ISTQB standards.

    Updated Jun 2026
    0 installs

    Free

    Included in download

    • Downloadable skill package
    • 2 permissions declared
    • Instant install

    Sample input

    Create a load profile and k6 script for our checkout API. We expect 500 orders per hour at peak, with a p95 response time limit of 200ms.

    Sample output

    I've generated a k6 project scaffold. Load Profile: Peak 0.14 orders/sec (500/hr). Test Type: Load Test (Average Peak).

    import http from 'k6/http';
    import { check, sleep } from 'k6';
    
    export const options = {
      scenarios: {
        checkout_load: {
          executor: 'ramping-arrival-rate',
          startRate: 0,
          timeUnit: '1s',
          preAllocatedVUs: 10,
          maxVUs: 50,
          stages: [
            { target: 0.14, duration: '2m' }, // Ramp up
            { target: 0.14, duration: '10m' }, // Plateau
            { target: 0, duration: '2m' },    // Ramp down
          ],
        },
      },
      thresholds: {
        'http_req_duration{scenario:checkout_load}': ['p(95)<200'],
        'http_req_failed': ['rate<0.01'],
      },
    };
    
    export default function () {
      const res = http.post(`${__ENV.BASE_URL}/v1/checkout`, JSON.stringify({ item_id: 'prod_123' }), {
        headers: { 'Content-Type': 'application/json' },
      });
      check(res, { 'status is 201': (r) => r.status === 201 });
    }
    

    Validated with: k6 inspect checkout.js (Success).

    About This Skill

    Advanced Performance Engineering and k6 Automation

    Transform vague performance requirements into production-ready test suites. This skill acts as a senior performance architect and k6 engineer, bridging the gap between high-level business goals and technical execution. It solves the common problem of "testing in the dark" by applying ISTQB-aligned principles to identify risks, model realistic workloads, and generate maintainable test code.

    What it does

    • Strategic Planning: Generates comprehensive performance test plans covering risk assessment, environment requirements, and success criteria.
    • Workload Modeling: Converts user personas and production analytics into precise operational and load profiles (RPS, concurrency, pacing).
    • k6 Scaffolding: Builds modular, industry-standard k6 projects with support for arrival-rate executors, environment variable management, and threshold definitions.
    • Expert Review: Analyzes and scores existing test plans out of 100, identifying gaps in monitoring, data setup, or risk coverage.
    • SLA Discovery: Provides a structured "discovery + baseline" framework when formal SLAs or non-functional requirements are missing.

    Why use this skill

    Instead of manually writing boiler-plate k6 scripts or guessing at load levels, this skill ensures your performance testing is scientifically sound and risk-based. It follows a strict "safety first" approach, sequencing tests from smoke to stress, and includes a mandatory validation step using k6 inspect to ensure generated scripts are syntactically correct and ready for execution.

    Use Cases

    • Generate ISTQB-aligned performance test plans and risk assessments.
    • Scaffold maintainable, modular k6 automation suites for CI/CD.
    • Translate user personas into realistic technical load profiles and RPS.
    • Score and audit existing performance strategies for gaps and risks.
    • Recommend provisional SLAs and baselines for new or undocumented services.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Network Access

    Allowed Hosts

    test-api.example.com
    perf-api.example.com
    grafana.com
    example.test
    staging.example.com
    perf.example.com

    File Scopes

    performance-testing-k6-pro/**

    Creator

    Building quality-driven AI solutions that streamline complex processes, improve decision-making, and deliver outcomes you can trust.

    Frequently Asked Questions

    More Premium Skills

    Free