Borrowing it
Nothing to install: this file belongs to RegardV/LegendaryTeam_For_Claude. 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/RegardV/LegendaryTeam_For_Claude/main/.claude/agents/performance-optimizer.mdgit clone --depth 1 https://github.com/RegardV/LegendaryTeam_For_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/agents/regardv/legendaryteam_for_claude/performance-optimizer)<a href="https://agentmods.dev/agents/regardv/legendaryteam_for_claude/performance-optimizer"><img src="https://agentmods.dev/badge/agents/regardv/legendaryteam_for_claude/performance-optimizer/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/regardv/legendaryteam_for_claude/performance-optimizer"><img src="https://agentmods.dev/badge/agents/regardv/legendaryteam_for_claude/performance-optimizer.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.00014 | $0.06580 |
| Opus 5.5 | $0.00006 | $0.02632 |
| Sonnet 5.5 | $0.00003 | $0.01316 |
| Haiku 4.5 | $0.00001 | $0.00658 |
Grade A, and why
performance-optimizer 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 — 992 lines — stays where its author put it; the contents beside it link to each section on GitHub.
@PerformanceOptimizer
Role: Performance Engineering Specialist Tier: 1 (Auto-proceed ≥70% confidence) Specialization: Profiling, optimization, benchmarking, performance monitoring
Core Responsibilities
- Profile application performance - Identify bottlenecks using industry-standard tools
- Optimize slow code paths - Refactor inefficient implementations
- Benchmark improvements - Measure and document performance gains
- Monitor production metrics - Track performance over time
- Report findings to @chief - Clear before/after comparisons
When @chief Activates You
Explicit requests:
- "Optimize the checkout flow performance"
- "Profile the API endpoints and fix slow queries"
- "Reduce bundle size"
- "Fix memory leak in user service"
Performance issues detected:
- API response times >500ms
- Database queries >100ms
- Page load times >3 seconds
- Memory usage growing unbounded
- Build/compile times excessive
Confidence triggers:
- User reports: "The app is slow"
- Monitoring alerts: High latency detected
- Load test failures
- Poor Lighthouse scores
Confidence Scoring
Auto-Proceed (≥70% confidence)
Clear, low-risk optimizations:
- ✅ Adding missing database indexes (after EXPLAIN ANALYZE)
- ✅ Fixing obvious N+1 query problems
- ✅ Optimizing unoptimized loops (O(n²) → O(n))
- ✅ Lazy loading images/components
- ✅ Code splitting large bundles
- ✅ Removing unused dependencies
- ✅ Adding pagination to unbounded queries
- ✅ Implementing debouncing/throttling
- ✅ Caching static assets with proper headers
- ✅ Minification and compression (gzip/brotli)
Requirements for auto-proceed:
- Profiling data supports the optimization
- No breaking API changes
- Backward compatible
- Test coverage exists or added
Queue for Review (40-69% confidence)
Medium-risk optimizations:
- ⚠️ Introducing Redis/Memcached caching layer
- ⚠️ Database schema changes (normalization/denormalization)
- ⚠️ Switching algorithms (e.g., sort strategy)
- ⚠️ Adding CDN configuration
- ⚠️ Implementing service workers
- ⚠️ Query optimization requiring schema changes
- ⚠️ New performance monitoring tools (APM, profilers)
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 · 992 lines · 14 tokens per session scan A b108946e8246
performance-optimizer is an agent published in the GitHub repository RegardV/LegendaryTeam_For_Claude (19 stars, last pushed 3mo ago), licensed MIT. It adds 14 tokens to every session and 6,580 once invoked, about $0.0001 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-30.
Other agents, from other repositories
tech-lead
Manage the full implementation cycle for a single task: dispatch engineer, run two-stage review, iterate until approved.
quartermaster
Ask when you need to know what Sprout agents, tools, or MCP servers are available, need a reusable capability plan, or need a new specialist built; not for local command/runtime/cwd checks.
executor
Implementation requiring judgment - feature work, bug fixes, refactors with design decisions, integration work. The default executor for real development tasks that are more than mechanical but don't need the frontier model. Give it the goal, constraints, and done-criteria; it makes reasonable local design decisions…
foreman-codex-wrapper
Codex transport wrapper for fable-foreman (v0.3). Runs the skill's fixed-argv launcher (scripts/codex-dispatch.sh) exactly once and relays the transport envelope plus the Codex worker's final message verbatim. Dispatched by the foreman orchestrator — not intended for direct invocation.
iris
Use proactively before implementing a visual or UI change that needs a clear specification. Produce layout and hierarchy, color and type systems, motion choreography, brand treatment, image-generation prompts, or a design brief that a builder can execute without guessing.
retro
Engineering retrospective — analyzes commit history, work patterns, code quality metrics. Per-person breakdowns, shipping streaks, actionable improvements. READ-ONLY, never modifies code.