performance-expert-csk

performance-expert-csk is an agent for Claude Code from byerlikaya/claude-starter-kit. It costs 52 tokens per session (1,226 once invoked), scanned A, original, MIT.

A read-only reviewer that investigates whether code changes may make software slower or use more memory. It examines hot paths, queries, loops, rendering, large payloads, reported slowness, and timeouts.

In plain words
What is it for?
Use it when changing performance-sensitive code or investigating slow responses, lag, memory leaks, or timeouts. It produces findings and measurement-based recommendations rather than applying fixes.
Why use it?
It prevents guesses about speed from being treated as facts by requiring measurements such as timings, query plans, profiles, bundle sizes, or frame counts. It reports measured findings or clearly labels unmeasured concerns as candidates.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it when changing performance-sensitive code or investigating slow responses, lag, memory leaks, or timeouts. It produces findings and measurement-based recommendations rather than applying fixes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/byerlikaya/claude-starter-kit/performance-expert-csk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/byerlikaya/claude-starter-kit

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 performance-expert-csk

README.md
[![agentmods](https://agentmods.dev/badge/agents/byerlikaya/claude-starter-kit/performance-expert-csk/github.svg)](https://agentmods.dev/agents/byerlikaya/claude-starter-kit/performance-expert-csk)
Your own site
<a href="https://agentmods.dev/agents/byerlikaya/claude-starter-kit/performance-expert-csk"><img src="https://agentmods.dev/badge/agents/byerlikaya/claude-starter-kit/performance-expert-csk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for performance-expert-csk

Your own site · 80×15
<a href="https://agentmods.dev/agents/byerlikaya/claude-starter-kit/performance-expert-csk"><img src="https://agentmods.dev/badge/agents/byerlikaya/claude-starter-kit/performance-expert-csk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 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,226 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.00052 $0.01226
Opus 5 $0.00026 $0.00613
Sonnet 5 $0.00010 $0.00245
Haiku 4.5 $0.00005 $0.00123

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

Security

Grade A, and why

performance-expert-csk 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 9d 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-starter/agents/performance-expert-csk.md · 77 lines

How it starts

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

Performance Expert

Trigger phrases: "performance review", "is this fast enough", "performance audit", "slow", "hot path", "profile this", "memory leak", "laggy", "takes too long", "seconds to load", "timing out", "where the time goes"

Read-only auditor, like [[security-expert-csk]]: the relevant expert (backend / database / frontend) makes the fix; this agent produces the findings. It closes a real asymmetry — security, privacy and tests each had an independent reviewer, and performance was the one quality axis where the author checked their own work.

The rule that constrains this agent

The performance skill's first rule is measure first, optimise later — so an auditor that reads a diff and declares it slow is violating the very skill it applies. That is the trap, and this is the way out:

  • A finding from reading code is a candidate, never a verdict. Say "candidate", give the reason, and say what measurement would settle it.
  • A candidate becomes a finding only with a number next to it: a query plan, a timing, a profile, a counter, a bundle size, a rendered frame budget. Get that number — the agent has Bash, so run the benchmark, the EXPLAIN, the profiler, the build size report.
  • Where measuring is genuinely out of reach (no repro, no environment, production-only), say so explicitly and hand back a measurement plan instead of a guess. An unmeasured claim is reported as unmeasured.

Expertise stance (senior performance engineer)

  • Amdahl before micro-optimisation: 2× on a 5% path is nothing. Rank by share of total time, not by ugliness.
  • Complexity over constants: an O(n²) on a growing set beats every constant-factor trick you can name.
  • Tail, not average: p95/p99 is what the user feels; a good p50 hides the problem.
  • Under load, with real volume: a single request on an empty table proves nothing.
  • A regression is a finding: slower than before is a defect even when it is still "fast enough".
  • Correctness is not tradeable for speed; a fast wrong answer is not a result.

Read the full file on GitHub · 77 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. 9d ago First seen · 77 lines · 52 tokens per session scan A f640aa32d4f3

Subscribe to this mod's changes

performance-expert-csk is an agent published in the GitHub repository byerlikaya/claude-starter-kit (22 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 1,226 once invoked, about $0.0003 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-30.

Related

Other agents, from other repositories

escalation-fixer

Last-resort fixer in the debugging escalation chain (build-error-resolver -> systematic-debugger -> rca-debugger -> escalation-fixer), invoked when narrower-scoped fixes have failed: most commonly when verify-loop retries and build-error-resolver could not resolve a build/type error, or when rca-debugger's long-term…

sangrokjung/claude-forge · 118 tokens

rca-debugger

Root-cause analyzer for complex multi-system failures — the third stage of the debugging escalation chain (build-error-resolver → systematic-debugger → rca-debugger → escalation-fixer). Escalation from systematic-debugger when the bisect is inconclusive, there is a CI-vs-local discrepancy, the bug is flaky, or the…

sangrokjung/claude-forge · 118 tokens

refactor-cleaner

An agent for finding and safely removing dead code, unused exports, unused dependencies, and duplicate implementations.

sangrokjung/claude-forge · 109 tokens

build-error-resolver

A focused agent for restoring a failed software build with the smallest practical code changes.

sangrokjung/claude-forge · 106 tokens

systematic-debugger

Specialist for bugs that reproduce but whose root cause is unknown. Enforces a strict reproduce → bisect → hypothesize → verify protocol; never guesses a fix without a failing test first. Use proactively when a bug reproduces but the cause is unclear — "why does this happen", "works locally but not in CI"…

sangrokjung/claude-forge · 170 tokens

verify-agent

A fresh-context agent that checks completed code changes by running type checks, linting, builds, and tests. Fresh context means the checker did not write the change and can inspect it independently.

sangrokjung/claude-forge · 134 tokens