claude-workspace: Agent for Claude Code

.claude/agents/performance-auditor.md

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.

This is Piyush8296/claude-workspace's own configuration. It tells Claude Code how to work on claude-workspace itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-workspace configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Piyush8296/claude-workspace. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Piyush8296/claude-workspace/main/.claude/agents/performance-auditor.md
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/github.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/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-auditor

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00038 $0.00724
Opus 5.5 $0.00015 $0.00290
Sonnet 5.5 $0.00008 $0.00145
Haiku 4.5 $0.00004 $0.00072

Measured 1mo ago against content hash e25f7c31347c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

.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. 1mo 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 6mo ago), licensed MIT. It adds 38 tokens to every session and 724 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

deep-research-patcher

Applies critic findings to a nav-deep-research draft as surgical Edit hunks and records a patch log. Tool-locked so it cannot regenerate the report. Spawned once at step 5 by the nav-deep-research skill.

qf-studio/navigator · 55 tokens

migration-specialist

Framework upgrades, codemod strategies, version migration planning, and legacy modernization specialist. Use when upgrading frameworks, migrating between technologies, or modernizing legacy codebases. Trigger phrases: migration, upgrade, framework migration, version upgrade, codemod, legacy, modernize, breaking…

travisjneuman/.claude · 67 tokens

monetization-expert

Expert in revenue models, pricing strategy, and business monetization.

travisjneuman/.claude · 18 tokens

CodeQL Permissions Auditor

Analyze workflow permission issues and apply fixes.

dryvist/claude-code-plugins · 12 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

state-keeper

Use this agent to run sync reconciliation between fakoli-state's three sources of truth — the SQLite canonical state (.fakoli-state/state.db), the filesystem (packets/, .evidence-buffer/, worktrees), and git (branches, commits, claims). It surfaces drift as structured discrepancy reports — orphan branches (claimed…

fakoli/fakoli-plugins · 465 tokens