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 commands/cartapenabark/dotnetanalyzer/reportgit clone --depth 1 https://github.com/CartapenaBark/DotNetAnalyzerWrote 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/cartapenabark/dotnetanalyzer/report)<a href="https://agentmods.dev/commands/cartapenabark/dotnetanalyzer/report"><img src="https://agentmods.dev/badge/commands/cartapenabark/dotnetanalyzer/report.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 | $0.00025 | $0.00841 |
| Opus 5 | $0.00013 | $0.00420 |
| Sonnet 5 | $0.00005 | $0.00168 |
| Haiku 4.5 | $0.00003 | $0.00084 |
Grade A, and why
report 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 3d 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 — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/netan:report — .NET Quality Report
Generate a comprehensive quality report covering code smells, technical debt metrics, architecture rule compliance, and dependency health.
Prerequisite Check
- Run
dotnet-analyzer --versionto verify the global tool is installed - If it fails, ask the user: "DotNetAnalyzer global tool is not installed. Shall I run
dotnet tool install --global DotNetAnalyzerfor you?"- If confirmed, run
dotnet tool install --global DotNetAnalyzerand continue - If declined, provide the manual install command and stop
- If confirmed, run
Arguments
The user may optionally provide a project or solution path:
- If provided: use that path directly
- If not provided: auto-detect by looking for
*.slnxor*.slnin the current working directory - If no solution file found: ask the user for the path
Steps
-
Identify the target:
- Use the provided path, or auto-detect
*.slnx/*.slnin the current directory
- Use the provided path, or auto-detect
-
Get compiler diagnostics:
- Call
get_diagnosticsto establish baseline compilation status - If compilation errors exist, report them first and flag that other analysis may be incomplete
- Call
-
Detect code smells:
- Call
detect_code_smellswithminSeverity: "Minor" - Collect all smell types and severity levels
- Call
-
Quantify technical debt:
- Call
quantify_technical_debtfor debt ratio and fix estimates - Note debt level (Excellent/Good/Moderate/High/Severe)
- Call
-
Check architecture rules:
- Call
check_architecture_rulesfor dependency direction, layer hierarchy, and naming violations
- Call
-
Scan dependency health:
- Call
scan_dependencies_healthfor overall health score
- Call
-
Generate comprehensive report:
## Quality Report: [Project/Solution Name] ### Executive Summary - Compilation: [Pass/Fail] (N errors, N warnings) - Code Smells: N found (N major, N minor) - Technical Debt: [N hours] — [Severity level] - Architecture: [N violations] - Dependency Health: [N/100] ### Compiler Diagnostics - Errors: N (must fix) - Warnings: N - [List top issues if any] ### Code Smells | Type | Severity | Location | Description | |------|----------|----------|-------------| | Long Method | Major | ... | 85 lines, CC=18 | ### Technical Debt - Debt Ratio: N hours / 1000 LOC - Estimated Fix Time: N hours - Top 5 Items: 1. [Item] — [N hours] 2. ... ### Architecture Rules | Rule | Violations | Severity | |------|-----------|----------| | AR001 Dependency Direction | N | Error/Warning | | AR002 Layer Hierarchy | N | Error/Warning | | AR003 Naming Convention | N | Error/Warning | ### Dependency Health - Score: N/100 - Outdated: N | Deprecated: N | Vulnerable: N - [Key action items] ### Priority Action Items 1. [Most impactful fix] 2. [Second most impactful] 3. ...
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.
- 3d ago First seen · 99 lines · 25 tokens per session scan A 673ab035d918
report is a command published in the GitHub repository CartapenaBark/DotNetAnalyzer (2 stars, last pushed 4mo ago), licensed MIT. It adds 25 tokens to every session and 841 once invoked, about $0.0001 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 commands, from other repositories
setup
Install the Roslyn MCP Server .NET global tool.
plan-mode
Command "plan-mode" from moorestech/moorestech, covering プランモード指示, 基本原則, ワークフロー, phase 1: 調査・理解 and phase 2: 設計.
make-avaloniaui-custom-control
HTML/CSS to AvaloniaUI AXAML conversion command.
dotnet-review
Multi-agent .NET code review - up to five reviewers in parallel (correctness, performance, security/observability, data/messaging/integration, generalist), then an adversarial maintainer pass that refutes weak findings. Runs the bundled dotnet-review workflow; reviewer model scales with change size.
dumpstack
Helps examine thread call stacks. While clrstack is more commonly used for managed call stacks, dumpstack can also be used to inspect stack frames, including native ones.
name2ee
Displays the MethodTable and MethodDesc structures for a specified method or type name.