performance-analyzer

performance-analyzer is an agent for Claude Code from stilero/claude-plugins. It costs 47 tokens per session (737 once invoked), scanned A, original, MIT.

A code-review agent that examines a codebase for performance problems that may make software slow or waste resources.

In plain words
What is it for?
Use it to inspect database access, indexes, query limits, asynchronous work, file operations, CPU-heavy code, memory leaks, and caching opportunities.
Why use it?
It helps find issues that can remain hidden during development, such as repeated database queries, unlimited result sets, blocking work, and missing caching.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the tech-debt-audit plugin — 1 skill, 1 command, 9 agents shipped together

Good fit Use it to inspect database access, indexes, query limits, asynchronous work, file operations, CPU-heavy code, memory leaks, and caching opportunities.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/stilero/claude-plugins/performance-analyzer
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/stilero/claude-plugins

Made for: Claude Code.

Or install tech-debt-audit, the plugin that ships this one along with the rest of its 1 skill, 1 command, 9 agents.

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-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/stilero/claude-plugins/performance-analyzer/github.svg)](https://agentmods.dev/agents/stilero/claude-plugins/performance-analyzer)
Your own site
<a href="https://agentmods.dev/agents/stilero/claude-plugins/performance-analyzer"><img src="https://agentmods.dev/badge/agents/stilero/claude-plugins/performance-analyzer/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-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/stilero/claude-plugins/performance-analyzer"><img src="https://agentmods.dev/badge/agents/stilero/claude-plugins/performance-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 737 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.00047 $0.00737
Opus 5.5 $0.00019 $0.00295
Sonnet 5.5 $0.00009 $0.00147
Haiku 4.5 $0.00005 $0.00074

Measured 1mo ago against content hash e32276848abe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-analyzer 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 1mo 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.

plugins/tech-debt-audit/agents/performance-analyzer.md · 74 lines

How it starts

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

You are a performance auditor. You find code patterns that will be slow, wasteful, or degrade under load — issues that work fine in dev but melt production at scale.

What You Audit

N+1 query patterns

  • Database queries inside loops (Prisma findUnique/findFirst in a .map() or for loop)
  • Missing include or select causing lazy-loaded relations to trigger extra queries
  • Sequential queries that could be batched into one

Missing database indexes

  • Read the Prisma schema and identify fields used in where clauses that lack @@index
  • Queries that filter or sort on unindexed columns
  • Composite queries that need composite indexes

Unbounded queries

  • findMany without take or pagination
  • List endpoints that return all results without limit
  • Queries that could return thousands of rows with no safeguard

Sync bottlenecks

  • Sequential await calls that could be Promise.all()
  • Synchronous file I/O (readFileSync, writeFileSync) in request handlers
  • CPU-heavy computation blocking the event loop
  • Missing worker threads for expensive operations

Missing caching

  • Repeated expensive computations with the same inputs
  • Frequently accessed, rarely changing data fetched from DB on every request
  • Configuration or reference data loaded per-request instead of cached

Memory concerns

  • Large objects created in hot paths (request handlers)
  • Growing arrays/collections without bounds in long-running processes
  • Loading entire files into memory when streaming would work
  • Large response payloads that could be paginated or streamed

Inefficient data operations

  • Array.includes() inside loops (should use Set)
  • Chained array methods that could be a single pass
  • Repeated JSON.parse/JSON.stringify of the same data
  • Sorting or filtering large arrays when the database could do it

How To Audit

  1. Read the Prisma schema to understand the data model and existing indexes
  2. Use Grep to find all Prisma client calls: prisma\. across source files
  3. Check each query: is it bounded? Is it inside a loop? Does it use indexed fields?
  4. Use Grep to find await patterns and check for sequential vs parallel execution
  5. Look at route handlers — are there multiple independent async operations done sequentially?
  6. Use Grep to find readFileSync, writeFileSync, and other sync operations
  7. Check list endpoints for pagination implementation

Read the full file on GitHub · 74 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. 1mo ago First seen · 74 lines · 47 tokens per session scan A e32276848abe

Subscribe to this mod's changes

performance-analyzer is an agent published in the GitHub repository stilero/claude-plugins (2 stars, last pushed 3mo ago), licensed MIT. It adds 47 tokens to every session and 737 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other agents, from other repositories

core-data-auditor

Use this agent when the user mentions Core Data review, schema migration, production crashes, or data safety checking.

CharlesWiltgen/Axiom · 28 tokens

data-engineer

Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…

testdouble/han · 216 tokens

data-engineer

Data engineering specialist for schema design, query optimization, ETL pipelines, and data modeling. Use when the task involves database migrations, query performance tuning, data pipeline construction, or schema evolution. For example: designing a normalized schema, optimizing slow queries, or building a data…

josstei/maestro-orchestrate · 61 tokens

ia-database-guardian

Reviews database schema, constraints, and migration code for safety. Use when PRs touch migrations, data models, ID mappings, enum conversions, backfills, or persistent data. Postgres-specific query, index, and type patterns defer to the ia-postgresql skill; this agent is the migration-safety review gate.

iliaal/whetstone · 69 tokens

messaging-cache

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for message brokers and caches (Redis/RabbitMQ/Kafka/NATS/MQTT/ActiveMQ/ZooKeeper) covering unauthenticated exposure, management APIs, and RCE-adjacent primitives.

ASCIT31/Dark-Moon · 56 tokens

qdrant-expert

Configure and operate the vector store in production. TRIGGER WHEN: creating Qdrant collections, tuning HNSW, quantization, dense plus sparse hybrid search, payload indexing, multi-tenancy, or Qdrant performance troubleshooting. DO NOT TRIGGER WHEN: end-to-end RAG design, or another vector database such as Pinecone…

acaprino/daodan · 91 tokens