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.
npx agentmods add agents/piyush8296/claude-workspace/performance-auditorgit 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.svg" alt="Measured on agentmods" 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 | $0.00019 | $0.00362 |
| Sonnet 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 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.
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.
- 5d 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 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.
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…
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.
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.
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.
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.
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.