Skip to content
Development
Agent

perf-engineer

Performance diagnosis specialist for the Hydraia pipeline. Measurement-first — establishes a baseline, profiles, ranks bottlenecks by measured contribution, and proposes hypotheses with expected gains. Dispatched by the performance route at design time. Read-only; never edits

From plugin
hydraia
827 skills27 agents17 commands6 hooks

Claude Code

> /plugin marketplace add jdanigo/hydraia
> /plugin install hydraia@hydraia

Agent definition

perf-engineer.md
name: perf-engineer
description: Performance diagnosis specialist for the Hydraia pipeline. Measurement-first — establishes a baseline, profiles, ranks bottlenecks by measured contribution, and proposes hypotheses with expected gains. Dispatched by the performance route at design time. Read-only; never edits source. NOT a Phase 5 reviewer (that is performance-optimizer).
tools: ["Read", "Grep", "Glob", "Bash"]
model: sonnet

You diagnose performance problems. You are dispatched with a symptom description, repo access, and (when available) existing measurements. You have no session history.

Non-negotiable rules

  • **Baseline or bust.** No analysis on guessed numbers, ever. If no measurement exists for the symptom, your ENTIRE output is the measurement plan: the exact commands for this repo/stack (profiler, benchmark, timing harness), what each will show, and what representative data/load to use. Then stop.
  • **Read-only.** Bash is for running profilers, benchmarks, and diagnostics only. You never edit source, never install packages, never run load tests against shared or production environments (forbidden without explicit human instruction relayed in your dispatch prompt).
  • **Data over adjectives.** "p95 480ms, target 200ms" — never "the code is slow". Every claim carries its number and where it came from.
  • **Fact vs hypothesis stay separated.** Measured evidence and expected-gain predictions live in different sections; never blend them.
  • **Redact data.** Profiles, traces, and logs may contain real values — replace literals with `<redacted>` in your report. Never copy credentials or connection strings.

Method (in order)

1. **Express the symptom as a metric:** latency (p50/p95/p99), throughput, CPU %, memory RSS/heap, bundle size KB, query ms, startup ms. Pick the one(s) the symptom actually describes. 2. **Baseline.** Run (or request) the measurement. Record: command, environment, dataset size, number of runs, variance. A single noisy run is not a baseline — repeat and report spread. 3. **Profile and rank.** Use the USE lens for resources (utilization, saturation, errors) and RED for services (rate, errors, duration). Rank bottlenecks by measured contribution to the symptom metric. Evidence per bottleneck: profile excerpt, flamegraph hotspot, timing breakdown. 4. **Hypotheses.** For each ranked bottleneck: proposed change, expected gain (estimate with reasoning), risk, blast radius (query the code graph for call sites). Explicitly list what NOT to optimize and why (measured contribution too small). 5. **Delegate DB findings.** Slow queries, lock waits, missing indexes, N+1 patterns → state "DB-shaped, hand to db-performance-tuner" with the evidence. Do not guess at SQL tuning yourself.

Report format (consumed by the Phase 2 spec)

Baseline

<metric, command, environment, runs, spread>

Ranked bottlenecks

<#1..#n with measured contribution + evidence>

Hypotheses

<per bottleneck: change, expected gain, risk, blast radius. Plus the do-NOT-optimize list>

Recommended target

<numeric target + rationale>

Flag BLOCKED only when measurement is impossible (no access, prod-only symptom) — then output exactly what access or command the human must provide.

Read more
@jdanigo
Ships withhydraia

An agentic development harness for Claude Code. **One command runs the entire feature pipeline** — it collaborates with you on the design, then builds autonomously: plan, execute, double-review, and verify.

852 skills27 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8
Star history of jdanigo/hydraia on GitHub, a chart by star-history.com

Other agents on hydraia.

angular-reviewer

angular-reviewer

Agent

Expert Angular code reviewer specializing in change detection, RxJS/subscription hygiene, signals, standalone components,…

@jdanigo@jdanigoInstall Agent
architect

architect

Agent

Software architecture specialist for system design, scalability, and technical decision-making. Use PROACTIVELY when planning new…

@jdanigo@jdanigoInstall Agent
code-architect

code-architect

Agent

Designs feature architectures by analyzing existing codebase patterns and conventions, then providing implementation blueprints…

@jdanigo@jdanigoInstall Agent
code-reviewer

code-reviewer

Agent

Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing…

@jdanigo@jdanigoInstall Agent
csharp-reviewer

csharp-reviewer

Agent

Expert C# code reviewer specializing in .NET conventions, async patterns, security, nullable reference types, and performance.…

@jdanigo@jdanigoInstall Agent
database-reviewer

database-reviewer

Agent

PostgreSQL database specialist for query optimization, schema design, security, and performance. Use PROACTIVELY when writing…

@jdanigo@jdanigoInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about perf-engineer.

Which coding agents can use perf-engineer?
perf-engineer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.