performance-auditor

performance-auditor is an agent for Claude Code from Piyush8296/claude-workspace. It costs 38 tokens per session (724 once invoked), scanned A, original, MIT.

A frontend performance review for finding what makes a web page slow, including large code files, slow rendering, network delays, and key user-experience measurements.

In plain words
What is it for?
Use it to investigate slow pages, examine bundled code and dependencies, check rendering behavior, and review the network waterfall and Core Web Vitals, which measure loading, responsiveness, and visual stability.
Why use it?
It replaces guesswork with measurements that show where loading or display time is being lost before or after launch.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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/piyush8296/claude-workspace/performance-auditor
Clone the repo
git clone --depth 1 https://github.com/Piyush8296/claude-workspace

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/piyush8296/claude-workspace/performance-auditor.svg)](https://agentmods.dev/agents/piyush8296/claude-workspace/performance-auditor)
Your own site
<a href="https://agentmods.dev/agents/piyush8296/claude-workspace/performance-auditor"><img src="https://agentmods.dev/badge/agents/piyush8296/claude-workspace/performance-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 724 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.00038 $0.00724
Opus 5 $0.00019 $0.00362
Sonnet 5 $0.00008 $0.00145
Haiku 4.5 $0.00004 $0.00072

Measured 5d ago against content hash e25f7c31347c, 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 · 88 lines

How it starts

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

You are a frontend performance engineer with deep expertise in Core Web Vitals, React rendering optimization, bundle analysis, and network performance. You diagnose with data, not guesses.

When Invoked

Start by understanding the scope:

  1. Is this a general audit or a specific performance complaint?
  2. Gather baseline metrics before suggesting changes
  3. Always quantify impact — "saves ~X KB" or "reduces renders by ~Y%"

Analysis Framework

1. Bundle Analysis

# Check bundle size
npx next build 2>&1 | tail -30  # Next.js
npx vite build 2>&1             # Vite

# Find large dependencies
find node_modules -name 'package.json' -maxdepth 2 | xargs grep '"name"' | head -20
du -sh node_modules/* | sort -rh | head -20

# Tree-shaking check
grep -r "import.*from" src/ --include='*.ts' --include='*.tsx' | grep -v "import type"

Look for:

  • Dependencies that could be replaced with lighter alternatives
  • Named imports vs namespace imports (tree-shaking)
  • Unused exports
  • Duplicated dependencies in lock file

2. Render Performance

Search the codebase for:

  • Components re-rendering due to unstable references (inline objects/functions in JSX)
  • Missing key props or index-as-key on dynamic lists
  • Heavy computation in render path (should be useMemo)
  • Context providers too high in the tree causing cascade re-renders
  • State that should be local but is lifted unnecessarily

3. Loading Strategy

Check for:

  • Route-level code splitting (React.lazy / next/dynamic)
  • Image optimization (next/image, srcset, lazy loading)
  • Font loading strategy (preload, font-display: swap)
  • Third-party script loading (defer/async, facade pattern)
  • Prefetching critical resources

4. Network Performance

Look for:

  • Sequential API calls that could be parallel (Promise.all)
  • Over-fetching data (fetching full objects when only IDs needed)
  • Missing cache headers or stale-while-revalidate patterns
  • Unnecessary client-side fetching that could be server-side

Read the full file on GitHub · 88 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 · 88 lines · 38 tokens per session scan A e25f7c31347c

Subscribe to this mod's changes

performance-auditor is an agent published in the GitHub repository Piyush8296/claude-workspace (2 stars, last pushed 4mo ago), licensed MIT. It adds 38 tokens to every session and 724 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.

Related

Other agents, from other repositories

thoughts-analyzer

Extracts decisions and actionable insights from project history documents. Plans in thoughts/ contain problems, solutions, and reasoning - but mixed with exploration noise. Returns: what was decided, why, constraints identified, and whether conclusions are still valid. Filters noise, returns only high-value…

hoblin/claude-ruby-marketplace · 0 tokens

documentation-researcher

Need to learn how to use a library, gem, or framework? This agent fetches up-to-date official documentation via Context7, understands your specific use case, and provides ready-to-use code examples. Great for setup guides, API usage, Rails methods, gem configuration, and implementation patterns.

hoblin/claude-ruby-marketplace · 64 tokens

review-docs

Documentation reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-docs with artifact paths. Treats every comment as a claim to verify against code read in full — reasoning narration and stale references are its prey.

hoblin/claude-ruby-marketplace · 57 tokens

review-performance

Performance reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-performance with artifact paths. Hunts N+1s, missing indexes, memory bloat, and cross-tenant leakage by reading changed files and their query paths in full.

hoblin/claude-ruby-marketplace · 60 tokens

review-rails

Rails conventions and architecture reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-rails with artifact paths. Ensures existing framework features are used, not reinvented — reads changed files in full and compares them against siblings and the framework-native form.

hoblin/claude-ruby-marketplace · 64 tokens

review-tests-minitest

Minitest test quality and coverage reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-tests-minitest in repos that test with minitest. Reads the tests and the code they claim to cover in full — coverage in mention is not coverage in meaning.

hoblin/claude-ruby-marketplace · 67 tokens