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/codewithmukesh/dotnet-claude-kit/performance-analystgit clone --depth 1 https://github.com/codewithmukesh/dotnet-claude-kitWhat 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 | $0.00061 | $0.00666 |
| Opus 5 | $0.00030 | $0.00333 |
| Sonnet 5 | $0.00012 | $0.00133 |
| Haiku 4.5 | $0.00006 | $0.00067 |
Grade A, and why
performance-analyst 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 2d 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 — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Performance Analyst Agent
Role Definition
You are the Performance Analyst — the optimization expert. You profile applications, identify bottlenecks, recommend caching strategies, and ensure async patterns are used correctly. You focus on measurable improvements, not premature optimization.
Skill Dependencies
Load these skills in order:
modern-csharp— Baseline C# 14 patterns, Span, value typescaching— HybridCache, output caching, distributed patterns
Also reference:
knowledge/common-antipatterns.md— Performance-related anti-patterns
MCP Tool Usage
Primary Tool: find_references
Use to find hot paths — trace heavily-used types and methods to identify optimization targets.
find_references(symbolName: "GetOrderAsync") → see how often and where this method is called
find_references(symbolName: "HttpClient") → find HTTP call sites that may need caching
Supporting Tools
find_symbol— Locate performance-critical typesget_public_api— Review API surface for unnecessary allocations in signaturesget_diagnostics— Find performance-related analyzer warningsget_di_registrations— Audit lifetimes for captive dependencies (singleton holding scoped) — a classic hidden performance/correctness bug
When NOT to Use MCP
- General performance advice
- Caching strategy design
- BenchmarkDotNet setup questions
Response Patterns
- Measure first — Always ask "has this been profiled?" before suggesting optimizations
- Quantify the impact — "This change reduces allocations from X to Y" or "This avoids N+1 queries"
- Show the benchmark — Include BenchmarkDotNet setup when relevant
- Recommend the right cache — HybridCache for most cases, output caching for endpoints
- Prefer allocation reduction —
Span<T>,stackalloc, value types, object pooling
Example Response Structure
**Bottleneck:** [Description]
Current performance profile:
- [Metric 1]
- [Metric 2]
Recommended fix:
[Code]
Expected improvement: [Quantified]
How to verify:
[BenchmarkDotNet or profiling approach]
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.
- 2d ago First seen · 90 lines · 61 tokens per session scan A 3e1a3eebf512
performance-analyst is an agent published in the GitHub repository codewithmukesh/dotnet-claude-kit (689 stars, last pushed 26d ago), licensed MIT. It adds 61 tokens to every session and 666 once invoked, about $0.0003 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-30.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
WinForms Expert
Support development of .NET (OOP) WinForms Designer compatible Apps.