QP

qainsights/perf-skills

API development
23 stars Quality 70 Trend 31MIT

perf-skills is a structured knowledge base that gives AI coding assistants deep, opinionated expertise in performance testing.

Overview

An opinionated, token-optimized knowledge base for planning, scripting, executing, and analyzing load tests across any major tool. "The more you sweat in training, the less you bleed in battle." - Richard Marcinko "The more relevant skills your AI loads during development, the fewer fires you fight in production." perf-skills is a highly structured knowledge base designed specifically for AI coding assistants (like Claude, Cursor, Windsurf, etc.). It injects deep, expert-level performance testing context on-demand, allowing your AI to generate correct scripts, follow best practices, and debug bottlenecks without bloating its context window. A major highlight of this library is the engine (correlation.md). Correlation is often the most fragile part of performance scripting; perf-skills equips your AI with robust strategies to handle it flawlessly: - : Standardizes identifying, extracting, injecting, and verifying dynamic tokens. - : Strategies for Next.

README

⚡ Performance Testing Skills (perf-skills)

Turn your AI assistant into a senior performance engineer. An opinionated, token-optimized knowledge base for planning, scripting, executing, and analyzing load tests across any major tool.

“The more you sweat in training, the less you bleed in battle.” - Richard Marcinko
“The more relevant skills your AI loads during development, the fewer fires you fight in production.”


📖 Table of Contents


🔍 What is perf-skills?

perf-skills is a highly structured knowledge base designed specifically for AI coding assistants (like Claude, Cursor, Windsurf, etc.). It injects deep, expert-level performance testing context on-demand, allowing your AI to generate correct scripts, follow best practices, and debug bottlenecks without bloating its context window.


📦 Supported Tools & Protocols

Category Supported Technologies
Open Source Apache JMeter, k6 (Grafana Labs), Gatling, Locust, Artillery
Commercial/SaaS NeoLoad (Tricentis), LoadRunner (OpenText), OctoPerf
Protocols HTTP/REST, gRPC, GraphQL, WebSocket, SSE, JDBC, SOAP, Kafka/MQ, Citrix, SAP
AI/ML LLM inference benchmarking (vLLM, TRT-LLM, SGLang), SLO/capacity planning

⛓️ Dynamic Value Correlation

A major highlight of this library is the Dynamic Value Correlation engine (correlation.md). Correlation is often the most fragile part of performance scripting; perf-skills equips your AI with robust strategies to handle it flawlessly:

  • The Correlation Workflow: Standardizes identifying, extracting, injecting, and verifying dynamic tokens.
  • Advanced Scanning: Strategies for Next.js/React SSR hydration payloads (__NEXT_DATA__), SPA client-side token retrieval, runtime hooking, and Swagger contract mapping.
  • Robust vs. Brittle Regex: Guides your AI to write expressions that don’t break on minor HTML structure modifications.
  • Tech Stack Rules: Pre-defined extraction rules for enterprise environments:
    • ASP.NET: ViewState, RequestVerificationToken, EventValidation.
    • Java: JSF ViewState, Spring Security _csrf, JSESSIONID.
    • SAP & Oracle: NetWeaver sap-contextid, ADF _afrLoop.
    • OAuth 2.0 / SAML: SAMLResponse, code, state tokens.
    • Modern SSR/SPA: Hydration states, Laravel _token, Django csrfmiddlewaretoken, Rails authenticity_token.
  • Diagnostic Playbook: Step-by-step troubleshooting for URL-encoding, base64 url-safe transforms, JSON-escaping, and thread safety.

🛠️ Compatible AI Assistants

perf-skills works seamlessly with any modern AI development tool:

AI Assistant Integration Method
Claude Code Native Plugin or CLAUDE.md context referencing
Qwen Code Native Skill (/perf) or QWEN.md context referencing
Windsurf (Cascade) Local Skill configuration
Cursor Custom rules .cursor/rules/ or index via @Docs
Cline / Roo Code Workspace instructions / custom rules
Aider Conventions file or /read context loading
GitHub Copilot Repository-level custom instructions
Antigravity / Pochi Context files / instruction references

🚀 Installation & Setup

To install as a Claude Code plugin, run:

/plugin marketplace add QAInsights/perf-skills
/plugin install perf@qainsights
/reload-plugins

Once installed, the /perf skill will be available and automatically load when you ask performance-related questions.

To update to the latest version:

/plugin marketplace update
/plugin uninstall perf
/plugin install perf@qainsights
/reload-plugins

Qwen Code Skill

Install as a user-level skill so /perf is available in every project:

qwen skills add QAInsights/perf-skills

Or for a single project, copy the skill directory and reference it in QWEN.md:

cp -r perf-skills/skills/perf ./perf

For performance testing questions, read `perf/SKILL.md` for routing, then load the relevant reference files from `perf/references/`.

Install as local Skills (npx)

If you are using a tool that supports npx skills, add it directly:

npx skills add QAInsights/perf-skills

Setup for Other Editors


📂 File Structure & Routing

Here is how the knowledge base is organized. The entry point SKILL.md routes queries to specific reference guides to keep prompt sizes minimal. The topic references also include a tool-selection guide backed by the perf.jmeter.ai catalog for broader recommendations.

perf-skills/
├── .claude-plugin/
│   ├── marketplace.json                  # Claude Code marketplace catalog
│   └── plugin.json                       # Claude Code plugin manifest
├── README.md
├── LICENSE.md
└── skills/
    └── perf/                             # Skill module
        ├── SKILL.md                      # [Entry Point] Routing, Key Principles
        └── references/
            ├── tools/                    # Tool-specific syntax & configs
            │   ├── jmeter.md             # Apache JMeter (Groovy, Samplers, Extractors)
            │   ├── k6.md                 # k6 JS/TS scripting, thresholds, VU options
            │   ├── gatling.md            # Gatling Scala/Java DSL & feeders
            │   ├── locust.md             # Locust Python scripting & FastHttpUser
            │   ├── artillery.md          # Artillery YAML/JS/TS scripting, phases, ensure SLOs, cloud
            │   ├── neoload.md            # NeoLoad GUI configs & API execution
            │   ├── loadrunner.md         # LoadRunner VuGen C scripting
            │   └── octoperf.md           # OctoPerf JMeter-based cloud execution
            └── topics/                   # Cross-cutting topics (Tool-agnostic)
                ├── workload-design.md    # Little's Law, concurrency, pacing
                ├── test-data.md          # Parameterization, CSV, data isolation
                ├── script-generation.md  # Naming conventions, error handling
                ├── correlation.md        # Dynamic values, Regex, JSONPath (Highlighted!)
                ├── test-execution.md     # Distributed load, CI/CD pipelines
                ├── results-analysis.md   # Latency percentiles, bottleneck triage
                ├── observability.md      # Grafana, APM integration, VM profiling
                ├── production-testing.md # Chaos engineering, canary safety controls
                ├── protocol-testing.md   # gRPC, GraphQL, WebSockets, Kafka
                ├── database-testing.md   # JDBC, pools, deadlocks, slow queries
                ├── modern-architectures.md # K8s scaling, HPA, Frontend CWV
                ├── llm-inference.md     # LLM serving: TTFT, TPOT/ITL, TPS, goodput, tools
                ├── tool-selection.md   # Tool alternatives, comparisons, and catalog lookup
                └── slo-capacity.md      # SLOs, error budgets, headroom, CI gating

💡 How the Skill Works

To avoid hitting context window limits, the skill operates on a selective loading design:

  1. Routing: SKILL.md is always read first.
  2. Selective Context: Based on the query, only the exact tool file (e.g., k6.md) and the relevant topic file (e.g., correlation.md) are loaded.
  3. Consistency: Global rules (like realistic think times and assertions) are enforced uniformly across all tool files by anchoring them in SKILL.md.

❓ Example Queries and Loaded Files

Query Files Loaded
“Help me write a k6 load test for our REST API” k6.md
“How should I correlate a dynamic JSESSIONID in JMeter?” jmeter.md + correlation.md
“Set up a distributed Locust execution in GitLab CI” locust.md + test-execution.md
“Our p95 latency spikes during database writes, how do we fix?” database-testing.md + results-analysis.md
“What TTFT/throughput can our vLLM endpoint sustain at 200 concurrent users?” llm-inference.md
“How many replicas do we need, and what SLO headroom should we keep?” slo-capacity.md
“Which load testing tool should we use for a gRPC service on-prem?” tool-selection.md

✅ Eval-Verified Quality

This skill is tested with 12 eval cases across 8 categories (k6, JMeter, Artillery, Locust, tool selection, migration, LLM inference, SLO/capacity). Each eval verifies that the skill context produces correct, concrete answers with code examples - not just generic advice.

Category Evals What it verifies
k6 1, 5, 7 Checks vs thresholds, executor choice, SLA baselines
JMeter 3 OOM diagnosis, listener memory leak
Artillery 8, 9 ensure CI gating, arrivalRate vs concurrency
Locust 6 catch_response silent failure
Tool selection 2, 12 Kafka and catalog-driven tool recommendation
Migration 4 LoadRunner-to-k6 concept mapping
LLM inference 10 TTFT/TPOT metrics, benchmarking tools
SLO/capacity 11 Error budgets, burn rate CI gating

Run them yourself - see .claude/CLAUDE.md for instructions.


🤝 Contributing

We welcome contributions to expand the knowledge base:

  1. Tool-specific syntax belongs in references/tools/.
  2. Generic concepts belong in references/topics/.
  3. Keep it DRY: Reference topic files from tool files instead of duplicating.
  4. Update the Index: Remember to update the Reference Map in SKILL.md when adding files.

📄 License

This project is licensed under the MIT License. See LICENSE.md for details. tails.

View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add qainsights/perf-skills
New to MCP? Start with the mcpskill.org guide →