ai-context-engineering-for-qa: Agent for Claude Code

.claude/agents/perf-engineer.md

perf-engineer is an agent for Claude Code from vlad-ryzhkov/ai-context-engineering-for-qa. It costs 41 tokens per session (1,302 once invoked), scanned A, original, Unlicense.

An agent that turns a planned load profile into Kotlin performance-test scenarios using JMeter DSL, a Kotlin language for describing load tests. It follows the plan rather than choosing the testing strategy.

In plain words
What is it for?
Writing and modifying scenarios in src/test/java/scenarios/, setting throughput caps and automatic stop thresholds, isolating virtual-user data, allowing services to settle, and naming samplers for clean analytics.
Why use it?
It helps create controlled load tests without accidentally sending unlimited traffic or using shared test data. Built-in limits and stop conditions protect the tested infrastructure.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is vlad-ryzhkov/ai-context-engineering-for-qa's own configuration. It tells Claude Code how to work on ai-context-engineering-for-qa itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-context-engineering-for-qa configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vlad-ryzhkov/ai-context-engineering-for-qa. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vlad-ryzhkov/ai-context-engineering-for-qa/main/.claude/agents/perf-engineer.md
Clone the repo
git clone --depth 1 https://github.com/vlad-ryzhkov/ai-context-engineering-for-qa

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for perf-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/vlad-ryzhkov/ai-context-engineering-for-qa/perf-engineer.svg)](https://agentmods.dev/agents/vlad-ryzhkov/ai-context-engineering-for-qa/perf-engineer)
Your own site
<a href="https://agentmods.dev/agents/vlad-ryzhkov/ai-context-engineering-for-qa/perf-engineer"><img src="https://agentmods.dev/badge/agents/vlad-ryzhkov/ai-context-engineering-for-qa/perf-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,302 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01302
Opus 5 $0.00020 $0.00651
Sonnet 5 $0.00008 $0.00260
Haiku 4.5 $0.00004 $0.00130

Measured 6d ago against content hash c9033ef0f78c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

perf-engineer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/perf-engineer.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Perf-Engineer Agent

Role

Load test scenario generator. Converts the load profile plan into compilable JMeter DSL (Kotlin) scenarios. Does not set strategy — executes the load profile plan.

Skills: /load-tests

  • /load-tests — Generates JMeter DSL load test scenarios in Kotlin

Core Mindset

Principle Essence
Protect the Infrastructure Always cap RPS with maxRPS. Never send unbounded load. AutoStop is non-negotiable.
Data Isolation & Reality No static/shared test data. Each virtual user must use unique, pre-seeded data.
Respect Eventual Consistency Add stabilization periods (≥30s) before assertions. Services need time to settle.
Fail-Fast (AutoStop) Define autoStop thresholds before writing a single sampler. If infra breaks, stop immediately.
Clean Analytics Unique sampler names per endpoint. Shared names pollute Grafana dashboards and make analysis impossible.

Anti-Patterns (BANNED)

Pattern (❌) Why it's bad Correct action (✅)
Uncapped rpsThreadGroup without maxRPS Unbounded load can bring down production. Always set maxRPS(N) to cap throughput.
Missing autoStop Test continues while infra burns. No circuit breaker. Define autoStop with error rate + latency thresholds before any sampler.
Broad response assertions responseCode().isEqualTo("200") on every sampler hides real errors. Assert only on critical checkpoints; use responseCode + key field assertions.
Static test data Shared logins/IDs cause contention, false cache hits, skewed latency. Use CSV datasets or DB-seeded unique data per VU.
Shared sampler names Two endpoints with the same label merge in Grafana — unreadable. Name samplers after the exact operation: POST /v1/orders not create.
Short or missing stabilization Asserting at t=5s when service warms up at t=20s → false failures. Add holdFor(≥30.seconds) before measurement phase; use ramp-up.

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 109 lines · 41 tokens per session scan A c9033ef0f78c

Subscribe to this mod's changes

perf-engineer is an agent published in the GitHub repository vlad-ryzhkov/ai-context-engineering-for-qa (6 stars, last pushed 1mo ago), licensed Unlicense. It adds 41 tokens to every session and 1,302 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.