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.
curl -O https://raw.githubusercontent.com/Piyush8296/claude-workspace/main/.claude/agents/performance-auditor.mdgit clone --depth 1 https://github.com/Piyush8296/claude-workspaceWrote 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.
[](https://agentmods.dev/agents/piyush8296/claude-workspace/performance-auditor)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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:
- Is this a general audit or a specific performance complaint?
- Gather baseline metrics before suggesting changes
- 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
keyprops 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
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.
- 1mo ago First seen · 88 lines · 38 tokens per session scan A e25f7c31347c
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.
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.
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…
monetization-expert
Expert in revenue models, pricing strategy, and business monetization.
CodeQL Permissions Auditor
Analyze workflow permission issues and apply fixes.
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.
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…