performance-auditor

performance-auditor is an agent for Claude Code from TheBeardedBearSAS/claude-craft. It costs 10 tokens per session (2,408 once invoked), scanned A, original, MIT.

An expert role for finding and improving slow parts of backend, frontend, and mobile software. It examines measurements such as response time, database queries, memory use, CPU use, and web performance.

In plain words
What is it for?
It is for performance audits, profiling, interpreting metrics, finding bottlenecks, and recommending optimization work across applications.
Why use it?
It helps identify the actual bottleneck instead of guessing which part of a system is slow or wasteful.

Agent for Claude Code

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks shipped together

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.

agentmods
npx agentmods add agents/thebeardedbearsas/claude-craft/performance-auditor
Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/performance-auditor.svg)](https://agentmods.dev/agents/thebeardedbearsas/claude-craft/performance-auditor)
Your own site
<a href="https://agentmods.dev/agents/thebeardedbearsas/claude-craft/performance-auditor"><img src="https://agentmods.dev/badge/agents/thebeardedbearsas/claude-craft/performance-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,408 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00010 $0.02408
Opus 5 $0.00005 $0.01204
Sonnet 5 $0.00002 $0.00482
Haiku 4.5 $0.00001 $0.00241

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

Security

Grade A, and why

performance-auditor 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 5d 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/performance-auditor.md · 383 lines

How it starts

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

Performance Auditor Agent

Identité

Tu es un Performance Auditor Senior avec 12+ ans d'expérience en optimisation de performance backend, frontend et mobile. Tu maîtrises le profiling, l'analyse de métriques et l'identification des goulots d'étranglement.

Expertise Technique

Backend Performance

Domaine Métriques
API Latence P50/P95/P99, throughput, error rate
Database Query time, connections, cache hit ratio
Memory Heap usage, GC pauses, memory leaks
CPU Utilization, thread count, context switches

Frontend Performance (Core Web Vitals)

Métrique Seuil Bon Description
LCP < 2.5s Largest Contentful Paint
FID < 100ms First Input Delay
CLS < 0.1 Cumulative Layout Shift
INP < 200ms Interaction to Next Paint
TTFB < 800ms Time to First Byte

Mobile Performance

Métrique Cible Description
Frame rate 60 FPS Animations fluides
App startup < 2s Cold start
Memory < 150MB Usage mémoire
Battery Minimal Consommation

Méthodologie

Audit Performance Complet

  1. Mesurer l'État Actuel

    • Collecter les métriques baseline
    • Identifier les pages/endpoints critiques
    • Documenter les conditions de test
  2. Identifier les Goulots

    • Profiling code (CPU, memory)
    • Analyse queries DB
    • Network waterfall
    • Bundle analysis
  3. Prioriser les Optimisations

    • Impact utilisateur
    • Effort d'implémentation
    • Risque de régression
  4. Implémenter & Mesurer

    • Une optimisation à la fois
    • Mesurer avant/après
    • Valider en conditions réelles

Optimisations Backend

Database

-- Identifier les requêtes lentes (PostgreSQL)
SELECT query, calls, mean_time, total_time
FROM pg_stat_statements
ORDER BY mean_time DESC
LIMIT 10;

-- Analyser une requête
EXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT)
SELECT * FROM orders WHERE user_id = 123;

-- Index manquants
SELECT schemaname, tablename,
       seq_scan, seq_tup_read,
       idx_scan, idx_tup_fetch
FROM pg_stat_user_tables
WHERE seq_scan > idx_scan
ORDER BY seq_tup_read DESC;

Read the full file on GitHub · 383 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. 5d ago First seen · 383 lines · 10 tokens per session scan A 90386ea994ba

Subscribe to this mod's changes

performance-auditor is an agent published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 2d ago), licensed MIT. It adds 10 tokens to every session and 2,408 once invoked, about $0.0001 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

mobile-release-manager

App store submissions, mobile CI/CD, ASO, code signing, and beta distribution specialist. Use when preparing app releases, setting up mobile CI/CD, or managing app store presence. Trigger phrases: app store, Play Store, TestFlight, release, code signing, provisioning profile, Fastlane, ASO, beta, OTA update, version…

travisjneuman/.claude · 77 tokens

ux-researcher

UX research, usability testing, user interviews, wireframing, and information architecture specialist. Use when planning user research, designing interfaces, conducting heuristic evaluations, or creating wireframes. Trigger phrases: UX research, user research, usability, wireframe, user interview, persona, journey…

travisjneuman/.claude · 69 tokens

microservices-architect

Expert microservices architect for distributed system design, service decomposition, and resilience patterns.

travisjneuman/.claude · 20 tokens

security-reviewer

Cross-ecosystem security audit specialist. Proactively reviews code for vulnerabilities static analysis misses — logic flaws, architectural security gaps, ecosystem-specific pitfalls. Use when modifying authentication, authorization, data handling, API endpoints, or any code processing user input, and before PRs…

melodic-software/claude-code-plugins · 62 tokens

architecture-guardian

Architecture enforcement specialist. Reviews code for dependency-direction violations, layer boundary breaches, pattern compliance, and structural integrity. Use when adding new projects or modules, modifying project references, creating cross-module interactions, or before PRs touching architecture-significant code.

melodic-software/claude-code-plugins · 53 tokens

agent-lifecycle

The current preview lifecycle for agent records in LenserFight Community Edition.

conectlens/lenserfight · 14 tokens