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.
git clone --depth 1 https://github.com/travisjneuman/.claudeWrote 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/commands/travisjneuman/.claude/perf-audit)<a href="https://agentmods.dev/commands/travisjneuman/.claude/perf-audit"><img src="https://agentmods.dev/badge/commands/travisjneuman/.claude/perf-audit/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/commands/travisjneuman/.claude/perf-audit"><img src="https://agentmods.dev/badge/commands/travisjneuman/.claude/perf-audit.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.00005 | $0.01632 |
| Opus 5 | $0.00003 | $0.00816 |
| Sonnet 5 | $0.00001 | $0.00326 |
| Haiku 4.5 | $0.00001 | $0.00163 |
Grade A, and why
perf-audit 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 7d 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 — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Performance Audit
Analyzes application performance across bundle size, rendering, API response times, and database queries. Provides actionable optimization recommendations.
Execution Flow
Step 1: Detect Application Type
# Frontend frameworks
[ -f "next.config.js" ] || [ -f "next.config.mjs" ] || [ -f "next.config.ts" ] && echo "NEXTJS"
[ -f "vite.config.ts" ] || [ -f "vite.config.js" ] && echo "VITE"
[ -f "webpack.config.js" ] && echo "WEBPACK"
# Backend frameworks
[ -f "package.json" ] && grep -qE '"(express|fastify|koa)"' package.json && echo "NODE_API"
[ -f "requirements.txt" ] && grep -qE "(fastapi|django|flask)" requirements.txt && echo "PYTHON_API"
[ -f "go.mod" ] && echo "GO_API"
# Database
[ -d "prisma" ] && echo "PRISMA"
[ -f "drizzle.config.ts" ] && echo "DRIZZLE"
[ -f "alembic.ini" ] && echo "ALEMBIC"
Step 2: Run Audits by Focus
Focus: {{focus}} (default: all)
bundle - Bundle Size Analysis
# Next.js
ANALYZE=true npm run build 2>/dev/null
# Vite
npx vite-bundle-visualizer 2>/dev/null
# Check raw sizes
du -sh .next/ dist/ build/ 2>/dev/null
ls -lhS .next/static/chunks/*.js 2>/dev/null | head -20
Analyze source code for bundle bloat:
- Search for large library imports that could be tree-shaken
- Find full-library imports that should be specific named imports
- Identify duplicate dependencies in lock file
- Check for unneeded polyfills
Bundle Analysis
---------------
Total bundle: 542 KB (gzipped)
Target: < 200 KB
Largest chunks:
vendor.js 312 KB (lodash: 72KB, moment: 67KB, chart.js: 45KB)
main.js 128 KB
pages/dashboard 102 KB
Optimization opportunities:
1. Replace moment.js (67KB) with date-fns (12KB) -> Save 55KB
2. Import specific lodash functions -> Save ~60KB
3. Lazy-load chart.js (only used on dashboard) -> Save 45KB initial
4. Enable tree-shaking for UI library -> Save ~30KB
Estimated savings: ~190KB (35% reduction)
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.
- 7d ago First seen · 218 lines · 5 tokens per session scan A 05315178692a
perf-audit is a command published in the GitHub repository travisjneuman/.claude (97 stars, last pushed 6d ago), licensed MIT. It adds 5 tokens to every session and 1,632 once invoked, about $0.0000 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-09-03.
Other commands, from other repositories
component-gen
Generate React or Vue components with prop types, styling, accessibility, and tests.
ui-bug.template
This prompt was authored for Claude-style slash workflows. In Codex runtime, adapt tool calls as follows.
ui-fix.template
This prompt was authored for Claude-style slash workflows. In Codex runtime, adapt tool calls as follows.
performance-audit
Find performance bottlenecks across the stack — queries, rendering, bundle size, memory.
debug
Systematic debugging — reproduce, isolate, fix, verify, and add regression test.
doc-gen
Generate documentation — JSDoc, docstrings, README sections, or API docs.