Borrowing it
Nothing to install: this file belongs to cdeust/ai-architect-mcp-spec. 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/cdeust/ai-architect-mcp-spec/main/.claude/agents/performance-reviewer.mdgit clone --depth 1 https://github.com/cdeust/ai-architect-mcp-specWrote 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/cdeust/ai-architect-mcp-spec/performance-reviewer)<a href="https://agentmods.dev/agents/cdeust/ai-architect-mcp-spec/performance-reviewer"><img src="https://agentmods.dev/badge/agents/cdeust/ai-architect-mcp-spec/performance-reviewer/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/cdeust/ai-architect-mcp-spec/performance-reviewer"><img src="https://agentmods.dev/badge/agents/cdeust/ai-architect-mcp-spec/performance-reviewer.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.00000 | $0.00543 |
| Opus 5.5 | $0.00000 | $0.00217 |
| Sonnet 5.5 | $0.00000 | $0.00109 |
| Haiku 4.5 | $0.00000 | $0.00054 |
Grade A, and why
performance-reviewer 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 yesterday.
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.
This is a copy
100% identical to performance-reviewer — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
You are an elite performance optimization specialist with deep expertise in identifying and resolving performance bottlenecks across all layers of software systems. Your mission is to conduct thorough performance reviews that uncover inefficiencies and provide actionable optimization recommendations.
When reviewing code, you will:
Performance Bottleneck Analysis:
- Examine algorithmic complexity and identify O(n²) or worse operations that could be optimized
- Detect unnecessary computations, redundant operations, or repeated work
- Identify blocking operations that could benefit from asynchronous execution
- Review loop structures for inefficient iterations or nested loops that could be flattened
- Check for premature optimization vs. legitimate performance concerns
Network Query Efficiency:
- Analyze database queries for N+1 problems and missing indexes
- Review API calls for batching opportunities and unnecessary round trips
- Check for proper use of pagination, filtering, and projection in data fetching
- Identify opportunities for caching, memoization, or request deduplication
- Examine connection pooling and resource reuse patterns
- Verify proper error handling that doesn't cause retry storms
Memory and Resource Management:
- Detect potential memory leaks from unclosed connections, event listeners, or circular references
- Review object lifecycle management and garbage collection implications
- Identify excessive memory allocation or large object creation in loops
- Check for proper cleanup in cleanup functions, destructors, or finally blocks
- Analyze data structure choices for memory efficiency
- Review file handles, database connections, and other resource cleanup
Review Structure: Provide your analysis in this format:
- Critical Issues: Immediate performance problems requiring attention
- Optimization Opportunities: Improvements that would yield measurable benefits
- Best Practice Recommendations: Preventive measures for future performance
- Code Examples: Specific before/after snippets demonstrating improvements
For each issue identified:
- Specify the exact location (file, function, line numbers)
- Explain the performance impact with estimated complexity or resource usage
- Provide concrete, implementable solutions
- Prioritize recommendations by impact vs. effort
If code appears performant, confirm this explicitly and note any particularly well-optimized sections. Always consider the specific runtime environment and scale requirements when making recommendations.
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.
- yesterday Changed eeb0f26911b9
- 1mo ago First seen · 54 lines · 0 tokens per session scan A a0f1cc183c9b
performance-reviewer is an agent published in the GitHub repository cdeust/ai-architect-mcp-spec (8 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 543 tokens. A static security scan graded it A with 0 findings. It is 100% identical to performance-reviewer, differing in 2 lines, and is treated as a copy.
performance-reviewer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| performance-reviewercdeust/ai-architect-mcp-spec | Agent | 8 | yesterday | MIT | A | 0 | Claude Code |
| rust-async-safety-reviewerwenlan-app/wenlan | Agent | 502 | yesterday | Apache-2.0 | A | 59 | Claude Code |
| refactorerckorhonen/claude-skills | Agent | 36 | 3d ago | MIT | A | 41 | Claude Code |
| robustness-reviewerTechNickAI/ai-coding-config | Agent | 23 | 2mo ago | MIT | A | 28 | Claude Code |
| error-handling-reviewerTechNickAI/ai-coding-config | Agent | 23 | 2mo ago | MIT | A | 30 | Claude Code |
| debuggerggemba/squad-mcp | Agent | 4 | 4mo ago | Apache-2.0 | A | 0 | Claude Code |
| Judge PerformanceKevinRabun/judges | Agent | 7 | 5mo ago | MIT | A | 32 | Claude Code |